reverse_connectionv3

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_clusters_reverse_connection_v3_reverse_connection_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ReverseConnectionClusterConfig

type ReverseConnectionClusterConfig struct {

	// Time interval after which Envoy removes unused dynamic hosts created for reverse connections.
	// Hosts that are not referenced by any connection pool are deleted during cleanup.
	//
	// If unset, Envoy uses a default of 60s.
	CleanupInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=cleanup_interval,json=cleanupInterval,proto3" json:"cleanup_interval,omitempty"`
	// Host identifier format string.
	//
	// This format string is evaluated against the downstream request context to compute
	// the host identifier for selecting the reverse connection endpoint. The format string
	// supports Envoy's standard formatter syntax, including:
	//
	// * “%REQ(header-name)%“: Extract request header value.
	// * “%DYNAMIC_METADATA(namespace:key)%“: Extract dynamic metadata value.
	// * “%CEL(expression)%“: Evaluate CEL expression.
	// * “%DOWNSTREAM_REMOTE_ADDRESS%“: Downstream connection address.
	// * “%DOWNSTREAM_LOCAL_ADDRESS%“: Downstream local address.
	// * Plain text and combinations of the above.
	//
	// Examples:
	//
	// * “%REQ(x-remote-node-id)%“: Use the value of the “x-remote-node-id“ header.
	// * “%REQ(host):EXTRACT_FIRST_PART%“: Extract the first part of the Host header before a dot.
	// * “%CEL(request.headers['x-node-id'] | orValue('default'))%“: Use CEL with fallback.
	// * “node-%REQ(x-tenant-id)%-%REQ(x-region)%“: Combine multiple values.
	//
	// If the format string evaluates to an empty value, the request will not be routed.
	HostIdFormat string `protobuf:"bytes,2,opt,name=host_id_format,json=hostIdFormat,proto3" json:"host_id_format,omitempty"`
	// contains filtered or unexported fields
}

Configuration for a cluster of type REVERSE_CONNECTION.

func (*ReverseConnectionClusterConfig) Descriptor deprecated

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

Deprecated: Use ReverseConnectionClusterConfig.ProtoReflect.Descriptor instead.

func (*ReverseConnectionClusterConfig) GetCleanupInterval

func (x *ReverseConnectionClusterConfig) GetCleanupInterval() *durationpb.Duration

func (*ReverseConnectionClusterConfig) GetHostIdFormat

func (x *ReverseConnectionClusterConfig) GetHostIdFormat() string

func (*ReverseConnectionClusterConfig) ProtoMessage

func (*ReverseConnectionClusterConfig) ProtoMessage()

func (*ReverseConnectionClusterConfig) ProtoReflect

func (*ReverseConnectionClusterConfig) Reset

func (x *ReverseConnectionClusterConfig) Reset()

func (*ReverseConnectionClusterConfig) String

func (*ReverseConnectionClusterConfig) Validate

func (m *ReverseConnectionClusterConfig) Validate() error

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

func (m *ReverseConnectionClusterConfig) ValidateAll() error

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

type ReverseConnectionClusterConfigMultiError

type ReverseConnectionClusterConfigMultiError []error

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

func (ReverseConnectionClusterConfigMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ReverseConnectionClusterConfigMultiError) Error

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

type ReverseConnectionClusterConfigValidationError

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

ReverseConnectionClusterConfigValidationError is the validation error returned by ReverseConnectionClusterConfig.Validate if the designated constraints aren't met.

func (ReverseConnectionClusterConfigValidationError) Cause

Cause function returns cause value.

func (ReverseConnectionClusterConfigValidationError) Error

Error satisfies the builtin error interface

func (ReverseConnectionClusterConfigValidationError) ErrorName

ErrorName returns error name.

func (ReverseConnectionClusterConfigValidationError) Field

Field function returns field value.

func (ReverseConnectionClusterConfigValidationError) Key

Key function returns key value.

func (ReverseConnectionClusterConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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