v2alpha1

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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"`
	// 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.
	// [#proto-status: experimental]
	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) MarshalTo

func (m *OriginalSrc) MarshalTo(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

Cause function returns cause value.

func (OriginalSrcValidationError) Error

Error satisfies the builtin error interface

func (OriginalSrcValidationError) ErrorName added in v0.7.0

func (e OriginalSrcValidationError) ErrorName() string

ErrorName returns error name.

func (OriginalSrcValidationError) Field

Field function returns field value.

func (OriginalSrcValidationError) Key

Key function returns key value.

func (OriginalSrcValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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