Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_formatter_cel_v3_cel_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Cel ¶
type Cel struct {
// contains filtered or unexported fields
}
Configuration for the CEL formatter.
func (*Cel) Descriptor
deprecated
func (*Cel) ProtoMessage ¶
func (*Cel) ProtoMessage()
func (*Cel) ProtoReflect ¶
func (x *Cel) ProtoReflect() protoreflect.Message
func (*Cel) Validate ¶
Validate checks the field values on Cel with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Cel) ValidateAll ¶
ValidateAll checks the field values on Cel with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CelMultiError, or nil if none found.
type CelMultiError ¶
type CelMultiError []error
CelMultiError is an error wrapping multiple validation errors returned by Cel.ValidateAll() if the designated constraints aren't met.
func (CelMultiError) AllErrors ¶
func (m CelMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CelMultiError) Error ¶
func (m CelMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CelValidationError ¶
type CelValidationError struct {
// contains filtered or unexported fields
}
CelValidationError is the validation error returned by Cel.Validate if the designated constraints aren't met.
func (CelValidationError) Cause ¶
func (e CelValidationError) Cause() error
Cause function returns cause value.
func (CelValidationError) Error ¶
func (e CelValidationError) Error() string
Error satisfies the builtin error interface
func (CelValidationError) ErrorName ¶
func (e CelValidationError) ErrorName() string
ErrorName returns error name.
func (CelValidationError) Field ¶
func (e CelValidationError) Field() string
Field function returns field value.
func (CelValidationError) Key ¶
func (e CelValidationError) Key() bool
Key function returns key value.
func (CelValidationError) Reason ¶
func (e CelValidationError) Reason() string
Reason function returns reason value.