Documentation ¶
Index ¶
- Variables
- type UpstreamIpPortMatcher
- func (*UpstreamIpPortMatcher) Descriptor() ([]byte, []int)deprecated
- func (x *UpstreamIpPortMatcher) GetUpstreamIp() *v3.CidrRange
- func (x *UpstreamIpPortMatcher) GetUpstreamPortRange() *v31.Int64Range
- func (*UpstreamIpPortMatcher) ProtoMessage()
- func (x *UpstreamIpPortMatcher) ProtoReflect() protoreflect.Message
- func (x *UpstreamIpPortMatcher) Reset()
- func (x *UpstreamIpPortMatcher) String() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_rbac_matchers_upstream_ip_port_v3_upstream_ip_port_matcher_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type UpstreamIpPortMatcher ¶
type UpstreamIpPortMatcher struct { // A CIDR block that will be used to match the upstream IP. // Both Ipv4 and Ipv6 ranges can be matched. UpstreamIp *v3.CidrRange `protobuf:"bytes,1,opt,name=upstream_ip,json=upstreamIp,proto3" json:"upstream_ip,omitempty"` // A port range that will be used to match the upstream port. UpstreamPortRange *v31.Int64Range `protobuf:"bytes,2,opt,name=upstream_port_range,json=upstreamPortRange,proto3" json:"upstream_port_range,omitempty"` // contains filtered or unexported fields }
This is configuration for matching upstream ip and port. Note that although both fields are optional, at least one of IP or port must be supplied. If only one is supplied the other is a wildcard match. This matcher requires a filter in the chain to have saved the upstream address in the filter state before the matcher is executed by RBAC filter. The state should be saved with key “envoy.stream.upstream_address“ (See :repo:`upstream_address.h<source/common/stream_info/upstream_address.h>`). Also, See :repo:`proxy_filter.cc<source/extensions/filters/http/dynamic_forward_proxy/proxy_filter.cc>` for an example of a filter which populates the FilterState.
func (*UpstreamIpPortMatcher) Descriptor
deprecated
func (*UpstreamIpPortMatcher) Descriptor() ([]byte, []int)
Deprecated: Use UpstreamIpPortMatcher.ProtoReflect.Descriptor instead.
func (*UpstreamIpPortMatcher) GetUpstreamIp ¶
func (x *UpstreamIpPortMatcher) GetUpstreamIp() *v3.CidrRange
func (*UpstreamIpPortMatcher) GetUpstreamPortRange ¶
func (x *UpstreamIpPortMatcher) GetUpstreamPortRange() *v31.Int64Range
func (*UpstreamIpPortMatcher) ProtoMessage ¶
func (*UpstreamIpPortMatcher) ProtoMessage()
func (*UpstreamIpPortMatcher) ProtoReflect ¶
func (x *UpstreamIpPortMatcher) ProtoReflect() protoreflect.Message
func (*UpstreamIpPortMatcher) Reset ¶
func (x *UpstreamIpPortMatcher) Reset()
func (*UpstreamIpPortMatcher) String ¶
func (x *UpstreamIpPortMatcher) String() string