v2alpha

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 19 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_config_filter_http_dynamic_forward_proxy_v2alpha_dynamic_forward_proxy_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FilterConfig

type FilterConfig struct {

	// The DNS cache configuration that the filter will attach to. Note this configuration must
	// match that of associated :ref:`dynamic forward proxy cluster configuration
	// <envoy_api_field_config.cluster.dynamic_forward_proxy.v2alpha.ClusterConfig.dns_cache_config>`.
	DnsCacheConfig *v2alpha.DnsCacheConfig `protobuf:"bytes,1,opt,name=dns_cache_config,json=dnsCacheConfig,proto3" json:"dns_cache_config,omitempty"`
	// contains filtered or unexported fields
}

Configuration for the dynamic forward proxy HTTP filter. See the :ref:`architecture overview <arch_overview_http_dynamic_forward_proxy>` for more information. [#extension: envoy.filters.http.dynamic_forward_proxy]

func (*FilterConfig) Descriptor deprecated

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

Deprecated: Use FilterConfig.ProtoReflect.Descriptor instead.

func (*FilterConfig) GetDnsCacheConfig

func (x *FilterConfig) GetDnsCacheConfig() *v2alpha.DnsCacheConfig

func (*FilterConfig) ProtoMessage

func (*FilterConfig) ProtoMessage()

func (*FilterConfig) ProtoReflect added in v0.9.6

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

func (*FilterConfig) Reset

func (x *FilterConfig) Reset()

func (*FilterConfig) String

func (x *FilterConfig) String() string

func (*FilterConfig) Validate

func (m *FilterConfig) Validate() error

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

func (m *FilterConfig) ValidateAll() error

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

type FilterConfigMultiError added in v0.10.0

type FilterConfigMultiError []error

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

func (FilterConfigMultiError) AllErrors added in v0.10.0

func (m FilterConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FilterConfigMultiError) Error added in v0.10.0

func (m FilterConfigMultiError) Error() string

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

type FilterConfigValidationError

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

FilterConfigValidationError is the validation error returned by FilterConfig.Validate if the designated constraints aren't met.

func (FilterConfigValidationError) Cause

Cause function returns cause value.

func (FilterConfigValidationError) Error

Error satisfies the builtin error interface

func (FilterConfigValidationError) ErrorName

func (e FilterConfigValidationError) ErrorName() string

ErrorName returns error name.

func (FilterConfigValidationError) Field

Field function returns field value.

func (FilterConfigValidationError) Key

Key function returns key value.

func (FilterConfigValidationError) Reason

Reason function returns reason value.

type PerRouteConfig added in v0.9.1

type PerRouteConfig struct {

	// Types that are assignable to HostRewriteSpecifier:
	//
	//	*PerRouteConfig_HostRewrite
	//	*PerRouteConfig_AutoHostRewriteHeader
	HostRewriteSpecifier isPerRouteConfig_HostRewriteSpecifier `protobuf_oneof:"host_rewrite_specifier"`
	// contains filtered or unexported fields
}

Per route Configuration for the dynamic forward proxy HTTP filter.

func (*PerRouteConfig) Descriptor deprecated added in v0.9.1

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

Deprecated: Use PerRouteConfig.ProtoReflect.Descriptor instead.

func (*PerRouteConfig) GetAutoHostRewriteHeader added in v0.9.1

func (x *PerRouteConfig) GetAutoHostRewriteHeader() string

func (*PerRouteConfig) GetHostRewrite added in v0.9.1

func (x *PerRouteConfig) GetHostRewrite() string

func (*PerRouteConfig) GetHostRewriteSpecifier added in v0.9.1

func (m *PerRouteConfig) GetHostRewriteSpecifier() isPerRouteConfig_HostRewriteSpecifier

func (*PerRouteConfig) ProtoMessage added in v0.9.1

func (*PerRouteConfig) ProtoMessage()

func (*PerRouteConfig) ProtoReflect added in v0.9.6

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

func (*PerRouteConfig) Reset added in v0.9.1

func (x *PerRouteConfig) Reset()

func (*PerRouteConfig) String added in v0.9.1

func (x *PerRouteConfig) String() string

func (*PerRouteConfig) Validate added in v0.9.1

func (m *PerRouteConfig) Validate() error

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

func (m *PerRouteConfig) ValidateAll() error

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

type PerRouteConfigMultiError added in v0.10.0

type PerRouteConfigMultiError []error

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

func (PerRouteConfigMultiError) AllErrors added in v0.10.0

func (m PerRouteConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PerRouteConfigMultiError) Error added in v0.10.0

func (m PerRouteConfigMultiError) Error() string

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

type PerRouteConfigValidationError added in v0.9.1

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

PerRouteConfigValidationError is the validation error returned by PerRouteConfig.Validate if the designated constraints aren't met.

func (PerRouteConfigValidationError) Cause added in v0.9.1

Cause function returns cause value.

func (PerRouteConfigValidationError) Error added in v0.9.1

Error satisfies the builtin error interface

func (PerRouteConfigValidationError) ErrorName added in v0.9.1

func (e PerRouteConfigValidationError) ErrorName() string

ErrorName returns error name.

func (PerRouteConfigValidationError) Field added in v0.9.1

Field function returns field value.

func (PerRouteConfigValidationError) Key added in v0.9.1

Key function returns key value.

func (PerRouteConfigValidationError) Reason added in v0.9.1

Reason function returns reason value.

type PerRouteConfig_AutoHostRewriteHeader added in v0.9.1

type PerRouteConfig_AutoHostRewriteHeader struct {
	// Indicates that before DNS lookup, the host header will be swapped with
	// the value of this header. If not set or empty, the original host header
	// value will be used and no rewrite will happen.
	//
	// Note: this rewrite affects both DNS lookup and host header forwarding. However, this
	// option shouldn't be used with
	// :ref:`HCM host rewrite header <envoy_api_field_route.RouteAction.auto_host_rewrite_header>`
	// given that the value set here would be used for DNS lookups whereas the value set in the HCM
	// would be used for host header forwarding which is not the desired outcome.
	//
	// .. note::
	//
	//	If the header appears multiple times only the first value is used.
	AutoHostRewriteHeader string `protobuf:"bytes,2,opt,name=auto_host_rewrite_header,json=autoHostRewriteHeader,proto3,oneof"`
}

type PerRouteConfig_HostRewrite added in v0.9.1

type PerRouteConfig_HostRewrite struct {
	// Indicates that before DNS lookup, the host header will be swapped with
	// this value. If not set or empty, the original host header value
	// will be used and no rewrite will happen.
	//
	// Note: this rewrite affects both DNS lookup and host header forwarding. However, this
	// option shouldn't be used with
	// :ref:`HCM host rewrite <envoy_api_field_route.RouteAction.host_rewrite>` given that the
	// value set here would be used for DNS lookups whereas the value set in the HCM would be used
	// for host header forwarding which is not the desired outcome.
	HostRewrite string `protobuf:"bytes,1,opt,name=host_rewrite,json=hostRewrite,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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