original_srcv3

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 17 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_filters_http_original_src_v3_original_src_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OriginalSrc

type OriginalSrc struct {

	// 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,1,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 request. This address could come from something like the Proxy Protocol filter, or it could come from trusted http headers. [#extension: envoy.filters.http.original_src]

func (*OriginalSrc) Descriptor deprecated

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

Deprecated: Use OriginalSrc.ProtoReflect.Descriptor instead.

func (*OriginalSrc) GetMark

func (x *OriginalSrc) GetMark() uint32

func (*OriginalSrc) ProtoMessage

func (*OriginalSrc) ProtoMessage()

func (*OriginalSrc) ProtoReflect added in v0.9.6

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

func (*OriginalSrc) Reset

func (x *OriginalSrc) Reset()

func (*OriginalSrc) String

func (x *OriginalSrc) String() string

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, the first error encountered is returned, or nil if there are no violations.

func (*OriginalSrc) ValidateAll added in v0.10.0

func (m *OriginalSrc) ValidateAll() error

ValidateAll checks the field values on OriginalSrc with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OriginalSrcMultiError, or nil if none found.

type OriginalSrcMultiError added in v0.10.0

type OriginalSrcMultiError []error

OriginalSrcMultiError is an error wrapping multiple validation errors returned by OriginalSrc.ValidateAll() if the designated constraints aren't met.

func (OriginalSrcMultiError) AllErrors added in v0.10.0

func (m OriginalSrcMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OriginalSrcMultiError) Error added in v0.10.0

func (m OriginalSrcMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

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

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