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

package envoy_extensions_filters_listener_original_src_v3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/original_src/v3"

Index

Package Files

original_src.pb.go original_src.pb.validate.go

Variables

var File_envoy_extensions_filters_listener_original_src_v3_original_src_proto protoreflect.FileDescriptor

type OriginalSrc Uses

type OriginalSrc struct {

    // Whether to bind the port to the one used in the original downstream connection.
    // [#not-implemented-hide:]
    BindPort bool `protobuf:"varint,1,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
    // Sets the SO_MARK option on the upstream connection's socket to the provided value. Used to
    // ensure that non-local addresses may be routed back through envoy when binding to the original
    // source address. The option will not be applied if the mark is 0.
    Mark uint32 `protobuf:"varint,2,opt,name=mark,proto3" json:"mark,omitempty"`
    // contains filtered or unexported fields
}

The Original Src filter binds upstream connections to the original source address determined for the connection. This address could come from something like the Proxy Protocol filter, or it could come from trusted http headers.

func (*OriginalSrc) Descriptor Uses

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

Deprecated: Use OriginalSrc.ProtoReflect.Descriptor instead.

func (*OriginalSrc) GetBindPort Uses

func (x *OriginalSrc) GetBindPort() bool

func (*OriginalSrc) GetMark Uses

func (x *OriginalSrc) GetMark() uint32

func (*OriginalSrc) ProtoMessage Uses

func (*OriginalSrc) ProtoMessage()

func (*OriginalSrc) ProtoReflect Uses

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

func (*OriginalSrc) Reset Uses

func (x *OriginalSrc) Reset()

func (*OriginalSrc) String Uses

func (x *OriginalSrc) String() string

func (*OriginalSrc) Validate Uses

func (m *OriginalSrc) Validate() error

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

type OriginalSrcValidationError Uses

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

OriginalSrcValidationError is the validation error returned by OriginalSrc.Validate if the designated constraints aren't met.

func (OriginalSrcValidationError) Cause Uses

func (e OriginalSrcValidationError) Cause() error

Cause function returns cause value.

func (OriginalSrcValidationError) Error Uses

func (e OriginalSrcValidationError) Error() string

Error satisfies the builtin error interface

func (OriginalSrcValidationError) ErrorName Uses

func (e OriginalSrcValidationError) ErrorName() string

ErrorName returns error name.

func (OriginalSrcValidationError) Field Uses

func (e OriginalSrcValidationError) Field() string

Field function returns field value.

func (OriginalSrcValidationError) Key Uses

func (e OriginalSrcValidationError) Key() bool

Key function returns key value.

func (OriginalSrcValidationError) Reason Uses

func (e OriginalSrcValidationError) Reason() string

Reason function returns reason value.

Package envoy_extensions_filters_listener_original_src_v3 imports 18 packages (graph) and is imported by 8 packages. Updated 2021-01-09. Refresh now. Tools for package owners.