celv3

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Cel.ProtoReflect.Descriptor instead.

func (*Cel) ProtoMessage

func (*Cel) ProtoMessage()

func (*Cel) ProtoReflect

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

func (*Cel) Reset

func (x *Cel) Reset()

func (*Cel) String

func (x *Cel) String() string

func (*Cel) Validate

func (m *Cel) Validate() error

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

func (m *Cel) ValidateAll() error

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.

Jump to

Keyboard shortcuts

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