Documentation
¶
Index ¶
- Variables
- type ReverseConnectionClusterConfig
- func (*ReverseConnectionClusterConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ReverseConnectionClusterConfig) GetCleanupInterval() *durationpb.Duration
- func (x *ReverseConnectionClusterConfig) GetHostIdFormat() string
- func (*ReverseConnectionClusterConfig) ProtoMessage()
- func (x *ReverseConnectionClusterConfig) ProtoReflect() protoreflect.Message
- func (x *ReverseConnectionClusterConfig) Reset()
- func (x *ReverseConnectionClusterConfig) String() string
- func (m *ReverseConnectionClusterConfig) Validate() error
- func (m *ReverseConnectionClusterConfig) ValidateAll() error
- type ReverseConnectionClusterConfigMultiError
- type ReverseConnectionClusterConfigValidationError
- func (e ReverseConnectionClusterConfigValidationError) Cause() error
- func (e ReverseConnectionClusterConfigValidationError) Error() string
- func (e ReverseConnectionClusterConfigValidationError) ErrorName() string
- func (e ReverseConnectionClusterConfigValidationError) Field() string
- func (e ReverseConnectionClusterConfigValidationError) Key() bool
- func (e ReverseConnectionClusterConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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 (x *ReverseConnectionClusterConfig) ProtoReflect() protoreflect.Message
func (*ReverseConnectionClusterConfig) Reset ¶
func (x *ReverseConnectionClusterConfig) Reset()
func (*ReverseConnectionClusterConfig) String ¶
func (x *ReverseConnectionClusterConfig) String() 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 ¶
func (m ReverseConnectionClusterConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReverseConnectionClusterConfigMultiError) Error ¶
func (m ReverseConnectionClusterConfigMultiError) Error() string
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 ¶
func (e ReverseConnectionClusterConfigValidationError) Cause() error
Cause function returns cause value.
func (ReverseConnectionClusterConfigValidationError) Error ¶
func (e ReverseConnectionClusterConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ReverseConnectionClusterConfigValidationError) ErrorName ¶
func (e ReverseConnectionClusterConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ReverseConnectionClusterConfigValidationError) Field ¶
func (e ReverseConnectionClusterConfigValidationError) Field() string
Field function returns field value.
func (ReverseConnectionClusterConfigValidationError) Key ¶
func (e ReverseConnectionClusterConfigValidationError) Key() bool
Key function returns key value.
func (ReverseConnectionClusterConfigValidationError) Reason ¶
func (e ReverseConnectionClusterConfigValidationError) Reason() string
Reason function returns reason value.