upstream_ip_portv3

package
v0.0.0-...-9e07b7e Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

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

func (*UpstreamIpPortMatcher) Validate

func (m *UpstreamIpPortMatcher) Validate() error

Validate checks the field values on UpstreamIpPortMatcher 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 (*UpstreamIpPortMatcher) ValidateAll

func (m *UpstreamIpPortMatcher) ValidateAll() error

ValidateAll checks the field values on UpstreamIpPortMatcher 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 UpstreamIpPortMatcherMultiError, or nil if none found.

type UpstreamIpPortMatcherMultiError

type UpstreamIpPortMatcherMultiError []error

UpstreamIpPortMatcherMultiError is an error wrapping multiple validation errors returned by UpstreamIpPortMatcher.ValidateAll() if the designated constraints aren't met.

func (UpstreamIpPortMatcherMultiError) AllErrors

func (m UpstreamIpPortMatcherMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpstreamIpPortMatcherMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpstreamIpPortMatcherValidationError

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

UpstreamIpPortMatcherValidationError is the validation error returned by UpstreamIpPortMatcher.Validate if the designated constraints aren't met.

func (UpstreamIpPortMatcherValidationError) Cause

Cause function returns cause value.

func (UpstreamIpPortMatcherValidationError) Error

Error satisfies the builtin error interface

func (UpstreamIpPortMatcherValidationError) ErrorName

ErrorName returns error name.

func (UpstreamIpPortMatcherValidationError) Field

Field function returns field value.

func (UpstreamIpPortMatcherValidationError) Key

Key function returns key value.

func (UpstreamIpPortMatcherValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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