proxy_protocol

package
v1.10.47 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_proxy_protocol_proxy_protocol_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ProxyProtocol

type ProxyProtocol struct {

	// The list of rules to apply to requests.
	Rules []*ProxyProtocol_Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// Allow requests through that don't use proxy protocol. Defaults to false.
	//
	// .. attention::
	//
	//   The true setting is only honored in Gloo Edge Enterprise.
	//   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 (*ProxyProtocol) Clone added in v1.8.24

func (m *ProxyProtocol) Clone() proto.Message

Clone function

func (*ProxyProtocol) Descriptor deprecated

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

Deprecated: Use ProxyProtocol.ProtoReflect.Descriptor instead.

func (*ProxyProtocol) Equal

func (m *ProxyProtocol) Equal(that interface{}) bool

Equal function

func (*ProxyProtocol) GetAllowRequestsWithoutProxyProtocol

func (x *ProxyProtocol) GetAllowRequestsWithoutProxyProtocol() bool

func (*ProxyProtocol) GetRules

func (x *ProxyProtocol) GetRules() []*ProxyProtocol_Rule

func (*ProxyProtocol) Hash

func (m *ProxyProtocol) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*ProxyProtocol) ProtoMessage

func (*ProxyProtocol) ProtoMessage()

func (*ProxyProtocol) ProtoReflect

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

func (*ProxyProtocol) Reset

func (x *ProxyProtocol) Reset()

func (*ProxyProtocol) String

func (x *ProxyProtocol) String() string

type ProxyProtocol_KeyValuePair

type ProxyProtocol_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 (*ProxyProtocol_KeyValuePair) Clone added in v1.8.24

Clone function

func (*ProxyProtocol_KeyValuePair) Descriptor deprecated

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

Deprecated: Use ProxyProtocol_KeyValuePair.ProtoReflect.Descriptor instead.

func (*ProxyProtocol_KeyValuePair) Equal

func (m *ProxyProtocol_KeyValuePair) Equal(that interface{}) bool

Equal function

func (*ProxyProtocol_KeyValuePair) GetKey

func (x *ProxyProtocol_KeyValuePair) GetKey() string

func (*ProxyProtocol_KeyValuePair) GetMetadataNamespace

func (x *ProxyProtocol_KeyValuePair) GetMetadataNamespace() string

func (*ProxyProtocol_KeyValuePair) Hash

func (m *ProxyProtocol_KeyValuePair) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*ProxyProtocol_KeyValuePair) ProtoMessage

func (*ProxyProtocol_KeyValuePair) ProtoMessage()

func (*ProxyProtocol_KeyValuePair) ProtoReflect

func (*ProxyProtocol_KeyValuePair) Reset

func (x *ProxyProtocol_KeyValuePair) Reset()

func (*ProxyProtocol_KeyValuePair) String

func (x *ProxyProtocol_KeyValuePair) String() string

type ProxyProtocol_Rule

type ProxyProtocol_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 *ProxyProtocol_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 (*ProxyProtocol_Rule) Clone added in v1.8.24

func (m *ProxyProtocol_Rule) Clone() proto.Message

Clone function

func (*ProxyProtocol_Rule) Descriptor deprecated

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

Deprecated: Use ProxyProtocol_Rule.ProtoReflect.Descriptor instead.

func (*ProxyProtocol_Rule) Equal

func (m *ProxyProtocol_Rule) Equal(that interface{}) bool

Equal function

func (*ProxyProtocol_Rule) GetOnTlvPresent

func (x *ProxyProtocol_Rule) GetOnTlvPresent() *ProxyProtocol_KeyValuePair

func (*ProxyProtocol_Rule) GetTlvType

func (x *ProxyProtocol_Rule) GetTlvType() uint32

func (*ProxyProtocol_Rule) Hash

func (m *ProxyProtocol_Rule) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*ProxyProtocol_Rule) ProtoMessage

func (*ProxyProtocol_Rule) ProtoMessage()

func (*ProxyProtocol_Rule) ProtoReflect

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

func (*ProxyProtocol_Rule) Reset

func (x *ProxyProtocol_Rule) Reset()

func (*ProxyProtocol_Rule) String

func (x *ProxyProtocol_Rule) String() string

Jump to

Keyboard shortcuts

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