celv3

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 17 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_access_loggers_filters_cel_v3_cel_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ExpressionFilter

type ExpressionFilter struct {

	// Expression that, when evaluated, will be used to filter access logs.
	// Expressions are based on the set of Envoy :ref:`attributes <arch_overview_attributes>`.
	// The provided expression must evaluate to true for logging (expression errors are considered false).
	// Examples:
	// - “response.code >= 400“
	// - “(connection.mtls && request.headers['x-log-mtls'] == 'true') || request.url_path.contains('v1beta3')“
	Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"`
	// contains filtered or unexported fields
}

ExpressionFilter is an access logging filter that evaluates configured symbolic Common Expression Language expressions to inform the decision to generate an access log.

func (*ExpressionFilter) Descriptor deprecated

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

Deprecated: Use ExpressionFilter.ProtoReflect.Descriptor instead.

func (*ExpressionFilter) GetExpression

func (x *ExpressionFilter) GetExpression() string

func (*ExpressionFilter) ProtoMessage

func (*ExpressionFilter) ProtoMessage()

func (*ExpressionFilter) ProtoReflect

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

func (*ExpressionFilter) Reset

func (x *ExpressionFilter) Reset()

func (*ExpressionFilter) String

func (x *ExpressionFilter) String() string

func (*ExpressionFilter) Validate

func (m *ExpressionFilter) Validate() error

Validate checks the field values on ExpressionFilter 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 (*ExpressionFilter) ValidateAll

func (m *ExpressionFilter) ValidateAll() error

ValidateAll checks the field values on ExpressionFilter 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 ExpressionFilterMultiError, or nil if none found.

type ExpressionFilterMultiError

type ExpressionFilterMultiError []error

ExpressionFilterMultiError is an error wrapping multiple validation errors returned by ExpressionFilter.ValidateAll() if the designated constraints aren't met.

func (ExpressionFilterMultiError) AllErrors

func (m ExpressionFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExpressionFilterMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ExpressionFilterValidationError

type ExpressionFilterValidationError struct {
	// contains filtered or unexported fields
}

ExpressionFilterValidationError is the validation error returned by ExpressionFilter.Validate if the designated constraints aren't met.

func (ExpressionFilterValidationError) Cause

Cause function returns cause value.

func (ExpressionFilterValidationError) Error

Error satisfies the builtin error interface

func (ExpressionFilterValidationError) ErrorName

ErrorName returns error name.

func (ExpressionFilterValidationError) Field

Field function returns field value.

func (ExpressionFilterValidationError) Key

Key function returns key value.

func (ExpressionFilterValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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