Documentation
¶
Index ¶
- Variables
- type Schema
- type Schema_builder
- type ValidationError
- func (x *ValidationError) GetMessage() string
- func (x *ValidationError) GetPath() string
- func (x *ValidationError) GetSource() ValidationError_Source
- func (*ValidationError) ProtoMessage()
- func (x *ValidationError) ProtoReflect() protoreflect.Message
- func (x *ValidationError) Reset()
- func (x *ValidationError) SetMessage(v string)
- func (x *ValidationError) SetPath(v string)
- func (x *ValidationError) SetSource(v ValidationError_Source)
- func (x *ValidationError) String() string
- type ValidationError_Source
- func (ValidationError_Source) Descriptor() protoreflect.EnumDescriptor
- func (x ValidationError_Source) Enum() *ValidationError_Source
- func (x ValidationError_Source) Number() protoreflect.EnumNumber
- func (x ValidationError_Source) String() string
- func (ValidationError_Source) Type() protoreflect.EnumType
- type ValidationError_builder
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) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
type Schema_builder ¶
type Schema_builder struct {
Id string
Definition []byte
// contains filtered or unexported fields
}
func (Schema_builder) Build ¶
func (b0 Schema_builder) Build() *Schema
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) 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) ProtoMessage ¶
func (*ValidationError) ProtoMessage()
func (*ValidationError) ProtoReflect ¶
func (x *ValidationError) ProtoReflect() protoreflect.Message
func (*ValidationError) Reset ¶
func (x *ValidationError) Reset()
func (*ValidationError) SetMessage ¶
func (x *ValidationError) SetMessage(v string)
func (*ValidationError) SetPath ¶
func (x *ValidationError) SetPath(v string)
func (*ValidationError) SetSource ¶
func (x *ValidationError) SetSource(v ValidationError_Source)
func (*ValidationError) String ¶
func (x *ValidationError) String() string
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) Descriptor() protoreflect.EnumDescriptor
func (ValidationError_Source) Enum ¶
func (x ValidationError_Source) Enum() *ValidationError_Source
func (ValidationError_Source) Number ¶
func (x ValidationError_Source) Number() protoreflect.EnumNumber
func (ValidationError_Source) String ¶
func (x ValidationError_Source) String() string
func (ValidationError_Source) Type ¶
func (ValidationError_Source) Type() protoreflect.EnumType
type ValidationError_builder ¶
type ValidationError_builder struct {
Path string
Message string
Source ValidationError_Source
// contains filtered or unexported fields
}
func (ValidationError_builder) Build ¶
func (b0 ValidationError_builder) Build() *ValidationError
Source Files
¶
- schema.pb.go
Click to show internal directories.
Click to hide internal directories.