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 (m *OriginalSrc) MarshalToSizedBuffer(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 (m *OriginalSrc) XXX_Merge(src proto.Message)
- func (m *OriginalSrc) XXX_Size() int
- func (m *OriginalSrc) XXX_Unmarshal(b []byte) error
- type OriginalSrcValidationError
- func (e OriginalSrcValidationError) Cause() error
- func (e OriginalSrcValidationError) Error() string
- func (e OriginalSrcValidationError) ErrorName() string
- func (e OriginalSrcValidationError) Field() string
- func (e OriginalSrcValidationError) Key() bool
- func (e OriginalSrcValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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-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"` 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) MarshalToSizedBuffer ¶
func (m *OriginalSrc) MarshalToSizedBuffer(dAtA []byte) (int, 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 (m *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 ¶
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 ¶
func (e OriginalSrcValidationError) Cause() error
Cause function returns cause value.
func (OriginalSrcValidationError) Error ¶
func (e OriginalSrcValidationError) Error() string
Error satisfies the builtin error interface
func (OriginalSrcValidationError) ErrorName ¶
func (e OriginalSrcValidationError) ErrorName() string
ErrorName returns error name.
func (OriginalSrcValidationError) Field ¶
func (e OriginalSrcValidationError) Field() string
Field function returns field value.
func (OriginalSrcValidationError) Key ¶
func (e OriginalSrcValidationError) Key() bool
Key function returns key value.
func (OriginalSrcValidationError) Reason ¶
func (e OriginalSrcValidationError) Reason() string
Reason function returns reason value.