compositev3

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: 19 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_filters_http_composite_v3_composite_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Composite

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

:ref:`Composite filter <config_http_filters_composite>` config. The composite filter config allows delegating filter handling to another filter as determined by matching on the request headers. This makes it possible to use different filters or filter configurations based on the incoming request.

This is intended to be used with :ref:`ExtensionWithMatcher <envoy_v3_api_msg_extensions.common.matching.v3.ExtensionWithMatcher>` where a match tree is specified that indicates (via :ref:`ExecuteFilterAction <envoy_v3_api_msg_extensions.filters.http.composite.v3.ExecuteFilterAction>`) which filter configuration to create and delegate to.

func (*Composite) Descriptor deprecated

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

Deprecated: Use Composite.ProtoReflect.Descriptor instead.

func (*Composite) ProtoMessage

func (*Composite) ProtoMessage()

func (*Composite) ProtoReflect

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

func (*Composite) Reset

func (x *Composite) Reset()

func (*Composite) String

func (x *Composite) String() string

func (*Composite) Validate

func (m *Composite) Validate() error

Validate checks the field values on Composite 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 (*Composite) ValidateAll added in v0.10.0

func (m *Composite) ValidateAll() error

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

type CompositeMultiError added in v0.10.0

type CompositeMultiError []error

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

func (CompositeMultiError) AllErrors added in v0.10.0

func (m CompositeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CompositeMultiError) Error added in v0.10.0

func (m CompositeMultiError) Error() string

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

type CompositeValidationError

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

CompositeValidationError is the validation error returned by Composite.Validate if the designated constraints aren't met.

func (CompositeValidationError) Cause

func (e CompositeValidationError) Cause() error

Cause function returns cause value.

func (CompositeValidationError) Error

func (e CompositeValidationError) Error() string

Error satisfies the builtin error interface

func (CompositeValidationError) ErrorName

func (e CompositeValidationError) ErrorName() string

ErrorName returns error name.

func (CompositeValidationError) Field

func (e CompositeValidationError) Field() string

Field function returns field value.

func (CompositeValidationError) Key

Key function returns key value.

func (CompositeValidationError) Reason

func (e CompositeValidationError) Reason() string

Reason function returns reason value.

type ExecuteFilterAction

type ExecuteFilterAction struct {
	TypedConfig *v3.TypedExtensionConfig `protobuf:"bytes,1,opt,name=typed_config,json=typedConfig,proto3" json:"typed_config,omitempty"`
	// contains filtered or unexported fields
}

Composite match action (see :ref:`matching docs <arch_overview_matching_api>` for more info on match actions). This specifies the filter configuration of the filter that the composite filter should delegate filter interactions to.

func (*ExecuteFilterAction) Descriptor deprecated

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

Deprecated: Use ExecuteFilterAction.ProtoReflect.Descriptor instead.

func (*ExecuteFilterAction) GetTypedConfig

func (x *ExecuteFilterAction) GetTypedConfig() *v3.TypedExtensionConfig

func (*ExecuteFilterAction) ProtoMessage

func (*ExecuteFilterAction) ProtoMessage()

func (*ExecuteFilterAction) ProtoReflect

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

func (*ExecuteFilterAction) Reset

func (x *ExecuteFilterAction) Reset()

func (*ExecuteFilterAction) String

func (x *ExecuteFilterAction) String() string

func (*ExecuteFilterAction) Validate

func (m *ExecuteFilterAction) Validate() error

Validate checks the field values on ExecuteFilterAction 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 (*ExecuteFilterAction) ValidateAll added in v0.10.0

func (m *ExecuteFilterAction) ValidateAll() error

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

type ExecuteFilterActionMultiError added in v0.10.0

type ExecuteFilterActionMultiError []error

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

func (ExecuteFilterActionMultiError) AllErrors added in v0.10.0

func (m ExecuteFilterActionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExecuteFilterActionMultiError) Error added in v0.10.0

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

type ExecuteFilterActionValidationError

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

ExecuteFilterActionValidationError is the validation error returned by ExecuteFilterAction.Validate if the designated constraints aren't met.

func (ExecuteFilterActionValidationError) Cause

Cause function returns cause value.

func (ExecuteFilterActionValidationError) Error

Error satisfies the builtin error interface

func (ExecuteFilterActionValidationError) ErrorName

ErrorName returns error name.

func (ExecuteFilterActionValidationError) Field

Field function returns field value.

func (ExecuteFilterActionValidationError) Key

Key function returns key value.

func (ExecuteFilterActionValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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