proxy_protocol

package
v1.11.11 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_external_envoy_extensions_proxyprotocol_proxyprotocol_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CustomProxyProtocol

type CustomProxyProtocol struct {

	// The list of rules to apply to requests.
	Rules []*CustomProxyProtocol_Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// Allow requests through that don't use proxy protocol. Defaults to false.
	//
	// .. attention::
	//
	//   This breaks conformance with the specification.
	//   Only enable if ALL traffic to the listener comes from a trusted source.
	//   For more information on the security implications of this feature, see
	//   https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt
	//
	AllowRequestsWithoutProxyProtocol bool `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CustomProxyProtocol) Descriptor deprecated

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

Deprecated: Use CustomProxyProtocol.ProtoReflect.Descriptor instead.

func (*CustomProxyProtocol) GetAllowRequestsWithoutProxyProtocol

func (x *CustomProxyProtocol) GetAllowRequestsWithoutProxyProtocol() bool

func (*CustomProxyProtocol) GetRules

func (*CustomProxyProtocol) ProtoMessage

func (*CustomProxyProtocol) ProtoMessage()

func (*CustomProxyProtocol) ProtoReflect

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

func (*CustomProxyProtocol) Reset

func (x *CustomProxyProtocol) Reset()

func (*CustomProxyProtocol) String

func (x *CustomProxyProtocol) String() string

type CustomProxyProtocol_KeyValuePair

type CustomProxyProtocol_KeyValuePair struct {

	// The namespace — if this is empty, the filter's namespace will be used.
	MetadataNamespace string `protobuf:"bytes,1,opt,name=metadata_namespace,json=metadataNamespace,proto3" json:"metadata_namespace,omitempty"`
	// The key to use within the namespace.
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*CustomProxyProtocol_KeyValuePair) Descriptor deprecated

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

Deprecated: Use CustomProxyProtocol_KeyValuePair.ProtoReflect.Descriptor instead.

func (*CustomProxyProtocol_KeyValuePair) GetKey

func (*CustomProxyProtocol_KeyValuePair) GetMetadataNamespace

func (x *CustomProxyProtocol_KeyValuePair) GetMetadataNamespace() string

func (*CustomProxyProtocol_KeyValuePair) ProtoMessage

func (*CustomProxyProtocol_KeyValuePair) ProtoMessage()

func (*CustomProxyProtocol_KeyValuePair) ProtoReflect

func (*CustomProxyProtocol_KeyValuePair) Reset

func (*CustomProxyProtocol_KeyValuePair) String

type CustomProxyProtocol_Rule

type CustomProxyProtocol_Rule struct {

	// The type that triggers the rule - required
	// TLV type is defined as uint8_t in proxy protocol. See `the spec
	// <https://www.haproxy.org/download/2.1/doc/proxy-protocol.txt>`_ for details.
	TlvType uint32 `protobuf:"varint,1,opt,name=tlv_type,json=tlvType,proto3" json:"tlv_type,omitempty"`
	// If the TLV type is present, apply this metadata KeyValuePair.
	OnTlvPresent *CustomProxyProtocol_KeyValuePair `protobuf:"bytes,2,opt,name=on_tlv_present,json=onTlvPresent,proto3" json:"on_tlv_present,omitempty"`
	// contains filtered or unexported fields
}

A Rule defines what metadata to apply when a header is present or missing.

func (*CustomProxyProtocol_Rule) Descriptor deprecated

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

Deprecated: Use CustomProxyProtocol_Rule.ProtoReflect.Descriptor instead.

func (*CustomProxyProtocol_Rule) GetOnTlvPresent

func (*CustomProxyProtocol_Rule) GetTlvType

func (x *CustomProxyProtocol_Rule) GetTlvType() uint32

func (*CustomProxyProtocol_Rule) ProtoMessage

func (*CustomProxyProtocol_Rule) ProtoMessage()

func (*CustomProxyProtocol_Rule) ProtoReflect

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

func (*CustomProxyProtocol_Rule) Reset

func (x *CustomProxyProtocol_Rule) Reset()

func (*CustomProxyProtocol_Rule) String

func (x *CustomProxyProtocol_Rule) String() string

Jump to

Keyboard shortcuts

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