schemav1

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: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ValidationError_Source_name = map[int32]string{
		0: "SOURCE_UNSPECIFIED",
		1: "SOURCE_PRINCIPAL",
		2: "SOURCE_RESOURCE",
	}
	ValidationError_Source_value = map[string]int32{
		"SOURCE_UNSPECIFIED": 0,
		"SOURCE_PRINCIPAL":   1,
		"SOURCE_RESOURCE":    2,
	}
)

Enum value maps for ValidationError_Source.

View Source
var File_cerbos_schema_v1_schema_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Schema

type Schema struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Definition []byte `protobuf:"bytes,2,opt,name=definition,proto3" json:"definition,omitempty"`
	// contains filtered or unexported fields
}

func (*Schema) Descriptor deprecated

func (*Schema) Descriptor() ([]byte, []int)

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetDefinition

func (x *Schema) GetDefinition() []byte

func (*Schema) GetId

func (x *Schema) GetId() string

func (*Schema) HashPB

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

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

func (*Schema) MarshalToVT

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

func (*Schema) MarshalVT

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

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect

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

func (*Schema) Reset

func (x *Schema) Reset()

func (*Schema) SizeVT

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

func (*Schema) String

func (x *Schema) String() string

func (*Schema) UnmarshalVT

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

type ValidationError

type ValidationError struct {
	Path    string                 `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Message string                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Source  ValidationError_Source `protobuf:"varint,3,opt,name=source,proto3,enum=cerbos.schema.v1.ValidationError_Source" json:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidationError) Descriptor deprecated

func (*ValidationError) Descriptor() ([]byte, []int)

Deprecated: Use ValidationError.ProtoReflect.Descriptor instead.

func (*ValidationError) GetMessage

func (x *ValidationError) GetMessage() string

func (*ValidationError) GetPath

func (x *ValidationError) GetPath() string

func (*ValidationError) GetSource

func (x *ValidationError) GetSource() ValidationError_Source

func (*ValidationError) HashPB

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

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

func (*ValidationError) MarshalToVT

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

func (*ValidationError) MarshalVT

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

func (*ValidationError) ProtoMessage

func (*ValidationError) ProtoMessage()

func (*ValidationError) ProtoReflect

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

func (*ValidationError) Reset

func (x *ValidationError) Reset()

func (*ValidationError) SizeVT

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

func (*ValidationError) String

func (x *ValidationError) String() string

func (*ValidationError) UnmarshalVT

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

type ValidationError_Source

type ValidationError_Source int32
const (
	ValidationError_SOURCE_UNSPECIFIED ValidationError_Source = 0
	ValidationError_SOURCE_PRINCIPAL   ValidationError_Source = 1
	ValidationError_SOURCE_RESOURCE    ValidationError_Source = 2
)

func (ValidationError_Source) Descriptor

func (ValidationError_Source) Enum

func (ValidationError_Source) EnumDescriptor deprecated

func (ValidationError_Source) EnumDescriptor() ([]byte, []int)

Deprecated: Use ValidationError_Source.Descriptor instead.

func (ValidationError_Source) Number

func (ValidationError_Source) String

func (x ValidationError_Source) String() string

func (ValidationError_Source) Type

Jump to

Keyboard shortcuts

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