go-control-plane: github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/proxy_protocol/v3 Index | Files

package envoy_extensions_filters_listener_proxy_protocol_v3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/listener/proxy_protocol/v3"

Index

Package Files

proxy_protocol.pb.go proxy_protocol.pb.validate.go

Variables

var File_envoy_extensions_filters_listener_proxy_protocol_v3_proxy_protocol_proto protoreflect.FileDescriptor

type ProxyProtocol Uses

type ProxyProtocol struct {

    // The list of rules to apply to requests.
    Rules []*ProxyProtocol_Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
    // contains filtered or unexported fields
}

func (*ProxyProtocol) Descriptor Uses

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

Deprecated: Use ProxyProtocol.ProtoReflect.Descriptor instead.

func (*ProxyProtocol) GetRules Uses

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

func (*ProxyProtocol) ProtoMessage Uses

func (*ProxyProtocol) ProtoMessage()

func (*ProxyProtocol) ProtoReflect Uses

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

func (*ProxyProtocol) Reset Uses

func (x *ProxyProtocol) Reset()

func (*ProxyProtocol) String Uses

func (x *ProxyProtocol) String() string

func (*ProxyProtocol) Validate Uses

func (m *ProxyProtocol) Validate() error

Validate checks the field values on ProxyProtocol with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ProxyProtocolValidationError Uses

type ProxyProtocolValidationError struct {
    // contains filtered or unexported fields
}

ProxyProtocolValidationError is the validation error returned by ProxyProtocol.Validate if the designated constraints aren't met.

func (ProxyProtocolValidationError) Cause Uses

func (e ProxyProtocolValidationError) Cause() error

Cause function returns cause value.

func (ProxyProtocolValidationError) Error Uses

func (e ProxyProtocolValidationError) Error() string

Error satisfies the builtin error interface

func (ProxyProtocolValidationError) ErrorName Uses

func (e ProxyProtocolValidationError) ErrorName() string

ErrorName returns error name.

func (ProxyProtocolValidationError) Field Uses

func (e ProxyProtocolValidationError) Field() string

Field function returns field value.

func (ProxyProtocolValidationError) Key Uses

func (e ProxyProtocolValidationError) Key() bool

Key function returns key value.

func (ProxyProtocolValidationError) Reason Uses

func (e ProxyProtocolValidationError) Reason() string

Reason function returns reason value.

type ProxyProtocol_KeyValuePair Uses

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) Descriptor Uses

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

Deprecated: Use ProxyProtocol_KeyValuePair.ProtoReflect.Descriptor instead.

func (*ProxyProtocol_KeyValuePair) GetKey Uses

func (x *ProxyProtocol_KeyValuePair) GetKey() string

func (*ProxyProtocol_KeyValuePair) GetMetadataNamespace Uses

func (x *ProxyProtocol_KeyValuePair) GetMetadataNamespace() string

func (*ProxyProtocol_KeyValuePair) ProtoMessage Uses

func (*ProxyProtocol_KeyValuePair) ProtoMessage()

func (*ProxyProtocol_KeyValuePair) ProtoReflect Uses

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

func (*ProxyProtocol_KeyValuePair) Reset Uses

func (x *ProxyProtocol_KeyValuePair) Reset()

func (*ProxyProtocol_KeyValuePair) String Uses

func (x *ProxyProtocol_KeyValuePair) String() string

func (*ProxyProtocol_KeyValuePair) Validate Uses

func (m *ProxyProtocol_KeyValuePair) Validate() error

Validate checks the field values on ProxyProtocol_KeyValuePair with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ProxyProtocol_KeyValuePairValidationError Uses

type ProxyProtocol_KeyValuePairValidationError struct {
    // contains filtered or unexported fields
}

ProxyProtocol_KeyValuePairValidationError is the validation error returned by ProxyProtocol_KeyValuePair.Validate if the designated constraints aren't met.

func (ProxyProtocol_KeyValuePairValidationError) Cause Uses

func (e ProxyProtocol_KeyValuePairValidationError) Cause() error

Cause function returns cause value.

func (ProxyProtocol_KeyValuePairValidationError) Error Uses

func (e ProxyProtocol_KeyValuePairValidationError) Error() string

Error satisfies the builtin error interface

func (ProxyProtocol_KeyValuePairValidationError) ErrorName Uses

func (e ProxyProtocol_KeyValuePairValidationError) ErrorName() string

ErrorName returns error name.

func (ProxyProtocol_KeyValuePairValidationError) Field Uses

func (e ProxyProtocol_KeyValuePairValidationError) Field() string

Field function returns field value.

func (ProxyProtocol_KeyValuePairValidationError) Key Uses

func (e ProxyProtocol_KeyValuePairValidationError) Key() bool

Key function returns key value.

func (ProxyProtocol_KeyValuePairValidationError) Reason Uses

func (e ProxyProtocol_KeyValuePairValidationError) Reason() string

Reason function returns reason value.

type ProxyProtocol_Rule Uses

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) Descriptor Uses

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

Deprecated: Use ProxyProtocol_Rule.ProtoReflect.Descriptor instead.

func (*ProxyProtocol_Rule) GetOnTlvPresent Uses

func (x *ProxyProtocol_Rule) GetOnTlvPresent() *ProxyProtocol_KeyValuePair

func (*ProxyProtocol_Rule) GetTlvType Uses

func (x *ProxyProtocol_Rule) GetTlvType() uint32

func (*ProxyProtocol_Rule) ProtoMessage Uses

func (*ProxyProtocol_Rule) ProtoMessage()

func (*ProxyProtocol_Rule) ProtoReflect Uses

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

func (*ProxyProtocol_Rule) Reset Uses

func (x *ProxyProtocol_Rule) Reset()

func (*ProxyProtocol_Rule) String Uses

func (x *ProxyProtocol_Rule) String() string

func (*ProxyProtocol_Rule) Validate Uses

func (m *ProxyProtocol_Rule) Validate() error

Validate checks the field values on ProxyProtocol_Rule with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ProxyProtocol_RuleValidationError Uses

type ProxyProtocol_RuleValidationError struct {
    // contains filtered or unexported fields
}

ProxyProtocol_RuleValidationError is the validation error returned by ProxyProtocol_Rule.Validate if the designated constraints aren't met.

func (ProxyProtocol_RuleValidationError) Cause Uses

func (e ProxyProtocol_RuleValidationError) Cause() error

Cause function returns cause value.

func (ProxyProtocol_RuleValidationError) Error Uses

func (e ProxyProtocol_RuleValidationError) Error() string

Error satisfies the builtin error interface

func (ProxyProtocol_RuleValidationError) ErrorName Uses

func (e ProxyProtocol_RuleValidationError) ErrorName() string

ErrorName returns error name.

func (ProxyProtocol_RuleValidationError) Field Uses

func (e ProxyProtocol_RuleValidationError) Field() string

Field function returns field value.

func (ProxyProtocol_RuleValidationError) Key Uses

func (e ProxyProtocol_RuleValidationError) Key() bool

Key function returns key value.

func (ProxyProtocol_RuleValidationError) Reason Uses

func (e ProxyProtocol_RuleValidationError) Reason() string

Reason function returns reason value.

Package envoy_extensions_filters_listener_proxy_protocol_v3 imports 18 packages (graph) and is imported by 6 packages. Updated 2021-01-08. Refresh now. Tools for package owners.