upstream_ip_portv3

package
v1.33.0-20240418202234... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Jump to

Keyboard shortcuts

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