Documentation ¶
Index ¶
- Variables
- type ProxyProtocolUpstreamTransport
- func (*ProxyProtocolUpstreamTransport) Descriptor() ([]byte, []int)deprecated
- func (x *ProxyProtocolUpstreamTransport) GetAllowUnspecifiedAddress() bool
- func (x *ProxyProtocolUpstreamTransport) GetConfig() *v3.ProxyProtocolConfig
- func (x *ProxyProtocolUpstreamTransport) GetTlvAsPoolKey() bool
- func (x *ProxyProtocolUpstreamTransport) GetTransportSocket() *v3.TransportSocket
- func (*ProxyProtocolUpstreamTransport) ProtoMessage()
- func (x *ProxyProtocolUpstreamTransport) ProtoReflect() protoreflect.Message
- func (x *ProxyProtocolUpstreamTransport) Reset()
- func (x *ProxyProtocolUpstreamTransport) String() string
- func (m *ProxyProtocolUpstreamTransport) Validate() error
- func (m *ProxyProtocolUpstreamTransport) ValidateAll() error
- type ProxyProtocolUpstreamTransportMultiError
- type ProxyProtocolUpstreamTransportValidationError
- func (e ProxyProtocolUpstreamTransportValidationError) Cause() error
- func (e ProxyProtocolUpstreamTransportValidationError) Error() string
- func (e ProxyProtocolUpstreamTransportValidationError) ErrorName() string
- func (e ProxyProtocolUpstreamTransportValidationError) Field() string
- func (e ProxyProtocolUpstreamTransportValidationError) Key() bool
- func (e ProxyProtocolUpstreamTransportValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_transport_sockets_proxy_protocol_v3_upstream_proxy_protocol_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ProxyProtocolUpstreamTransport ¶
type ProxyProtocolUpstreamTransport struct { // The PROXY protocol settings Config *v3.ProxyProtocolConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // The underlying transport socket being wrapped. TransportSocket *v3.TransportSocket `protobuf:"bytes,2,opt,name=transport_socket,json=transportSocket,proto3" json:"transport_socket,omitempty"` // If this is set to true, the null addresses are allowed in the PROXY protocol header. // The proxy protocol header encodes the null addresses to AF_UNSPEC. // [#not-implemented-hide:] AllowUnspecifiedAddress bool `` /* 133-byte string literal not displayed */ // If true, all the TLVs are encoded in the connection pool key. // [#not-implemented-hide:] TlvAsPoolKey bool `protobuf:"varint,4,opt,name=tlv_as_pool_key,json=tlvAsPoolKey,proto3" json:"tlv_as_pool_key,omitempty"` // contains filtered or unexported fields }
Configuration for PROXY protocol socket
func (*ProxyProtocolUpstreamTransport) Descriptor
deprecated
func (*ProxyProtocolUpstreamTransport) Descriptor() ([]byte, []int)
Deprecated: Use ProxyProtocolUpstreamTransport.ProtoReflect.Descriptor instead.
func (*ProxyProtocolUpstreamTransport) GetAllowUnspecifiedAddress ¶ added in v1.33.0
func (x *ProxyProtocolUpstreamTransport) GetAllowUnspecifiedAddress() bool
func (*ProxyProtocolUpstreamTransport) GetConfig ¶
func (x *ProxyProtocolUpstreamTransport) GetConfig() *v3.ProxyProtocolConfig
func (*ProxyProtocolUpstreamTransport) GetTlvAsPoolKey ¶ added in v1.33.0
func (x *ProxyProtocolUpstreamTransport) GetTlvAsPoolKey() bool
func (*ProxyProtocolUpstreamTransport) GetTransportSocket ¶
func (x *ProxyProtocolUpstreamTransport) GetTransportSocket() *v3.TransportSocket
func (*ProxyProtocolUpstreamTransport) ProtoMessage ¶
func (*ProxyProtocolUpstreamTransport) ProtoMessage()
func (*ProxyProtocolUpstreamTransport) ProtoReflect ¶
func (x *ProxyProtocolUpstreamTransport) ProtoReflect() protoreflect.Message
func (*ProxyProtocolUpstreamTransport) Reset ¶
func (x *ProxyProtocolUpstreamTransport) Reset()
func (*ProxyProtocolUpstreamTransport) String ¶
func (x *ProxyProtocolUpstreamTransport) String() string
func (*ProxyProtocolUpstreamTransport) Validate ¶
func (m *ProxyProtocolUpstreamTransport) Validate() error
Validate checks the field values on ProxyProtocolUpstreamTransport 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 (*ProxyProtocolUpstreamTransport) ValidateAll ¶
func (m *ProxyProtocolUpstreamTransport) ValidateAll() error
ValidateAll checks the field values on ProxyProtocolUpstreamTransport 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 ProxyProtocolUpstreamTransportMultiError, or nil if none found.
type ProxyProtocolUpstreamTransportMultiError ¶
type ProxyProtocolUpstreamTransportMultiError []error
ProxyProtocolUpstreamTransportMultiError is an error wrapping multiple validation errors returned by ProxyProtocolUpstreamTransport.ValidateAll() if the designated constraints aren't met.
func (ProxyProtocolUpstreamTransportMultiError) AllErrors ¶
func (m ProxyProtocolUpstreamTransportMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProxyProtocolUpstreamTransportMultiError) Error ¶
func (m ProxyProtocolUpstreamTransportMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProxyProtocolUpstreamTransportValidationError ¶
type ProxyProtocolUpstreamTransportValidationError struct {
// contains filtered or unexported fields
}
ProxyProtocolUpstreamTransportValidationError is the validation error returned by ProxyProtocolUpstreamTransport.Validate if the designated constraints aren't met.
func (ProxyProtocolUpstreamTransportValidationError) Cause ¶
func (e ProxyProtocolUpstreamTransportValidationError) Cause() error
Cause function returns cause value.
func (ProxyProtocolUpstreamTransportValidationError) Error ¶
func (e ProxyProtocolUpstreamTransportValidationError) Error() string
Error satisfies the builtin error interface
func (ProxyProtocolUpstreamTransportValidationError) ErrorName ¶
func (e ProxyProtocolUpstreamTransportValidationError) ErrorName() string
ErrorName returns error name.
func (ProxyProtocolUpstreamTransportValidationError) Field ¶
func (e ProxyProtocolUpstreamTransportValidationError) Field() string
Field function returns field value.
func (ProxyProtocolUpstreamTransportValidationError) Key ¶
func (e ProxyProtocolUpstreamTransportValidationError) Key() bool
Key function returns key value.
func (ProxyProtocolUpstreamTransportValidationError) Reason ¶
func (e ProxyProtocolUpstreamTransportValidationError) Reason() string
Reason function returns reason value.