listener

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FilterChainMatch_ConnectionSourceType_name = map[int32]string{
		0: "ANY",
		1: "LOCAL",
		2: "EXTERNAL",
	}
	FilterChainMatch_ConnectionSourceType_value = map[string]int32{
		"ANY":      0,
		"LOCAL":    1,
		"EXTERNAL": 2,
	}
)

Enum value maps for FilterChainMatch_ConnectionSourceType.

View Source
var File_envoy_api_v2_listener_listener_components_proto protoreflect.FileDescriptor
View Source
var File_envoy_api_v2_listener_listener_proto protoreflect.FileDescriptor
View Source
var File_envoy_api_v2_listener_quic_config_proto protoreflect.FileDescriptor
View Source
var File_envoy_api_v2_listener_udp_listener_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ActiveRawUdpListenerConfig

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

func (*ActiveRawUdpListenerConfig) Descriptor deprecated

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

Deprecated: Use ActiveRawUdpListenerConfig.ProtoReflect.Descriptor instead.

func (*ActiveRawUdpListenerConfig) ProtoMessage

func (*ActiveRawUdpListenerConfig) ProtoMessage()

func (*ActiveRawUdpListenerConfig) ProtoReflect

func (*ActiveRawUdpListenerConfig) Reset

func (x *ActiveRawUdpListenerConfig) Reset()

func (*ActiveRawUdpListenerConfig) String

func (x *ActiveRawUdpListenerConfig) String() string

func (*ActiveRawUdpListenerConfig) Validate

func (m *ActiveRawUdpListenerConfig) Validate() error

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

func (m *ActiveRawUdpListenerConfig) ValidateAll() error

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

type ActiveRawUdpListenerConfigMultiError

type ActiveRawUdpListenerConfigMultiError []error

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

func (ActiveRawUdpListenerConfigMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ActiveRawUdpListenerConfigMultiError) Error

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

type ActiveRawUdpListenerConfigValidationError

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

ActiveRawUdpListenerConfigValidationError is the validation error returned by ActiveRawUdpListenerConfig.Validate if the designated constraints aren't met.

func (ActiveRawUdpListenerConfigValidationError) Cause

Cause function returns cause value.

func (ActiveRawUdpListenerConfigValidationError) Error

Error satisfies the builtin error interface

func (ActiveRawUdpListenerConfigValidationError) ErrorName

ErrorName returns error name.

func (ActiveRawUdpListenerConfigValidationError) Field

Field function returns field value.

func (ActiveRawUdpListenerConfigValidationError) Key

Key function returns key value.

func (ActiveRawUdpListenerConfigValidationError) Reason

Reason function returns reason value.

type Filter

type Filter struct {

	// The name of the filter to instantiate. The name must match a
	// :ref:`supported filter <config_network_filters>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Filter specific configuration which depends on the filter being
	// instantiated. See the supported filters for further documentation.
	//
	// Types that are assignable to ConfigType:
	//	*Filter_Config
	//	*Filter_TypedConfig
	ConfigType isFilter_ConfigType `protobuf_oneof:"config_type"`
	// contains filtered or unexported fields
}

func (*Filter) Descriptor deprecated

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

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetConfig deprecated

func (x *Filter) GetConfig() *_struct.Struct

Deprecated: Do not use.

func (*Filter) GetConfigType

func (m *Filter) GetConfigType() isFilter_ConfigType

func (*Filter) GetName

func (x *Filter) GetName() string

func (*Filter) GetTypedConfig

func (x *Filter) GetTypedConfig() *any1.Any

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

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

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

func (*Filter) Validate

func (m *Filter) Validate() error

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

func (m *Filter) ValidateAll() error

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

type FilterChain

