header_mutationv3

package
v0.0.0-...-5360bea 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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_filters_http_header_mutation_v3_header_mutation_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HeaderMutation

type HeaderMutation struct {
	Mutations *Mutations `protobuf:"bytes,1,opt,name=mutations,proto3" json:"mutations,omitempty"`
	// contains filtered or unexported fields
}

Configuration for the header mutation filter. The mutation rules in the filter configuration will always be applied first and then the per-route mutation rules, if both are specified.

func (*HeaderMutation) Descriptor deprecated

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

Deprecated: Use HeaderMutation.ProtoReflect.Descriptor instead.

func (*HeaderMutation) GetMutations

func (x *HeaderMutation) GetMutations() *Mutations

func (*HeaderMutation) ProtoMessage

func (*HeaderMutation) ProtoMessage()

func (*HeaderMutation) ProtoReflect

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

func (*HeaderMutation) Reset

func (x *HeaderMutation) Reset()

func (*HeaderMutation) String

func (x *HeaderMutation) String() string

func (*HeaderMutation) Validate

func (m *HeaderMutation) Validate() error

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

func (m *HeaderMutation) ValidateAll() error

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

type HeaderMutationMultiError

type HeaderMutationMultiError []error

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

func (HeaderMutationMultiError) AllErrors

func (m HeaderMutationMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderMutationMultiError) Error

func (m HeaderMutationMultiError) Error() string

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

type HeaderMutationPerRoute

type HeaderMutationPerRoute struct {
	Mutations *Mutations `protobuf:"bytes,1,opt,name=mutations,proto3" json:"mutations,omitempty"`
	// contains filtered or unexported fields
}

Per route configuration for the header mutation filter. If this is configured at multiple levels (route level, virtual host level, and route table level), only the most specific one will be used.

func (*HeaderMutationPerRoute) Descriptor deprecated

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

Deprecated: Use HeaderMutationPerRoute.ProtoReflect.Descriptor instead.

func (*HeaderMutationPerRoute) GetMutations

func (x *HeaderMutationPerRoute) GetMutations() *Mutations

func (*HeaderMutationPerRoute) ProtoMessage

func (*HeaderMutationPerRoute) ProtoMessage()

func (*HeaderMutationPerRoute) ProtoReflect

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

func (*HeaderMutationPerRoute) Reset

func (x *HeaderMutationPerRoute) Reset()

func (*HeaderMutationPerRoute) String

func (x *HeaderMutationPerRoute) String() string

func (*HeaderMutationPerRoute) Validate

func (m *HeaderMutationPerRoute) Validate() error

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

func (m *HeaderMutationPerRoute) ValidateAll() error

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

type HeaderMutationPerRouteMultiError

type HeaderMutationPerRouteMultiError []error

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

func (HeaderMutationPerRouteMultiError) AllErrors

func (m HeaderMutationPerRouteMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderMutationPerRouteMultiError) Error

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

type HeaderMutationPerRouteValidationError

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

HeaderMutationPerRouteValidationError is the validation error returned by HeaderMutationPerRoute.Validate if the designated constraints aren't met.

func (HeaderMutationPerRouteValidationError) Cause

Cause function returns cause value.

func (HeaderMutationPerRouteValidationError) Error

Error satisfies the builtin error interface

func (HeaderMutationPerRouteValidationError) ErrorName

ErrorName returns error name.

func (HeaderMutationPerRouteValidationError) Field

Field function returns field value.

func (HeaderMutationPerRouteValidationError) Key

Key function returns key value.

func (HeaderMutationPerRouteValidationError) Reason

Reason function returns reason value.

type HeaderMutationValidationError

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

HeaderMutationValidationError is the validation error returned by HeaderMutation.Validate if the designated constraints aren't met.

func (HeaderMutationValidationError) Cause

Cause function returns cause value.

func (HeaderMutationValidationError) Error

Error satisfies the builtin error interface

func (HeaderMutationValidationError) ErrorName

func (e HeaderMutationValidationError) ErrorName() string

ErrorName returns error name.

func (HeaderMutationValidationError) Field

Field function returns field value.

func (HeaderMutationValidationError) Key

Key function returns key value.

func (HeaderMutationValidationError) Reason

Reason function returns reason value.

type Mutations

type Mutations struct {

	// The request mutations are applied before the request is forwarded to the upstream cluster.
	RequestMutations []*v3.HeaderMutation `protobuf:"bytes,1,rep,name=request_mutations,json=requestMutations,proto3" json:"request_mutations,omitempty"`
	// The response mutations are applied before the response is sent to the downstream client.
	ResponseMutations []*v3.HeaderMutation `protobuf:"bytes,2,rep,name=response_mutations,json=responseMutations,proto3" json:"response_mutations,omitempty"`
	// contains filtered or unexported fields
}

func (*Mutations) Descriptor deprecated

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

Deprecated: Use Mutations.ProtoReflect.Descriptor instead.

func (*Mutations) GetRequestMutations

func (x *Mutations) GetRequestMutations() []*v3.HeaderMutation

func (*Mutations) GetResponseMutations

func (x *Mutations) GetResponseMutations() []*v3.HeaderMutation

func (*Mutations) ProtoMessage

func (*Mutations) ProtoMessage()

func (*Mutations) ProtoReflect

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

func (*Mutations) Reset

func (x *Mutations) Reset()

func (*Mutations) String

func (x *Mutations) String() string

func (*Mutations) Validate

func (m *Mutations) Validate() error

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

func (m *Mutations) ValidateAll() error

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

type MutationsMultiError

type MutationsMultiError []error

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

func (MutationsMultiError) AllErrors

func (m MutationsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MutationsMultiError) Error

func (m MutationsMultiError) Error() string

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

type MutationsValidationError

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

MutationsValidationError is the validation error returned by Mutations.Validate if the designated constraints aren't met.

func (MutationsValidationError) Cause

func (e MutationsValidationError) Cause() error

Cause function returns cause value.

func (MutationsValidationError) Error

func (e MutationsValidationError) Error() string

Error satisfies the builtin error interface

func (MutationsValidationError) ErrorName

func (e MutationsValidationError) ErrorName() string

ErrorName returns error name.

func (MutationsValidationError) Field

func (e MutationsValidationError) Field() string

Field function returns field value.

func (MutationsValidationError) Key

Key function returns key value.

func (MutationsValidationError) Reason

func (e MutationsValidationError) 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