Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_matching_input_matchers_ip_v3_ip_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Ip ¶
type Ip struct { // Match if the IP belongs to any of these CIDR ranges. CidrRanges []*v3.CidrRange `protobuf:"bytes,1,rep,name=cidr_ranges,json=cidrRanges,proto3" json:"cidr_ranges,omitempty"` // The human readable prefix to use when emitting statistics for the IP input // matcher. Names in the table below are concatenated to this prefix. // // .. csv-table:: // :header: Name, Type, Description // :widths: 1, 1, 2 // // ip_parsing_failed, Counter, Total number of IP addresses the matcher was unable to parse StatPrefix string `protobuf:"bytes,2,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` // contains filtered or unexported fields }
This input matcher matches IPv4 or IPv6 addresses against a list of CIDR ranges. It returns true if and only if the input IP belongs to at least one of these CIDR ranges. Internally, it uses a Level-Compressed trie, as described in the paper `IP-address lookup using LC-tries <https://www.nada.kth.se/~snilsson/publications/IP-address-lookup-using-LC-tries/>`_ by S. Nilsson and G. Karlsson. For "big" lists of IPs, this matcher is more efficient than multiple single IP matcher, that would have a linear cost.
func (*Ip) Descriptor
deprecated
func (*Ip) GetCidrRanges ¶
func (*Ip) GetStatPrefix ¶
func (*Ip) ProtoMessage ¶
func (*Ip) ProtoMessage()
func (*Ip) ProtoReflect ¶
func (x *Ip) ProtoReflect() protoreflect.Message
type IpValidationError ¶
type IpValidationError struct {
// contains filtered or unexported fields
}
IpValidationError is the validation error returned by Ip.Validate if the designated constraints aren't met.
func (IpValidationError) Cause ¶
func (e IpValidationError) Cause() error
Cause function returns cause value.
func (IpValidationError) Error ¶
func (e IpValidationError) Error() string
Error satisfies the builtin error interface
func (IpValidationError) ErrorName ¶
func (e IpValidationError) ErrorName() string
ErrorName returns error name.
func (IpValidationError) Field ¶
func (e IpValidationError) Field() string
Field function returns field value.
func (IpValidationError) Key ¶
func (e IpValidationError) Key() bool
Key function returns key value.
func (IpValidationError) Reason ¶
func (e IpValidationError) Reason() string
Reason function returns reason value.