type FilterChain struct {

	// The criteria to use when matching a connection to this filter chain.
	FilterChainMatch *FilterChainMatch `protobuf:"bytes,1,opt,name=filter_chain_match,json=filterChainMatch,proto3" json:"filter_chain_match,omitempty"`
	// The TLS context for this filter chain.
	//
	// .. attention::
	//
	//   **This field is deprecated**. Use `transport_socket` with name `tls` instead. If both are
	//   set, `transport_socket` takes priority.
	//
	// Deprecated: Do not use.
	TlsContext *auth.DownstreamTlsContext `protobuf:"bytes,2,opt,name=tls_context,json=tlsContext,proto3" json:"tls_context,omitempty"`
	// A list of individual network filters that make up the filter chain for
	// connections established with the listener. Order matters as the filters are
	// processed sequentially as connection events happen. Note: If the filter
	// list is empty, the connection will close by default.
	Filters []*Filter `protobuf:"bytes,3,rep,name=filters,proto3" json:"filters,omitempty"`
	// Whether the listener should expect a PROXY protocol V1 header on new
	// connections. If this option is enabled, the listener will assume that that
	// remote address of the connection is the one specified in the header. Some
	// load balancers including the AWS ELB support this option. If the option is
	// absent or set to false, Envoy will use the physical peer address of the
	// connection as the remote address.
	UseProxyProto *wrappers.BoolValue `protobuf:"bytes,4,opt,name=use_proxy_proto,json=useProxyProto,proto3" json:"use_proxy_proto,omitempty"`
	// [#not-implemented-hide:] filter chain metadata.
	Metadata *core.Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Optional custom transport socket implementation to use for downstream connections.
	// To setup TLS, set a transport socket with name `tls` and
	// :ref:`DownstreamTlsContext <envoy_api_msg_auth.DownstreamTlsContext>` in the `typed_config`.
	// If no transport socket configuration is specified, new connections
	// will be set up with plaintext.
	TransportSocket *core.TransportSocket `protobuf:"bytes,6,opt,name=transport_socket,json=transportSocket,proto3" json:"transport_socket,omitempty"`
	// [#not-implemented-hide:] The unique name (or empty) by which this filter chain is known. If no
	// name is provided, Envoy will allocate an internal UUID for the filter chain. If the filter
	// chain is to be dynamically updated or removed via FCDS a unique name must be provided.
	Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

A filter chain wraps a set of match criteria, an option TLS context, a set of filters, and various other parameters. [#next-free-field: 8]

func (*FilterChain) Descriptor deprecated

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

Deprecated: Use FilterChain.ProtoReflect.Descriptor instead.

func (*FilterChain) GetFilterChainMatch

func (x *FilterChain) GetFilterChainMatch() *FilterChainMatch

func (*FilterChain) GetFilters

func (x *FilterChain) GetFilters() []*Filter

func (*FilterChain) GetMetadata

func (x *FilterChain) GetMetadata() *core.Metadata

func (*FilterChain) GetName

func (x *FilterChain) GetName() string

func (*FilterChain) GetTlsContext deprecated

func (x *FilterChain) GetTlsContext() *auth.DownstreamTlsContext

Deprecated: Do not use.

func (*FilterChain) GetTransportSocket

func (x *FilterChain) GetTransportSocket() *core.TransportSocket

func (*FilterChain) GetUseProxyProto

func (x *FilterChain) GetUseProxyProto() *wrappers.BoolValue

func (*FilterChain) ProtoMessage

func (*FilterChain) ProtoMessage()

func (*FilterChain) ProtoReflect

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

func (*FilterChain) Reset

func (x *FilterChain) Reset()

func (*FilterChain) String

func (x *FilterChain) String() string

func (*FilterChain) Validate

func (m *FilterChain) Validate() error

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

func (m *FilterChain) ValidateAll() error

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

type FilterChainMatch

type FilterChainMatch struct {

	// Optional destination port to consider when use_original_dst is set on the
	// listener in determining a filter chain match.
	DestinationPort *wrappers.UInt32Value `protobuf:"bytes,8,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"`
	// If non-empty, an IP address and prefix length to match addresses when the
	// listener is bound to 0.0.0.0/:: or when use_original_dst is specified.
	PrefixRanges []*core.CidrRange `protobuf:"bytes,3,rep,name=prefix_ranges,json=prefixRanges,proto3" json:"prefix_ranges,omitempty"`
	// If non-empty, an IP address and suffix length to match addresses when the
	// listener is bound to 0.0.0.0/:: or when use_original_dst is specified.
	// [#not-implemented-hide:]
	AddressSuffix string `protobuf:"bytes,4,opt,name=address_suffix,json=addressSuffix,proto3" json:"address_suffix,omitempty"`
	// [#not-implemented-hide:]
	SuffixLen *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=suffix_len,json=suffixLen,proto3" json:"suffix_len,omitempty"`
	// Specifies the connection source IP match type. Can be any, local or external network.
	SourceType FilterChainMatch_ConnectionSourceType `` /* 158-byte string literal not displayed */
	// The criteria is satisfied if the source IP address of the downstream
	// connection is contained in at least one of the specified subnets. If the
	// parameter is not specified or the list is empty, the source IP address is
	// ignored.
	SourcePrefixRanges []*core.CidrRange `protobuf:"bytes,6,rep,name=source_prefix_ranges,json=sourcePrefixRanges,proto3" json:"source_prefix_ranges,omitempty"`
	// The criteria is satisfied if the source port of the downstream connection
	// is contained in at least one of the specified ports. If the parameter is
	// not specified, the source port is ignored.
	SourcePorts []uint32 `protobuf:"varint,7,rep,packed,name=source_ports,json=sourcePorts,proto3" json:"source_ports,omitempty"`
	// If non-empty, a list of server names (e.g. SNI for TLS protocol) to consider when determining
	// a filter chain match. Those values will be compared against the server names of a new
	// connection, when detected by one of the listener filters.
	//
	// The server name will be matched against all wildcard domains, i.e. “www.example.com“
	// will be first matched against “www.example.com“, then “*.example.com“, then “*.com“.
	//
	// Note that partial wildcards are not supported, and values like “*w.example.com“ are invalid.
	//
	// .. attention::
	//
	//   See the :ref:`FAQ entry <faq_how_to_setup_sni>` on how to configure SNI for more
	//   information.
	ServerNames []string `protobuf:"bytes,11,rep,name=server_names,json=serverNames,proto3" json:"server_names,omitempty"`
	// If non-empty, a transport protocol to consider when determining a filter chain match.
	// This value will be compared against the transport protocol of a new connection, when
	// it's detected by one of the listener filters.
	//
	// Suggested values include:
	//
	// * “raw_buffer“ - default, used when no transport protocol is detected,
	// * “tls“ - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>`
	//   when TLS protocol is detected.
	TransportProtocol string `protobuf:"bytes,9,opt,name=transport_protocol,json=transportProtocol,proto3" json:"transport_protocol,omitempty"`
	// If non-empty, a list of application protocols (e.g. ALPN for TLS protocol) to consider when
	// determining a filter chain match. Those values will be compared against the application
	// protocols of a new connection, when detected by one of the listener filters.
	//
	// Suggested values include:
	//
	// * “http/1.1“ - set by :ref:`envoy.filters.listener.tls_inspector
	//   <config_listener_filters_tls_inspector>`,
	// * “h2“ - set by :ref:`envoy.filters.listener.tls_inspector <config_listener_filters_tls_inspector>`
	//
	// .. attention::
	//
	//   Currently, only :ref:`TLS Inspector <config_listener_filters_tls_inspector>` provides
	//   application protocol detection based on the requested
	//   `ALPN <https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation>`_ values.
	//
	//   However, the use of ALPN is pretty much limited to the HTTP/2 traffic on the Internet,
	//   and matching on values other than “h2“ is going to lead to a lot of false negatives,
	//   unless all connecting clients are known to use ALPN.
	ApplicationProtocols []string `protobuf:"bytes,10,rep,name=application_protocols,json=applicationProtocols,proto3" json:"application_protocols,omitempty"`
	// contains filtered or unexported fields
}

Specifies the match criteria for selecting a specific filter chain for a listener.

In order for a filter chain to be selected, *ALL* of its criteria must be fulfilled by the incoming connection, properties of which are set by the networking stack and/or listener filters.

The following order applies:

1. Destination port. 2. Destination IP address. 3. Server name (e.g. SNI for TLS protocol), 4. Transport protocol. 5. Application protocols (e.g. ALPN for TLS protocol). 6. Source type (e.g. any, local or external network). 7. Source IP address. 8. Source port.

For criteria that allow ranges or wildcards, the most specific value in any of the configured filter chains that matches the incoming connection is going to be used (e.g. for SNI “www.example.com“ the most specific match would be “www.example.com“, then “*.example.com“, then “*.com“, then any filter chain without “server_names“ requirements).

[#comment: Implemented rules are kept in the preference order, with deprecated fields listed at the end, because that's how we want to list them in the docs.

[#comment:TODO(PiotrSikora): Add support for configurable precedence of the rules] [#next-free-field: 13]

func (*FilterChainMatch) Descriptor deprecated

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

Deprecated: Use FilterChainMatch.ProtoReflect.Descriptor instead.

func (*FilterChainMatch) GetAddressSuffix

func (x *FilterChainMatch) GetAddressSuffix() string

func (*FilterChainMatch) GetApplicationProtocols

func (x *FilterChainMatch) GetApplicationProtocols() []string

func (*FilterChainMatch) GetDestinationPort

func (x *FilterChainMatch) GetDestinationPort() *wrappers.UInt32Value

func (*FilterChainMatch) GetPrefixRanges

func (x *FilterChainMatch) GetPrefixRanges() []*core.CidrRange

func (*FilterChainMatch) GetServerNames

func (x *FilterChainMatch) GetServerNames() []string

func (*FilterChainMatch) GetSourcePorts

func (x *FilterChainMatch) GetSourcePorts() []uint32

func (*FilterChainMatch) GetSourcePrefixRanges

func (x *FilterChainMatch) GetSourcePrefixRanges() []*core.CidrRange

func (*FilterChainMatch) GetSourceType

func (*FilterChainMatch) GetSuffixLen

func (x *FilterChainMatch) GetSuffixLen() *wrappers.UInt32Value

func (*FilterChainMatch) GetTransportProtocol

func (x *FilterChainMatch) GetTransportProtocol() string

func (*FilterChainMatch) ProtoMessage

func (*FilterChainMatch) ProtoMessage()

func (*FilterChainMatch) ProtoReflect

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

func (*FilterChainMatch) Reset

func (x *FilterChainMatch) Reset()

func (*FilterChainMatch) String

func (x *FilterChainMatch) String() string

func (*FilterChainMatch) Validate

func (m *FilterChainMatch) Validate() error

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

func (m *FilterChainMatch) ValidateAll() error

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

type FilterChainMatchMultiError

type FilterChainMatchMultiError []error

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

func (FilterChainMatchMultiError) AllErrors

func (m FilterChainMatchMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FilterChainMatchMultiError) Error

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

type FilterChainMatchValidationError

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

FilterChainMatchValidationError is the validation error returned by FilterChainMatch.Validate if the designated constraints aren't met.

func (FilterChainMatchValidationError) Cause

Cause function returns cause value.

func (FilterChainMatchValidationError) Error

Error satisfies the builtin error interface

func (FilterChainMatchValidationError) ErrorName

ErrorName returns error name.

func (FilterChainMatchValidationError) Field

Field function returns field value.

func (FilterChainMatchValidationError) Key

Key function returns key value.

func (FilterChainMatchValidationError) Reason

Reason function returns reason value.

type FilterChainMatch_ConnectionSourceType

type FilterChainMatch_ConnectionSourceType int32
const (
	// Any connection source matches.
	FilterChainMatch_ANY FilterChainMatch_ConnectionSourceType = 0
	// Match a connection originating from the same host.
	FilterChainMatch_LOCAL FilterChainMatch_ConnectionSourceType = 1
	// Match a connection originating from a different host.
	FilterChainMatch_EXTERNAL FilterChainMatch_ConnectionSourceType = 2
)

func (FilterChainMatch_ConnectionSourceType) Descriptor

func (FilterChainMatch_ConnectionSourceType) Enum

func (FilterChainMatch_ConnectionSourceType) EnumDescriptor deprecated

func (FilterChainMatch_ConnectionSourceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FilterChainMatch_ConnectionSourceType.Descriptor instead.

func (FilterChainMatch_ConnectionSourceType) Number

func (FilterChainMatch_ConnectionSourceType) String

func (FilterChainMatch_ConnectionSourceType) Type

type FilterChainMultiError

type FilterChainMultiError []error

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

func (FilterChainMultiError) AllErrors

func (m FilterChainMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FilterChainMultiError) Error

func (m FilterChainMultiError) Error() string

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

type FilterChainValidationError

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

FilterChainValidationError is the validation error returned by FilterChain.Validate if the designated constraints aren't met.

func (FilterChainValidationError) Cause

Cause function returns cause value.

func (FilterChainValidationError) Error

Error satisfies the builtin error interface

func (FilterChainValidationError) ErrorName

func (e FilterChainValidationError) ErrorName() string

ErrorName returns error name.

func (FilterChainValidationError) Field

Field function returns field value.

func (FilterChainValidationError) Key

Key function returns key value.

func (FilterChainValidationError) Reason

Reason function returns reason value.

type FilterMultiError

type FilterMultiError []error

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

func (FilterMultiError) AllErrors

func (m FilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FilterMultiError) Error

func (m FilterMultiError) Error() string

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

type FilterValidationError

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

FilterValidationError is the validation error returned by Filter.Validate if the designated constraints aren't met.

func (FilterValidationError) Cause

func (e FilterValidationError) Cause() error

Cause function returns cause value.

func (FilterValidationError) Error

func (e FilterValidationError) Error() string

Error satisfies the builtin error interface

func (FilterValidationError) ErrorName

func (e FilterValidationError) ErrorName() string

ErrorName returns error name.

func (FilterValidationError) Field

func (e FilterValidationError) Field() string

Field function returns field value.

func (FilterValidationError) Key

func (e FilterValidationError) Key() bool

Key function returns key value.

func (FilterValidationError) Reason

func (e FilterValidationError) Reason() string

Reason function returns reason value.

type Filter_Config

type Filter_Config struct {
	// Deprecated: Do not use.
	Config *_struct.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"`
}

type Filter_TypedConfig

type Filter_TypedConfig struct {
	TypedConfig *any1.Any `protobuf:"bytes,4,opt,name=typed_config,json=typedConfig,proto3,oneof"`
}

type ListenerFilter

type ListenerFilter struct {

	// The name of the filter to instantiate. The name must match a
	// :ref:`supported filter <config_listener_filters>`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Filter specific configuration which depends on the filter being instantiated.
	// See the supported filters for further documentation.
	//
	// Types that are assignable to ConfigType:
	//	*ListenerFilter_Config
	//	*ListenerFilter_TypedConfig
	ConfigType isListenerFilter_ConfigType `protobuf_oneof:"config_type"`
	// Optional match predicate used to disable the filter. The filter is enabled when this field is empty.
	// See :ref:`ListenerFilterChainMatchPredicate <envoy_api_msg_listener.ListenerFilterChainMatchPredicate>`
	// for further examples.
	FilterDisabled *ListenerFilterChainMatchPredicate `protobuf:"bytes,4,opt,name=filter_disabled,json=filterDisabled,proto3" json:"filter_disabled,omitempty"`
	// contains filtered or unexported fields
}

func (*ListenerFilter) Descriptor deprecated

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

Deprecated: Use ListenerFilter.ProtoReflect.Descriptor instead.

func (*ListenerFilter) GetConfig deprecated

func (x *ListenerFilter) GetConfig() *_struct.Struct

Deprecated: Do not use.

func (*ListenerFilter) GetConfigType

func (m *ListenerFilter) GetConfigType() isListenerFilter_ConfigType

func (*ListenerFilter) GetFilterDisabled

func (x *ListenerFilter) GetFilterDisabled() *ListenerFilterChainMatchPredicate

func (*ListenerFilter) GetName

func (x *ListenerFilter) GetName() string

func (*ListenerFilter) GetTypedConfig

func (x *ListenerFilter) GetTypedConfig() *any1.Any

func (*ListenerFilter) ProtoMessage

func (*ListenerFilter) ProtoMessage()

func (*ListenerFilter) ProtoReflect

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

func (*ListenerFilter) Reset

func (x *ListenerFilter) Reset()

func (*ListenerFilter) String

func (x *ListenerFilter) String() string

func (*ListenerFilter) Validate

func (m *ListenerFilter) Validate() error

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

func (m *ListenerFilter) ValidateAll() error

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

type ListenerFilterChainMatchPredicate

type ListenerFilterChainMatchPredicate struct {

	// Types that are assignable to Rule:
	//	*ListenerFilterChainMatchPredicate_OrMatch
	//	*ListenerFilterChainMatchPredicate_AndMatch
	//	*ListenerFilterChainMatchPredicate_NotMatch
	//	*ListenerFilterChainMatchPredicate_AnyMatch
	//	*ListenerFilterChainMatchPredicate_DestinationPortRange
	Rule isListenerFilterChainMatchPredicate_Rule `protobuf_oneof:"rule"`
	// contains filtered or unexported fields
}

Listener filter chain match configuration. This is a recursive structure which allows complex nested match configurations to be built using various logical operators.

Examples:

* Matches if the destination port is 3306.

.. code-block:: yaml

destination_port_range:
 start: 3306
 end: 3307

* Matches if the destination port is 3306 or 15000.

.. code-block:: yaml

or_match:
  rules:
    - destination_port_range:
        start: 3306
        end: 3307
    - destination_port_range:
        start: 15000
        end: 15001

[#next-free-field: 6]

func (*ListenerFilterChainMatchPredicate) Descriptor deprecated

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

Deprecated: Use ListenerFilterChainMatchPredicate.ProtoReflect.Descriptor instead.

func (*ListenerFilterChainMatchPredicate) GetAndMatch

func (*ListenerFilterChainMatchPredicate) GetAnyMatch

func (x *ListenerFilterChainMatchPredicate) GetAnyMatch() bool

func (*ListenerFilterChainMatchPredicate) GetDestinationPortRange

func (x *ListenerFilterChainMatchPredicate) GetDestinationPortRange() *_type.Int32Range

func (*ListenerFilterChainMatchPredicate) GetNotMatch

func (*ListenerFilterChainMatchPredicate) GetOrMatch

func (*ListenerFilterChainMatchPredicate) GetRule

func (m *ListenerFilterChainMatchPredicate) GetRule() isListenerFilterChainMatchPredicate_Rule

func (*ListenerFilterChainMatchPredicate) ProtoMessage

func (*ListenerFilterChainMatchPredicate) ProtoMessage()

func (*ListenerFilterChainMatchPredicate) ProtoReflect

func (*ListenerFilterChainMatchPredicate) Reset

func (*ListenerFilterChainMatchPredicate) String

func (*ListenerFilterChainMatchPredicate) Validate

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

func (m *ListenerFilterChainMatchPredicate) ValidateAll() error

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

type ListenerFilterChainMatchPredicateMultiError

type ListenerFilterChainMatchPredicateMultiError []error

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

func (ListenerFilterChainMatchPredicateMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListenerFilterChainMatchPredicateMultiError) Error

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

type ListenerFilterChainMatchPredicateValidationError

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

ListenerFilterChainMatchPredicateValidationError is the validation error returned by ListenerFilterChainMatchPredicate.Validate if the designated constraints aren't met.

func (ListenerFilterChainMatchPredicateValidationError) Cause

Cause function returns cause value.

func (ListenerFilterChainMatchPredicateValidationError) Error

Error satisfies the builtin error interface

func (ListenerFilterChainMatchPredicateValidationError) ErrorName

ErrorName returns error name.

func (ListenerFilterChainMatchPredicateValidationError) Field

Field function returns field value.

func (ListenerFilterChainMatchPredicateValidationError) Key

Key function returns key value.

func (ListenerFilterChainMatchPredicateValidationError) Reason

Reason function returns reason value.

type ListenerFilterChainMatchPredicate_AndMatch

type ListenerFilterChainMatchPredicate_AndMatch struct {
	// A set that describes a logical AND. If all members of the set match, the match configuration
	// matches.
	AndMatch *ListenerFilterChainMatchPredicate_MatchSet `protobuf:"bytes,2,opt,name=and_match,json=andMatch,proto3,oneof"`
}

type ListenerFilterChainMatchPredicate_AnyMatch

type ListenerFilterChainMatchPredicate_AnyMatch struct {
	// The match configuration will always match.
	AnyMatch bool `protobuf:"varint,4,opt,name=any_match,json=anyMatch,proto3,oneof"`
}

type ListenerFilterChainMatchPredicate_DestinationPortRange

type ListenerFilterChainMatchPredicate_DestinationPortRange struct {
	// Match destination port. Particularly, the match evaluation must use the recovered local port if
	// the owning listener filter is after :ref:`an original_dst listener filter <config_listener_filters_original_dst>`.
	DestinationPortRange *_type.Int32Range `protobuf:"bytes,5,opt,name=destination_port_range,json=destinationPortRange,proto3,oneof"`
}

type ListenerFilterChainMatchPredicate_MatchSet

type ListenerFilterChainMatchPredicate_MatchSet struct {

	// The list of rules that make up the set.
	Rules []*ListenerFilterChainMatchPredicate `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

A set of match configurations used for logical operations.

func (*ListenerFilterChainMatchPredicate_MatchSet) Descriptor deprecated

Deprecated: Use ListenerFilterChainMatchPredicate_MatchSet.ProtoReflect.Descriptor instead.

func (*ListenerFilterChainMatchPredicate_MatchSet) GetRules

func (*ListenerFilterChainMatchPredicate_MatchSet) ProtoMessage

func (*ListenerFilterChainMatchPredicate_MatchSet) ProtoReflect

func (*ListenerFilterChainMatchPredicate_MatchSet) Reset

func (*ListenerFilterChainMatchPredicate_MatchSet) String

func (*ListenerFilterChainMatchPredicate_MatchSet) Validate

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

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

type ListenerFilterChainMatchPredicate_MatchSetMultiError

type ListenerFilterChainMatchPredicate_MatchSetMultiError []error

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

func (ListenerFilterChainMatchPredicate_MatchSetMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListenerFilterChainMatchPredicate_MatchSetMultiError) Error

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

type ListenerFilterChainMatchPredicate_MatchSetValidationError

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

ListenerFilterChainMatchPredicate_MatchSetValidationError is the validation error returned by ListenerFilterChainMatchPredicate_MatchSet.Validate if the designated constraints aren't met.

func (ListenerFilterChainMatchPredicate_MatchSetValidationError) Cause

Cause function returns cause value.

func (ListenerFilterChainMatchPredicate_MatchSetValidationError) Error

Error satisfies the builtin error interface

func (ListenerFilterChainMatchPredicate_MatchSetValidationError) ErrorName

ErrorName returns error name.

func (ListenerFilterChainMatchPredicate_MatchSetValidationError) Field

Field function returns field value.

func (ListenerFilterChainMatchPredicate_MatchSetValidationError) Key

Key function returns key value.

func (ListenerFilterChainMatchPredicate_MatchSetValidationError) Reason

Reason function returns reason value.

type ListenerFilterChainMatchPredicate_NotMatch

type ListenerFilterChainMatchPredicate_NotMatch struct {
	// A negation match. The match configuration will match if the negated match condition matches.
	NotMatch *ListenerFilterChainMatchPredicate `protobuf:"bytes,3,opt,name=not_match,json=notMatch,proto3,oneof"`
}

type ListenerFilterChainMatchPredicate_OrMatch

type ListenerFilterChainMatchPredicate_OrMatch struct {
	// A set that describes a logical OR. If any member of the set matches, the match configuration
	// matches.
	OrMatch *ListenerFilterChainMatchPredicate_MatchSet `protobuf:"bytes,1,opt,name=or_match,json=orMatch,proto3,oneof"`
}

type ListenerFilterMultiError

type ListenerFilterMultiError []error

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

func (ListenerFilterMultiError) AllErrors

func (m ListenerFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListenerFilterMultiError) Error

func (m ListenerFilterMultiError) Error() string

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

type ListenerFilterValidationError

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

ListenerFilterValidationError is the validation error returned by ListenerFilter.Validate if the designated constraints aren't met.

func (ListenerFilterValidationError) Cause

Cause function returns cause value.

func (ListenerFilterValidationError) Error

Error satisfies the builtin error interface

func (ListenerFilterValidationError) ErrorName

func (e ListenerFilterValidationError) ErrorName() string

ErrorName returns error name.

func (ListenerFilterValidationError) Field

Field function returns field value.

func (ListenerFilterValidationError) Key

Key function returns key value.

func (ListenerFilterValidationError) Reason

Reason function returns reason value.

type ListenerFilter_Config

type ListenerFilter_Config struct {
	// Deprecated: Do not use.
	Config *_struct.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"`
}

type ListenerFilter_TypedConfig

type ListenerFilter_TypedConfig struct {
	TypedConfig *any1.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"`
}

type QuicProtocolOptions

type QuicProtocolOptions struct {

	// Maximum number of streams that the client can negotiate per connection. 100
	// if not specified.
	MaxConcurrentStreams *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=max_concurrent_streams,json=maxConcurrentStreams,proto3" json:"max_concurrent_streams,omitempty"`
	// Maximum number of milliseconds that connection will be alive when there is
	// no network activity. 300000ms if not specified.
	IdleTimeout *duration.Duration `protobuf:"bytes,2,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
	// Connection timeout in milliseconds before the crypto handshake is finished.
	// 20000ms if not specified.
	CryptoHandshakeTimeout *duration.Duration `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration specific to the QUIC protocol. Next id: 4

func (*QuicProtocolOptions) Descriptor deprecated

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

Deprecated: Use QuicProtocolOptions.ProtoReflect.Descriptor instead.

func (*QuicProtocolOptions) GetCryptoHandshakeTimeout

func (x *QuicProtocolOptions) GetCryptoHandshakeTimeout() *duration.Duration

func (*QuicProtocolOptions) GetIdleTimeout

func (x *QuicProtocolOptions) GetIdleTimeout() *duration.Duration

func (*QuicProtocolOptions) GetMaxConcurrentStreams

func (x *QuicProtocolOptions) GetMaxConcurrentStreams() *wrappers.UInt32Value

func (*QuicProtocolOptions) ProtoMessage

func (*QuicProtocolOptions) ProtoMessage()

func (*QuicProtocolOptions) ProtoReflect

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

func (*QuicProtocolOptions) Reset

func (x *QuicProtocolOptions) Reset()

func (*QuicProtocolOptions) String

func (x *QuicProtocolOptions) String() string

func (*QuicProtocolOptions) Validate

func (m *QuicProtocolOptions) Validate() error

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

func (m *QuicProtocolOptions) ValidateAll() error

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

type QuicProtocolOptionsMultiError

type QuicProtocolOptionsMultiError []error

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

func (QuicProtocolOptionsMultiError) AllErrors

func (m QuicProtocolOptionsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QuicProtocolOptionsMultiError) Error

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

type QuicProtocolOptionsValidationError

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

QuicProtocolOptionsValidationError is the validation error returned by QuicProtocolOptions.Validate if the designated constraints aren't met.

func (QuicProtocolOptionsValidationError) Cause

Cause function returns cause value.

func (QuicProtocolOptionsValidationError) Error

Error satisfies the builtin error interface

func (QuicProtocolOptionsValidationError) ErrorName

ErrorName returns error name.

func (QuicProtocolOptionsValidationError) Field

Field function returns field value.

func (QuicProtocolOptionsValidationError) Key

Key function returns key value.

func (QuicProtocolOptionsValidationError) Reason

Reason function returns reason value.

type UdpListenerConfig

type UdpListenerConfig struct {

	// Used to look up UDP listener factory, matches "raw_udp_listener" or
	// "quic_listener" to create a specific udp listener.
	// If not specified, treat as "raw_udp_listener".
	UdpListenerName string `protobuf:"bytes,1,opt,name=udp_listener_name,json=udpListenerName,proto3" json:"udp_listener_name,omitempty"`
	// Used to create a specific listener factory. To some factory, e.g.
	// "raw_udp_listener", config is not needed.
	//
	// Types that are assignable to ConfigType:
	//	*UdpListenerConfig_Config
	//	*UdpListenerConfig_TypedConfig
	ConfigType isUdpListenerConfig_ConfigType `protobuf_oneof:"config_type"`
	// contains filtered or unexported fields
}

func (*UdpListenerConfig) Descriptor deprecated

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

Deprecated: Use UdpListenerConfig.ProtoReflect.Descriptor instead.

func (*UdpListenerConfig) GetConfig deprecated

func (x *UdpListenerConfig) GetConfig() *_struct.Struct

Deprecated: Do not use.

func (*UdpListenerConfig) GetConfigType

func (m *UdpListenerConfig) GetConfigType() isUdpListenerConfig_ConfigType

func (*UdpListenerConfig) GetTypedConfig

func (x *UdpListenerConfig) GetTypedConfig() *any1.Any

func (*UdpListenerConfig) GetUdpListenerName

func (x *UdpListenerConfig) GetUdpListenerName() string

func (*UdpListenerConfig) ProtoMessage

func (*UdpListenerConfig) ProtoMessage()

func (*UdpListenerConfig) ProtoReflect

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

func (*UdpListenerConfig) Reset

func (x *UdpListenerConfig) Reset()

func (*UdpListenerConfig) String

func (x *UdpListenerConfig) String() string

func (*UdpListenerConfig) Validate

func (m *UdpListenerConfig) Validate() error

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

func (m *UdpListenerConfig) ValidateAll() error

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

type UdpListenerConfigMultiError

type UdpListenerConfigMultiError []error

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

func (UdpListenerConfigMultiError) AllErrors

func (m UdpListenerConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UdpListenerConfigMultiError) Error

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

type UdpListenerConfigValidationError

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

UdpListenerConfigValidationError is the validation error returned by UdpListenerConfig.Validate if the designated constraints aren't met.

func (UdpListenerConfigValidationError) Cause

Cause function returns cause value.

func (UdpListenerConfigValidationError) Error

Error satisfies the builtin error interface

func (UdpListenerConfigValidationError) ErrorName

ErrorName returns error name.

func (UdpListenerConfigValidationError) Field

Field function returns field value.

func (UdpListenerConfigValidationError) Key

Key function returns key value.

func (UdpListenerConfigValidationError) Reason

Reason function returns reason value.

type UdpListenerConfig_Config

type UdpListenerConfig_Config struct {
	// Deprecated: Do not use.
	Config *_struct.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"`
}

type UdpListenerConfig_TypedConfig

type UdpListenerConfig_TypedConfig struct {
	TypedConfig *any1.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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