go-control-plane: github.com/envoyproxy/go-control-plane/envoy/extensions/filters/udp/udp_proxy/v3 Index | Files

package envoy_extensions_filters_udp_udp_proxy_v3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/udp/udp_proxy/v3"

Index

Package Files

udp_proxy.pb.go udp_proxy.pb.validate.go

Variables

var File_envoy_extensions_filters_udp_udp_proxy_v3_udp_proxy_proto protoreflect.FileDescriptor

type UdpProxyConfig Uses

type UdpProxyConfig struct {

    // The stat prefix used when emitting UDP proxy filter stats.
    StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
    // Types that are assignable to RouteSpecifier:
    //	*UdpProxyConfig_Cluster
    RouteSpecifier isUdpProxyConfig_RouteSpecifier `protobuf_oneof:"route_specifier"`
    // The idle timeout for sessions. Idle is defined as no datagrams between received or sent by
    // the session. The default if not specified is 1 minute.
    IdleTimeout *duration.Duration `protobuf:"bytes,3,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
    // Use the remote downstream IP address as the sender IP address when sending packets to upstream hosts.
    // This option requires Envoy to be run with the *CAP_NET_ADMIN* capability on Linux.
    // And the IPv6 stack must be enabled on Linux kernel.
    // This option does not preserve the remote downstream port.
    // If this option is enabled, the IP address of sent datagrams will be changed to the remote downstream IP address.
    // This means that Envoy will not receive packets that are sent by upstream hosts because the upstream hosts
    // will send the packets with the remote downstream IP address as the destination. All packets will be routed
    // to the remote downstream directly if there are route rules on the upstream host side.
    // There are two options to return the packets back to the remote downstream.
    // The first one is to use DSR (Direct Server Return).
    // The other one is to configure routing rules on the upstream hosts to forward
    // all packets back to Envoy and configure iptables rules on the host running Envoy to
    // forward all packets from upstream hosts to the Envoy process so that Envoy can forward the packets to the downstream.
    // If the platform does not support this option, Envoy will raise a configuration error.
    UseOriginalSrcIp bool `protobuf:"varint,4,opt,name=use_original_src_ip,json=useOriginalSrcIp,proto3" json:"use_original_src_ip,omitempty"`
    // Optional configuration for UDP proxy hash policies. If hash_policies is not set, the hash-based
    // load balancing algorithms will select a host randomly. Currently the number of hash policies is
    // limited to 1.
    HashPolicies []*UdpProxyConfig_HashPolicy `protobuf:"bytes,5,rep,name=hash_policies,json=hashPolicies,proto3" json:"hash_policies,omitempty"`
    // contains filtered or unexported fields
}

Configuration for the UDP proxy filter. [#next-free-field: 6]

func (*UdpProxyConfig) Descriptor Uses

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

Deprecated: Use UdpProxyConfig.ProtoReflect.Descriptor instead.

func (*UdpProxyConfig) GetCluster Uses

func (x *UdpProxyConfig) GetCluster() string

func (*UdpProxyConfig) GetHashPolicies Uses

func (x *UdpProxyConfig) GetHashPolicies() []*UdpProxyConfig_HashPolicy

func (*UdpProxyConfig) GetIdleTimeout Uses

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

func (*UdpProxyConfig) GetRouteSpecifier Uses

func (m *UdpProxyConfig) GetRouteSpecifier() isUdpProxyConfig_RouteSpecifier

func (*UdpProxyConfig) GetStatPrefix Uses

func (x *UdpProxyConfig) GetStatPrefix() string

func (*UdpProxyConfig) GetUseOriginalSrcIp Uses

func (x *UdpProxyConfig) GetUseOriginalSrcIp() bool

func (*UdpProxyConfig) ProtoMessage Uses

func (*UdpProxyConfig) ProtoMessage()

func (*UdpProxyConfig) ProtoReflect Uses

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

func (*UdpProxyConfig) Reset Uses

func (x *UdpProxyConfig) Reset()

func (*UdpProxyConfig) String Uses

func (x *UdpProxyConfig) String() string

func (*UdpProxyConfig) Validate Uses

func (m *UdpProxyConfig) Validate() error

Validate checks the field values on UdpProxyConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UdpProxyConfigValidationError Uses

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

UdpProxyConfigValidationError is the validation error returned by UdpProxyConfig.Validate if the designated constraints aren't met.

func (UdpProxyConfigValidationError) Cause Uses

func (e UdpProxyConfigValidationError) Cause() error

Cause function returns cause value.

func (UdpProxyConfigValidationError) Error Uses

func (e UdpProxyConfigValidationError) Error() string

Error satisfies the builtin error interface

func (UdpProxyConfigValidationError) ErrorName Uses

func (e UdpProxyConfigValidationError) ErrorName() string

ErrorName returns error name.

func (UdpProxyConfigValidationError) Field Uses

func (e UdpProxyConfigValidationError) Field() string

Field function returns field value.

func (UdpProxyConfigValidationError) Key Uses

func (e UdpProxyConfigValidationError) Key() bool

Key function returns key value.

func (UdpProxyConfigValidationError) Reason Uses

func (e UdpProxyConfigValidationError) Reason() string

Reason function returns reason value.

type UdpProxyConfig_Cluster Uses

type UdpProxyConfig_Cluster struct {
    // The upstream cluster to connect to.
    Cluster string `protobuf:"bytes,2,opt,name=cluster,proto3,oneof"`
}

type UdpProxyConfig_HashPolicy Uses

type UdpProxyConfig_HashPolicy struct {

    // Types that are assignable to PolicySpecifier:
    //	*UdpProxyConfig_HashPolicy_SourceIp
    PolicySpecifier isUdpProxyConfig_HashPolicy_PolicySpecifier `protobuf_oneof:"policy_specifier"`
    // contains filtered or unexported fields
}

Specifies the UDP hash policy. The packets can be routed by hash policy.

func (*UdpProxyConfig_HashPolicy) Descriptor Uses

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

Deprecated: Use UdpProxyConfig_HashPolicy.ProtoReflect.Descriptor instead.

func (*UdpProxyConfig_HashPolicy) GetPolicySpecifier Uses

func (m *UdpProxyConfig_HashPolicy) GetPolicySpecifier() isUdpProxyConfig_HashPolicy_PolicySpecifier

func (*UdpProxyConfig_HashPolicy) GetSourceIp Uses

func (x *UdpProxyConfig_HashPolicy) GetSourceIp() bool

func (*UdpProxyConfig_HashPolicy) ProtoMessage Uses

func (*UdpProxyConfig_HashPolicy) ProtoMessage()

func (*UdpProxyConfig_HashPolicy) ProtoReflect Uses

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

func (*UdpProxyConfig_HashPolicy) Reset Uses

func (x *UdpProxyConfig_HashPolicy) Reset()

func (*UdpProxyConfig_HashPolicy) String Uses

func (x *UdpProxyConfig_HashPolicy) String() string

func (*UdpProxyConfig_HashPolicy) Validate Uses

func (m *UdpProxyConfig_HashPolicy) Validate() error

Validate checks the field values on UdpProxyConfig_HashPolicy with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type UdpProxyConfig_HashPolicyValidationError Uses

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

UdpProxyConfig_HashPolicyValidationError is the validation error returned by UdpProxyConfig_HashPolicy.Validate if the designated constraints aren't met.

func (UdpProxyConfig_HashPolicyValidationError) Cause Uses

func (e UdpProxyConfig_HashPolicyValidationError) Cause() error

Cause function returns cause value.

func (UdpProxyConfig_HashPolicyValidationError) Error Uses

func (e UdpProxyConfig_HashPolicyValidationError) Error() string

Error satisfies the builtin error interface

func (UdpProxyConfig_HashPolicyValidationError) ErrorName Uses

func (e UdpProxyConfig_HashPolicyValidationError) ErrorName() string

ErrorName returns error name.

func (UdpProxyConfig_HashPolicyValidationError) Field Uses

func (e UdpProxyConfig_HashPolicyValidationError) Field() string

Field function returns field value.

func (UdpProxyConfig_HashPolicyValidationError) Key Uses

func (e UdpProxyConfig_HashPolicyValidationError) Key() bool

Key function returns key value.

func (UdpProxyConfig_HashPolicyValidationError) Reason Uses

func (e UdpProxyConfig_HashPolicyValidationError) Reason() string

Reason function returns reason value.

type UdpProxyConfig_HashPolicy_SourceIp Uses

type UdpProxyConfig_HashPolicy_SourceIp struct {
    // The source IP will be used to compute the hash used by hash-based load balancing algorithms.
    SourceIp bool `protobuf:"varint,1,opt,name=source_ip,json=sourceIp,proto3,oneof"`
}

Package envoy_extensions_filters_udp_udp_proxy_v3 imports 19 packages (graph) and is imported by 6 packages. Updated 2021-01-08. Refresh now. Tools for package owners.