sourcev1

package
v0.35.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetContext

func (x *Error) GetContext() string

func (*Error) GetKind

func (x *Error) GetKind() Error_Kind

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) GetPosition

func (x *Error) GetPosition() *Position

func (*Error) HashPB

func (m *Error) 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 (*Error) MarshalToSizedBufferVT

func (m *Error) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Error) MarshalToVT

func (m *Error) MarshalToVT(dAtA []byte) (int, error)

func (*Error) MarshalVT

func (m *Error) MarshalVT() (dAtA []byte, err error)

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) SizeVT

func (m *Error) SizeVT() (n int)

func (*Error) String

func (x *Error) String() string

func (*Error) UnmarshalVT

func (m *Error) UnmarshalVT(dAtA []byte) error

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetColumn

func (x *Position) GetColumn() uint32

func (*Position) GetLine

func (x *Position) GetLine() uint32

func (*Position) GetPath

func (x *Position) GetPath() string

func (*Position) HashPB

func (m *Position) 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 (*Position) MarshalToSizedBufferVT

func (m *Position) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Position) MarshalToVT

func (m *Position) MarshalToVT(dAtA []byte) (int, error)

func (*Position) MarshalVT

func (m *Position) MarshalVT() (dAtA []byte, err error)

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

func (x *Position) ProtoReflect() protoreflect.Message

func (*Position) Reset

func (x *Position) Reset()

func (*Position) SizeVT

func (m *Position) SizeVT() (n int)

func (*Position) String

func (x *Position) String() string

func (*Position) UnmarshalVT

func (m *Position) UnmarshalVT(dAtA []byte) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL