Documentation ¶
Index ¶
- Variables
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetContext() string
- func (x *Error) GetKind() Error_Kind
- func (x *Error) GetMessage() string
- func (x *Error) GetPosition() *Position
- func (m *Error) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Error) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Error) MarshalToVT(dAtA []byte) (int, error)
- func (m *Error) MarshalVT() (dAtA []byte, err error)
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (m *Error) SizeVT() (n int)
- func (x *Error) String() string
- func (m *Error) UnmarshalVT(dAtA []byte) error
- type Error_Kind
- type Position
- func (*Position) Descriptor() ([]byte, []int)deprecated
- func (x *Position) GetColumn() uint32
- func (x *Position) GetLine() uint32
- func (x *Position) GetPath() string
- func (m *Position) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *Position) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Position) MarshalToVT(dAtA []byte) (int, error)
- func (m *Position) MarshalVT() (dAtA []byte, err error)
- func (*Position) ProtoMessage()
- func (x *Position) ProtoReflect() protoreflect.Message
- func (x *Position) Reset()
- func (m *Position) SizeVT() (n int)
- func (x *Position) String() string
- func (m *Position) UnmarshalVT(dAtA []byte) error
- type SourceContext
- func (*SourceContext) Descriptor() ([]byte, []int)deprecated
- func (x *SourceContext) GetErrors() []*Error
- func (x *SourceContext) GetFieldPositions() map[string]*Position
- func (x *SourceContext) GetStartPosition() *StartPosition
- func (m *SourceContext) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *SourceContext) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SourceContext) MarshalToVT(dAtA []byte) (int, error)
- func (m *SourceContext) MarshalVT() (dAtA []byte, err error)
- func (*SourceContext) ProtoMessage()
- func (x *SourceContext) ProtoReflect() protoreflect.Message
- func (x *SourceContext) Reset()
- func (m *SourceContext) SizeVT() (n int)
- func (x *SourceContext) String() string
- func (m *SourceContext) UnmarshalVT(dAtA []byte) error
- type StartPosition
- func (*StartPosition) Descriptor() ([]byte, []int)deprecated
- func (x *StartPosition) GetColumn() uint32
- func (x *StartPosition) GetLine() uint32
- func (x *StartPosition) GetOffset() uint32
- func (m *StartPosition) HashPB(hasher hash.Hash, ignore map[string]struct{})
- func (m *StartPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *StartPosition) MarshalToVT(dAtA []byte) (int, error)
- func (m *StartPosition) MarshalVT() (dAtA []byte, err error)
- func (*StartPosition) ProtoMessage()
- func (x *StartPosition) ProtoReflect() protoreflect.Message
- func (x *StartPosition) Reset()
- func (m *StartPosition) SizeVT() (n int)
- func (x *StartPosition) String() string
- func (m *StartPosition) UnmarshalVT(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( Error_Kind_name = map[int32]string{ 0: "KIND_UNSPECIFIED", 1: "KIND_PARSE_ERROR", 2: "KIND_VALIDATION_ERROR", } Error_Kind_value = map[string]int32{ "KIND_UNSPECIFIED": 0, "KIND_PARSE_ERROR": 1, "KIND_VALIDATION_ERROR": 2, } )
Enum value maps for Error_Kind.
var File_cerbos_source_v1_source_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Kind Error_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=cerbos.source.v1.Error_Kind" json:"kind,omitempty"` Position *Position `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Context string `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetContext ¶
func (*Error) GetKind ¶
func (x *Error) GetKind() Error_Kind
func (*Error) GetMessage ¶
func (*Error) GetPosition ¶
func (*Error) HashPB ¶
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Error) MarshalToSizedBufferVT ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
func (*Error) UnmarshalVT ¶
type Error_Kind ¶
type Error_Kind int32
const ( Error_KIND_UNSPECIFIED Error_Kind = 0 Error_KIND_PARSE_ERROR Error_Kind = 1 Error_KIND_VALIDATION_ERROR Error_Kind = 2 )
func (Error_Kind) Descriptor ¶
func (Error_Kind) Descriptor() protoreflect.EnumDescriptor
func (Error_Kind) Enum ¶
func (x Error_Kind) Enum() *Error_Kind
func (Error_Kind) EnumDescriptor
deprecated
func (Error_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use Error_Kind.Descriptor instead.
func (Error_Kind) Number ¶
func (x Error_Kind) Number() protoreflect.EnumNumber
func (Error_Kind) String ¶
func (x Error_Kind) String() string
func (Error_Kind) Type ¶
func (Error_Kind) Type() protoreflect.EnumType
type Position ¶
type Position struct { Line uint32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` Column uint32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*Position) Descriptor
deprecated
func (*Position) HashPB ¶
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*Position) MarshalToSizedBufferVT ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
func (*Position) UnmarshalVT ¶
type SourceContext ¶
type SourceContext struct { StartPosition *StartPosition `protobuf:"bytes,1,opt,name=start_position,json=startPosition,proto3" json:"start_position,omitempty"` FieldPositions map[string]*Position `` /* 191-byte string literal not displayed */ Errors []*Error `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*SourceContext) Descriptor
deprecated
func (*SourceContext) Descriptor() ([]byte, []int)
Deprecated: Use SourceContext.ProtoReflect.Descriptor instead.
func (*SourceContext) GetErrors ¶
func (x *SourceContext) GetErrors() []*Error
func (*SourceContext) GetFieldPositions ¶
func (x *SourceContext) GetFieldPositions() map[string]*Position
func (*SourceContext) GetStartPosition ¶ added in v0.34.0
func (x *SourceContext) GetStartPosition() *StartPosition
func (*SourceContext) HashPB ¶
func (m *SourceContext) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*SourceContext) MarshalToSizedBufferVT ¶
func (m *SourceContext) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SourceContext) MarshalToVT ¶
func (m *SourceContext) MarshalToVT(dAtA []byte) (int, error)
func (*SourceContext) MarshalVT ¶
func (m *SourceContext) MarshalVT() (dAtA []byte, err error)
func (*SourceContext) ProtoMessage ¶
func (*SourceContext) ProtoMessage()
func (*SourceContext) ProtoReflect ¶
func (x *SourceContext) ProtoReflect() protoreflect.Message
func (*SourceContext) Reset ¶
func (x *SourceContext) Reset()
func (*SourceContext) SizeVT ¶
func (m *SourceContext) SizeVT() (n int)
func (*SourceContext) String ¶
func (x *SourceContext) String() string
func (*SourceContext) UnmarshalVT ¶
func (m *SourceContext) UnmarshalVT(dAtA []byte) error
type StartPosition ¶ added in v0.34.0
type StartPosition struct { Line uint32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` Column uint32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"` Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*StartPosition) Descriptor
deprecated
added in
v0.34.0
func (*StartPosition) Descriptor() ([]byte, []int)
Deprecated: Use StartPosition.ProtoReflect.Descriptor instead.
func (*StartPosition) GetColumn ¶ added in v0.34.0
func (x *StartPosition) GetColumn() uint32
func (*StartPosition) GetLine ¶ added in v0.34.0
func (x *StartPosition) GetLine() uint32
func (*StartPosition) GetOffset ¶ added in v0.34.0
func (x *StartPosition) GetOffset() uint32
func (*StartPosition) HashPB ¶ added in v0.34.0
func (m *StartPosition) HashPB(hasher hash.Hash, ignore map[string]struct{})
HashPB computes a hash of the message using the given hash function The ignore set must contain fully-qualified field names (pkg.msg.field) that should be ignored from the hash
func (*StartPosition) MarshalToSizedBufferVT ¶ added in v0.34.0
func (m *StartPosition) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*StartPosition) MarshalToVT ¶ added in v0.34.0
func (m *StartPosition) MarshalToVT(dAtA []byte) (int, error)
func (*StartPosition) MarshalVT ¶ added in v0.34.0
func (m *StartPosition) MarshalVT() (dAtA []byte, err error)
func (*StartPosition) ProtoMessage ¶ added in v0.34.0
func (*StartPosition) ProtoMessage()
func (*StartPosition) ProtoReflect ¶ added in v0.34.0
func (x *StartPosition) ProtoReflect() protoreflect.Message
func (*StartPosition) Reset ¶ added in v0.34.0
func (x *StartPosition) Reset()
func (*StartPosition) SizeVT ¶ added in v0.34.0
func (m *StartPosition) SizeVT() (n int)
func (*StartPosition) String ¶ added in v0.34.0
func (x *StartPosition) String() string
func (*StartPosition) UnmarshalVT ¶ added in v0.34.0
func (m *StartPosition) UnmarshalVT(dAtA []byte) error