Documentation
¶
Index ¶
- Variables
- type ExpressionFilter
- func (*ExpressionFilter) Descriptor() ([]byte, []int)deprecated
- func (x *ExpressionFilter) GetExpression() string
- func (*ExpressionFilter) ProtoMessage()
- func (x *ExpressionFilter) ProtoReflect() protoreflect.Message
- func (x *ExpressionFilter) Reset()
- func (x *ExpressionFilter) String() string
- func (m *ExpressionFilter) Validate() error
- func (m *ExpressionFilter) ValidateAll() error
- type ExpressionFilterMultiError
- type ExpressionFilterValidationError
- func (e ExpressionFilterValidationError) Cause() error
- func (e ExpressionFilterValidationError) Error() string
- func (e ExpressionFilterValidationError) ErrorName() string
- func (e ExpressionFilterValidationError) Field() string
- func (e ExpressionFilterValidationError) Key() bool
- func (e ExpressionFilterValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (m ExpressionFilterMultiError) Error() string
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 ¶
func (e ExpressionFilterValidationError) Cause() error
Cause function returns cause value.
func (ExpressionFilterValidationError) Error ¶
func (e ExpressionFilterValidationError) Error() string
Error satisfies the builtin error interface
func (ExpressionFilterValidationError) ErrorName ¶
func (e ExpressionFilterValidationError) ErrorName() string
ErrorName returns error name.
func (ExpressionFilterValidationError) Field ¶
func (e ExpressionFilterValidationError) Field() string
Field function returns field value.
func (ExpressionFilterValidationError) Key ¶
func (e ExpressionFilterValidationError) Key() bool
Key function returns key value.
func (ExpressionFilterValidationError) Reason ¶
func (e ExpressionFilterValidationError) Reason() string
Reason function returns reason value.