Documentation
¶
Index ¶
- Variables
- type IPTagging
- func (*IPTagging) Descriptor() ([]byte, []int)deprecated
- func (x *IPTagging) GetIpTags() []*IPTagging_IPTag
- func (x *IPTagging) GetRequestType() IPTagging_RequestType
- func (*IPTagging) ProtoMessage()
- func (x *IPTagging) ProtoReflect() protoreflect.Message
- func (x *IPTagging) Reset()
- func (x *IPTagging) String() string
- func (m *IPTagging) Validate() error
- func (m *IPTagging) ValidateAll() error
- type IPTaggingMultiError
- type IPTaggingValidationError
- type IPTagging_IPTag
- func (*IPTagging_IPTag) Descriptor() ([]byte, []int)deprecated
- func (x *IPTagging_IPTag) GetIpList() []*v3.CidrRange
- func (x *IPTagging_IPTag) GetIpTagName() string
- func (*IPTagging_IPTag) ProtoMessage()
- func (x *IPTagging_IPTag) ProtoReflect() protoreflect.Message
- func (x *IPTagging_IPTag) Reset()
- func (x *IPTagging_IPTag) String() string
- func (m *IPTagging_IPTag) Validate() error
- func (m *IPTagging_IPTag) ValidateAll() error
- type IPTagging_IPTagMultiError
- type IPTagging_IPTagValidationError
- func (e IPTagging_IPTagValidationError) Cause() error
- func (e IPTagging_IPTagValidationError) Error() string
- func (e IPTagging_IPTagValidationError) ErrorName() string
- func (e IPTagging_IPTagValidationError) Field() string
- func (e IPTagging_IPTagValidationError) Key() bool
- func (e IPTagging_IPTagValidationError) Reason() string
- type IPTagging_RequestType
- func (IPTagging_RequestType) Descriptor() protoreflect.EnumDescriptor
- func (x IPTagging_RequestType) Enum() *IPTagging_RequestType
- func (IPTagging_RequestType) EnumDescriptor() ([]byte, []int)deprecated
- func (x IPTagging_RequestType) Number() protoreflect.EnumNumber
- func (x IPTagging_RequestType) String() string
- func (IPTagging_RequestType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( IPTagging_RequestType_name = map[int32]string{ 0: "BOTH", 1: "INTERNAL", 2: "EXTERNAL", } IPTagging_RequestType_value = map[string]int32{ "BOTH": 0, "INTERNAL": 1, "EXTERNAL": 2, } )
Enum value maps for IPTagging_RequestType.
var File_envoy_extensions_filters_http_ip_tagging_v3_ip_tagging_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type IPTagging ¶
type IPTagging struct { // The type of request the filter should apply to. RequestType IPTagging_RequestType `` /* 166-byte string literal not displayed */ // [#comment:TODO(ccaraman): Extend functionality to load IP tags from file system. // Tracked by issue https://github.com/envoyproxy/envoy/issues/2695] // The set of IP tags for the filter. IpTags []*IPTagging_IPTag `protobuf:"bytes,4,rep,name=ip_tags,json=ipTags,proto3" json:"ip_tags,omitempty"` // contains filtered or unexported fields }
func (*IPTagging) Descriptor
deprecated
func (*IPTagging) GetIpTags ¶
func (x *IPTagging) GetIpTags() []*IPTagging_IPTag
func (*IPTagging) GetRequestType ¶
func (x *IPTagging) GetRequestType() IPTagging_RequestType
func (*IPTagging) ProtoMessage ¶
func (*IPTagging) ProtoMessage()
func (*IPTagging) ProtoReflect ¶ added in v0.9.6
func (x *IPTagging) ProtoReflect() protoreflect.Message
func (*IPTagging) Validate ¶
Validate checks the field values on IPTagging 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 (*IPTagging) ValidateAll ¶ added in v0.10.0
ValidateAll checks the field values on IPTagging 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 IPTaggingMultiError, or nil if none found.
type IPTaggingMultiError ¶ added in v0.10.0
type IPTaggingMultiError []error
IPTaggingMultiError is an error wrapping multiple validation errors returned by IPTagging.ValidateAll() if the designated constraints aren't met.
func (IPTaggingMultiError) AllErrors ¶ added in v0.10.0
func (m IPTaggingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IPTaggingMultiError) Error ¶ added in v0.10.0
func (m IPTaggingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IPTaggingValidationError ¶
type IPTaggingValidationError struct {
// contains filtered or unexported fields
}
IPTaggingValidationError is the validation error returned by IPTagging.Validate if the designated constraints aren't met.
func (IPTaggingValidationError) Cause ¶
func (e IPTaggingValidationError) Cause() error
Cause function returns cause value.
func (IPTaggingValidationError) Error ¶
func (e IPTaggingValidationError) Error() string
Error satisfies the builtin error interface
func (IPTaggingValidationError) ErrorName ¶
func (e IPTaggingValidationError) ErrorName() string
ErrorName returns error name.
func (IPTaggingValidationError) Field ¶
func (e IPTaggingValidationError) Field() string
Field function returns field value.
func (IPTaggingValidationError) Key ¶
func (e IPTaggingValidationError) Key() bool
Key function returns key value.
func (IPTaggingValidationError) Reason ¶
func (e IPTaggingValidationError) Reason() string
Reason function returns reason value.
type IPTagging_IPTag ¶
type IPTagging_IPTag struct { // Specifies the IP tag name to apply. IpTagName string `protobuf:"bytes,1,opt,name=ip_tag_name,json=ipTagName,proto3" json:"ip_tag_name,omitempty"` // A list of IP address subnets that will be tagged with // ip_tag_name. Both IPv4 and IPv6 are supported. IpList []*v3.CidrRange `protobuf:"bytes,2,rep,name=ip_list,json=ipList,proto3" json:"ip_list,omitempty"` // contains filtered or unexported fields }
Supplies the IP tag name and the IP address subnets.
func (*IPTagging_IPTag) Descriptor
deprecated
func (*IPTagging_IPTag) Descriptor() ([]byte, []int)
Deprecated: Use IPTagging_IPTag.ProtoReflect.Descriptor instead.
func (*IPTagging_IPTag) GetIpList ¶
func (x *IPTagging_IPTag) GetIpList() []*v3.CidrRange
func (*IPTagging_IPTag) GetIpTagName ¶
func (x *IPTagging_IPTag) GetIpTagName() string
func (*IPTagging_IPTag) ProtoMessage ¶
func (*IPTagging_IPTag) ProtoMessage()
func (*IPTagging_IPTag) ProtoReflect ¶ added in v0.9.6
func (x *IPTagging_IPTag) ProtoReflect() protoreflect.Message
func (*IPTagging_IPTag) Reset ¶
func (x *IPTagging_IPTag) Reset()
func (*IPTagging_IPTag) String ¶
func (x *IPTagging_IPTag) String() string
func (*IPTagging_IPTag) Validate ¶
func (m *IPTagging_IPTag) Validate() error
Validate checks the field values on IPTagging_IPTag 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 (*IPTagging_IPTag) ValidateAll ¶ added in v0.10.0
func (m *IPTagging_IPTag) ValidateAll() error
ValidateAll checks the field values on IPTagging_IPTag 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 IPTagging_IPTagMultiError, or nil if none found.
type IPTagging_IPTagMultiError ¶ added in v0.10.0
type IPTagging_IPTagMultiError []error
IPTagging_IPTagMultiError is an error wrapping multiple validation errors returned by IPTagging_IPTag.ValidateAll() if the designated constraints aren't met.
func (IPTagging_IPTagMultiError) AllErrors ¶ added in v0.10.0
func (m IPTagging_IPTagMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IPTagging_IPTagMultiError) Error ¶ added in v0.10.0
func (m IPTagging_IPTagMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IPTagging_IPTagValidationError ¶
type IPTagging_IPTagValidationError struct {
// contains filtered or unexported fields
}
IPTagging_IPTagValidationError is the validation error returned by IPTagging_IPTag.Validate if the designated constraints aren't met.
func (IPTagging_IPTagValidationError) Cause ¶
func (e IPTagging_IPTagValidationError) Cause() error
Cause function returns cause value.
func (IPTagging_IPTagValidationError) Error ¶
func (e IPTagging_IPTagValidationError) Error() string
Error satisfies the builtin error interface
func (IPTagging_IPTagValidationError) ErrorName ¶
func (e IPTagging_IPTagValidationError) ErrorName() string
ErrorName returns error name.
func (IPTagging_IPTagValidationError) Field ¶
func (e IPTagging_IPTagValidationError) Field() string
Field function returns field value.
func (IPTagging_IPTagValidationError) Key ¶
func (e IPTagging_IPTagValidationError) Key() bool
Key function returns key value.
func (IPTagging_IPTagValidationError) Reason ¶
func (e IPTagging_IPTagValidationError) Reason() string
Reason function returns reason value.
type IPTagging_RequestType ¶
type IPTagging_RequestType int32
The type of requests the filter should apply to. The supported types are internal, external or both. The :ref:`x-forwarded-for<config_http_conn_man_headers_x-forwarded-for_internal_origin>` header is used to determine if a request is internal and will result in :ref:`x-envoy-internal<config_http_conn_man_headers_x-envoy-internal>` being set. The filter defaults to both, and it will apply to all request types.
const ( // Both external and internal requests will be tagged. This is the default value. IPTagging_BOTH IPTagging_RequestType = 0 // Only internal requests will be tagged. IPTagging_INTERNAL IPTagging_RequestType = 1 // Only external requests will be tagged. IPTagging_EXTERNAL IPTagging_RequestType = 2 )
func (IPTagging_RequestType) Descriptor ¶ added in v0.9.6
func (IPTagging_RequestType) Descriptor() protoreflect.EnumDescriptor
func (IPTagging_RequestType) Enum ¶ added in v0.9.6
func (x IPTagging_RequestType) Enum() *IPTagging_RequestType
func (IPTagging_RequestType) EnumDescriptor
deprecated
func (IPTagging_RequestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use IPTagging_RequestType.Descriptor instead.
func (IPTagging_RequestType) Number ¶ added in v0.9.6
func (x IPTagging_RequestType) Number() protoreflect.EnumNumber
func (IPTagging_RequestType) String ¶
func (x IPTagging_RequestType) String() string
func (IPTagging_RequestType) Type ¶ added in v0.9.6
func (IPTagging_RequestType) Type() protoreflect.EnumType