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
- func (m *UpstreamIpPortMatcher) Validate() error
- func (m *UpstreamIpPortMatcher) ValidateAll() error
- type UpstreamIpPortMatcherMultiError
- type UpstreamIpPortMatcherValidationError
- func (e UpstreamIpPortMatcherValidationError) Cause() error
- func (e UpstreamIpPortMatcherValidationError) Error() string
- func (e UpstreamIpPortMatcherValidationError) ErrorName() string
- func (e UpstreamIpPortMatcherValidationError) Field() string
- func (e UpstreamIpPortMatcherValidationError) Key() bool
- func (e UpstreamIpPortMatcherValidationError) Reason() 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
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 ¶
func (m UpstreamIpPortMatcherMultiError) Error() string
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 ¶
func (e UpstreamIpPortMatcherValidationError) Cause() error
Cause function returns cause value.
func (UpstreamIpPortMatcherValidationError) Error ¶
func (e UpstreamIpPortMatcherValidationError) Error() string
Error satisfies the builtin error interface
func (UpstreamIpPortMatcherValidationError) ErrorName ¶
func (e UpstreamIpPortMatcherValidationError) ErrorName() string
ErrorName returns error name.
func (UpstreamIpPortMatcherValidationError) Field ¶
func (e UpstreamIpPortMatcherValidationError) Field() string
Field function returns field value.
func (UpstreamIpPortMatcherValidationError) Key ¶
func (e UpstreamIpPortMatcherValidationError) Key() bool
Key function returns key value.
func (UpstreamIpPortMatcherValidationError) Reason ¶
func (e UpstreamIpPortMatcherValidationError) Reason() string
Reason function returns reason value.