Documentation ¶
Index ¶
- Variables
- type OriginalSrc
- func (*OriginalSrc) Descriptor() ([]byte, []int)
- func (m *OriginalSrc) GetBindPort() bool
- func (m *OriginalSrc) GetMark() uint32
- func (m *OriginalSrc) Marshal() (dAtA []byte, err error)
- func (m *OriginalSrc) MarshalTo(dAtA []byte) (int, error)
- func (*OriginalSrc) ProtoMessage()
- func (m *OriginalSrc) Reset()
- func (m *OriginalSrc) Size() (n int)
- func (m *OriginalSrc) String() string
- func (m *OriginalSrc) Unmarshal(dAtA []byte) error
- func (m *OriginalSrc) Validate() error
- func (m *OriginalSrc) XXX_DiscardUnknown()
- func (m *OriginalSrc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *OriginalSrc) XXX_Merge(src proto.Message)
- func (m *OriginalSrc) XXX_Size() int
- func (m *OriginalSrc) XXX_Unmarshal(b []byte) error
- type OriginalSrcValidationError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthOriginalSrc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOriginalSrc = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type OriginalSrc ¶
type OriginalSrc struct { // Whether to bind the port to the one used in the original downstream connection. // [#not-implemented-warn:] BindPort bool `protobuf:"varint,1,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"` // set the SO_MARK option on the upstream connection's socket. Used to ensure that non-local // addresses may be routed back through envoy when binding to the original source address. // [#not-implemented-warn:] Mark uint32 `protobuf:"varint,2,opt,name=mark,proto3" json:"mark,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*OriginalSrc) Descriptor() ([]byte, []int)
func (*OriginalSrc) GetBindPort ¶
func (m *OriginalSrc) GetBindPort() bool
func (*OriginalSrc) GetMark ¶
func (m *OriginalSrc) GetMark() uint32
func (*OriginalSrc) Marshal ¶
func (m *OriginalSrc) Marshal() (dAtA []byte, err error)
func (*OriginalSrc) ProtoMessage ¶
func (*OriginalSrc) ProtoMessage()
func (*OriginalSrc) Reset ¶
func (m *OriginalSrc) Reset()
func (*OriginalSrc) Size ¶
func (m *OriginalSrc) Size() (n int)
func (*OriginalSrc) String ¶
func (m *OriginalSrc) String() string
func (*OriginalSrc) Unmarshal ¶
func (m *OriginalSrc) Unmarshal(dAtA []byte) error
func (*OriginalSrc) Validate ¶
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.
func (*OriginalSrc) XXX_DiscardUnknown ¶
func (m *OriginalSrc) XXX_DiscardUnknown()
func (*OriginalSrc) XXX_Marshal ¶
func (m *OriginalSrc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OriginalSrc) XXX_Merge ¶
func (dst *OriginalSrc) XXX_Merge(src proto.Message)
func (*OriginalSrc) XXX_Size ¶
func (m *OriginalSrc) XXX_Size() int
func (*OriginalSrc) XXX_Unmarshal ¶
func (m *OriginalSrc) XXX_Unmarshal(b []byte) error
type OriginalSrcValidationError ¶
OriginalSrcValidationError is the validation error returned by OriginalSrc.Validate if the designated constraints aren't met.
func (OriginalSrcValidationError) Error ¶
func (e OriginalSrcValidationError) Error() string
Error satisfies the builtin error interface
Click to show internal directories.
Click to hide internal directories.