go-control-plane: github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3 Index | Files

package envoy_type_matcher_v3

import "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3"

Index

Package Files

http_inputs.pb.go http_inputs.pb.validate.go metadata.pb.go metadata.pb.validate.go node.pb.go node.pb.validate.go number.pb.go number.pb.validate.go path.pb.go path.pb.validate.go regex.pb.go regex.pb.validate.go string.pb.go string.pb.validate.go struct.pb.go struct.pb.validate.go value.pb.go value.pb.validate.go

Variables

var File_envoy_type_matcher_v3_http_inputs_proto protoreflect.FileDescriptor
var File_envoy_type_matcher_v3_metadata_proto protoreflect.FileDescriptor
var File_envoy_type_matcher_v3_node_proto protoreflect.FileDescriptor
var File_envoy_type_matcher_v3_number_proto protoreflect.FileDescriptor
var File_envoy_type_matcher_v3_path_proto protoreflect.FileDescriptor
var File_envoy_type_matcher_v3_regex_proto protoreflect.FileDescriptor
var File_envoy_type_matcher_v3_string_proto protoreflect.FileDescriptor
var File_envoy_type_matcher_v3_struct_proto protoreflect.FileDescriptor
var File_envoy_type_matcher_v3_value_proto protoreflect.FileDescriptor

type DoubleMatcher Uses

type DoubleMatcher struct {

    // Types that are assignable to MatchPattern:
    //	*DoubleMatcher_Range
    //	*DoubleMatcher_Exact
    MatchPattern isDoubleMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
    // contains filtered or unexported fields
}

Specifies the way to match a double value.

func (*DoubleMatcher) Descriptor Uses

func (*DoubleMatcher) Descriptor() ([]byte, []int)

Deprecated: Use DoubleMatcher.ProtoReflect.Descriptor instead.

func (*DoubleMatcher) GetExact Uses

func (x *DoubleMatcher) GetExact() float64

func (*DoubleMatcher) GetMatchPattern Uses

func (m *DoubleMatcher) GetMatchPattern() isDoubleMatcher_MatchPattern

func (*DoubleMatcher) GetRange Uses

func (x *DoubleMatcher) GetRange() *v3.DoubleRange

func (*DoubleMatcher) ProtoMessage Uses

func (*DoubleMatcher) ProtoMessage()

func (*DoubleMatcher) ProtoReflect Uses

func (x *DoubleMatcher) ProtoReflect() protoreflect.Message

func (*DoubleMatcher) Reset Uses

func (x *DoubleMatcher) Reset()

func (*DoubleMatcher) String Uses

func (x *DoubleMatcher) String() string

func (*DoubleMatcher) Validate Uses

func (m *DoubleMatcher) Validate() error

Validate checks the field values on DoubleMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DoubleMatcherValidationError Uses

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

DoubleMatcherValidationError is the validation error returned by DoubleMatcher.Validate if the designated constraints aren't met.

func (DoubleMatcherValidationError) Cause Uses

func (e DoubleMatcherValidationError) Cause() error

Cause function returns cause value.

func (DoubleMatcherValidationError) Error Uses

func (e DoubleMatcherValidationError) Error() string

Error satisfies the builtin error interface

func (DoubleMatcherValidationError) ErrorName Uses

func (e DoubleMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (DoubleMatcherValidationError) Field Uses

func (e DoubleMatcherValidationError) Field() string

Field function returns field value.

func (DoubleMatcherValidationError) Key Uses

func (e DoubleMatcherValidationError) Key() bool

Key function returns key value.

func (DoubleMatcherValidationError) Reason Uses

func (e DoubleMatcherValidationError) Reason() string

Reason function returns reason value.

type DoubleMatcher_Exact Uses

type DoubleMatcher_Exact struct {
    // If specified, the input double value must be equal to the value specified here.
    Exact float64 `protobuf:"fixed64,2,opt,name=exact,proto3,oneof"`
}

type DoubleMatcher_Range Uses

type DoubleMatcher_Range struct {
    // If specified, the input double value must be in the range specified here.
    // Note: The range is using half-open interval semantics [start, end).
    Range *v3.DoubleRange `protobuf:"bytes,1,opt,name=range,proto3,oneof"`
}

type HttpRequestHeaderMatchInput Uses

type HttpRequestHeaderMatchInput struct {

    // The request header to match on.
    HeaderName string `protobuf:"bytes,1,opt,name=header_name,json=headerName,proto3" json:"header_name,omitempty"`
    // contains filtered or unexported fields
}

Match input indicates that matching should be done on a specific request header. The resulting input string will be all headers for the given key joined by a comma, e.g. if the request contains two 'foo' headers with value 'bar' and 'baz', the input string will be 'bar,baz'. [#comment:TODO(snowp): Link to unified matching docs.]

func (*HttpRequestHeaderMatchInput) Descriptor Uses

func (*HttpRequestHeaderMatchInput) Descriptor() ([]byte, []int)

Deprecated: Use HttpRequestHeaderMatchInput.ProtoReflect.Descriptor instead.

func (*HttpRequestHeaderMatchInput) GetHeaderName Uses

func (x *HttpRequestHeaderMatchInput) GetHeaderName() string

func (*HttpRequestHeaderMatchInput) ProtoMessage Uses

func (*HttpRequestHeaderMatchInput) ProtoMessage()

func (*HttpRequestHeaderMatchInput) ProtoReflect Uses

func (x *HttpRequestHeaderMatchInput) ProtoReflect() protoreflect.Message

func (*HttpRequestHeaderMatchInput) Reset Uses

func (x *HttpRequestHeaderMatchInput) Reset()

func (*HttpRequestHeaderMatchInput) String Uses

func (x *HttpRequestHeaderMatchInput) String() string

func (*HttpRequestHeaderMatchInput) Validate Uses

func (m *HttpRequestHeaderMatchInput) Validate() error

Validate checks the field values on HttpRequestHeaderMatchInput with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type HttpRequestHeaderMatchInputValidationError Uses

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

HttpRequestHeaderMatchInputValidationError is the validation error returned by HttpRequestHeaderMatchInput.Validate if the designated constraints aren't met.

func (HttpRequestHeaderMatchInputValidationError) Cause Uses

func (e HttpRequestHeaderMatchInputValidationError) Cause() error

Cause function returns cause value.

func (HttpRequestHeaderMatchInputValidationError) Error Uses

func (e HttpRequestHeaderMatchInputValidationError) Error() string

Error satisfies the builtin error interface

func (HttpRequestHeaderMatchInputValidationError) ErrorName Uses

func (e HttpRequestHeaderMatchInputValidationError) ErrorName() string

ErrorName returns error name.

func (HttpRequestHeaderMatchInputValidationError) Field Uses

func (e HttpRequestHeaderMatchInputValidationError) Field() string

Field function returns field value.

func (HttpRequestHeaderMatchInputValidationError) Key Uses

func (e HttpRequestHeaderMatchInputValidationError) Key() bool

Key function returns key value.

func (HttpRequestHeaderMatchInputValidationError) Reason Uses

func (e HttpRequestHeaderMatchInputValidationError) Reason() string

Reason function returns reason value.

type HttpResponseHeaderMatchInput Uses

type HttpResponseHeaderMatchInput struct {

    // The response header to match on.
    HeaderName string `protobuf:"bytes,1,opt,name=header_name,json=headerName,proto3" json:"header_name,omitempty"`
    // contains filtered or unexported fields
}

Match input indicating that matching should be done on a specific response header. The resulting input string will be all headers for the given key joined by a comma, e.g. if the response contains two 'foo' headers with value 'bar' and 'baz', the input string will be 'bar,baz'. [#comment:TODO(snowp): Link to unified matching docs.]

func (*HttpResponseHeaderMatchInput) Descriptor Uses

func (*HttpResponseHeaderMatchInput) Descriptor() ([]byte, []int)

Deprecated: Use HttpResponseHeaderMatchInput.ProtoReflect.Descriptor instead.

func (*HttpResponseHeaderMatchInput) GetHeaderName Uses

func (x *HttpResponseHeaderMatchInput) GetHeaderName() string

func (*HttpResponseHeaderMatchInput) ProtoMessage Uses

func (*HttpResponseHeaderMatchInput) ProtoMessage()

func (*HttpResponseHeaderMatchInput) ProtoReflect Uses

func (x *HttpResponseHeaderMatchInput) ProtoReflect() protoreflect.Message

func (*HttpResponseHeaderMatchInput) Reset Uses

func (x *HttpResponseHeaderMatchInput) Reset()

func (*HttpResponseHeaderMatchInput) String Uses

func (x *HttpResponseHeaderMatchInput) String() string

func (*HttpResponseHeaderMatchInput) Validate Uses

func (m *HttpResponseHeaderMatchInput) Validate() error

Validate checks the field values on HttpResponseHeaderMatchInput with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type HttpResponseHeaderMatchInputValidationError Uses

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

HttpResponseHeaderMatchInputValidationError is the validation error returned by HttpResponseHeaderMatchInput.Validate if the designated constraints aren't met.

func (HttpResponseHeaderMatchInputValidationError) Cause Uses

func (e HttpResponseHeaderMatchInputValidationError) Cause() error

Cause function returns cause value.

func (HttpResponseHeaderMatchInputValidationError) Error Uses

func (e HttpResponseHeaderMatchInputValidationError) Error() string

Error satisfies the builtin error interface

func (HttpResponseHeaderMatchInputValidationError) ErrorName Uses

func (e HttpResponseHeaderMatchInputValidationError) ErrorName() string

ErrorName returns error name.

func (HttpResponseHeaderMatchInputValidationError) Field Uses

func (e HttpResponseHeaderMatchInputValidationError) Field() string

Field function returns field value.

func (HttpResponseHeaderMatchInputValidationError) Key Uses

func (e HttpResponseHeaderMatchInputValidationError) Key() bool

Key function returns key value.

func (HttpResponseHeaderMatchInputValidationError) Reason Uses

func (e HttpResponseHeaderMatchInputValidationError) Reason() string

Reason function returns reason value.

type ListMatcher Uses

type ListMatcher struct {

    // Types that are assignable to MatchPattern:
    //	*ListMatcher_OneOf
    MatchPattern isListMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
    // contains filtered or unexported fields
}

Specifies the way to match a list value.

func (*ListMatcher) Descriptor Uses

func (*ListMatcher) Descriptor() ([]byte, []int)

Deprecated: Use ListMatcher.ProtoReflect.Descriptor instead.

func (*ListMatcher) GetMatchPattern Uses

func (m *ListMatcher) GetMatchPattern() isListMatcher_MatchPattern

func (*ListMatcher) GetOneOf Uses

func (x *ListMatcher) GetOneOf() *ValueMatcher

func (*ListMatcher) ProtoMessage Uses

func (*ListMatcher) ProtoMessage()

func (*ListMatcher) ProtoReflect Uses

func (x *ListMatcher) ProtoReflect() protoreflect.Message

func (*ListMatcher) Reset Uses

func (x *ListMatcher) Reset()

func (*ListMatcher) String Uses

func (x *ListMatcher) String() string

func (*ListMatcher) Validate Uses

func (m *ListMatcher) Validate() error

Validate checks the field values on ListMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListMatcherValidationError Uses

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

ListMatcherValidationError is the validation error returned by ListMatcher.Validate if the designated constraints aren't met.

func (ListMatcherValidationError) Cause Uses

func (e ListMatcherValidationError) Cause() error

Cause function returns cause value.

func (ListMatcherValidationError) Error Uses

func (e ListMatcherValidationError) Error() string

Error satisfies the builtin error interface

func (ListMatcherValidationError) ErrorName Uses

func (e ListMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (ListMatcherValidationError) Field Uses

func (e ListMatcherValidationError) Field() string

Field function returns field value.

func (ListMatcherValidationError) Key Uses

func (e ListMatcherValidationError) Key() bool

Key function returns key value.

func (ListMatcherValidationError) Reason Uses

func (e ListMatcherValidationError) Reason() string

Reason function returns reason value.

type ListMatcher_OneOf Uses

type ListMatcher_OneOf struct {
    // If specified, at least one of the values in the list must match the value specified.
    OneOf *ValueMatcher `protobuf:"bytes,1,opt,name=one_of,json=oneOf,proto3,oneof"`
}

type ListStringMatcher Uses

type ListStringMatcher struct {
    Patterns []*StringMatcher `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"`
    // contains filtered or unexported fields
}

Specifies a list of ways to match a string.

func (*ListStringMatcher) Descriptor Uses

func (*ListStringMatcher) Descriptor() ([]byte, []int)

Deprecated: Use ListStringMatcher.ProtoReflect.Descriptor instead.

func (*ListStringMatcher) GetPatterns Uses

func (x *ListStringMatcher) GetPatterns() []*StringMatcher

func (*ListStringMatcher) ProtoMessage Uses

func (*ListStringMatcher) ProtoMessage()

func (*ListStringMatcher) ProtoReflect Uses

func (x *ListStringMatcher) ProtoReflect() protoreflect.Message

func (*ListStringMatcher) Reset Uses

func (x *ListStringMatcher) Reset()

func (*ListStringMatcher) String Uses

func (x *ListStringMatcher) String() string

func (*ListStringMatcher) Validate Uses

func (m *ListStringMatcher) Validate() error

Validate checks the field values on ListStringMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListStringMatcherValidationError Uses

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

ListStringMatcherValidationError is the validation error returned by ListStringMatcher.Validate if the designated constraints aren't met.

func (ListStringMatcherValidationError) Cause Uses

func (e ListStringMatcherValidationError) Cause() error

Cause function returns cause value.

func (ListStringMatcherValidationError) Error Uses

func (e ListStringMatcherValidationError) Error() string

Error satisfies the builtin error interface

func (ListStringMatcherValidationError) ErrorName Uses

func (e ListStringMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (ListStringMatcherValidationError) Field Uses

func (e ListStringMatcherValidationError) Field() string

Field function returns field value.

func (ListStringMatcherValidationError) Key Uses

func (e ListStringMatcherValidationError) Key() bool

Key function returns key value.

func (ListStringMatcherValidationError) Reason Uses

func (e ListStringMatcherValidationError) Reason() string

Reason function returns reason value.

type MetadataMatcher Uses

type MetadataMatcher struct {

    // The filter name to retrieve the Struct from the Metadata.
    Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
    // The path to retrieve the Value from the Struct.
    Path []*MetadataMatcher_PathSegment `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"`
    // The MetadataMatcher is matched if the value retrieved by path is matched to this value.
    Value *ValueMatcher `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
    // contains filtered or unexported fields
}

[#next-major-version: MetadataMatcher should use StructMatcher]

func (*MetadataMatcher) Descriptor Uses

func (*MetadataMatcher) Descriptor() ([]byte, []int)

Deprecated: Use MetadataMatcher.ProtoReflect.Descriptor instead.

func (*MetadataMatcher) GetFilter Uses

func (x *MetadataMatcher) GetFilter() string

func (*MetadataMatcher) GetPath Uses

func (x *MetadataMatcher) GetPath() []*MetadataMatcher_PathSegment

func (*MetadataMatcher) GetValue Uses

func (x *MetadataMatcher) GetValue() *ValueMatcher

func (*MetadataMatcher) ProtoMessage Uses

func (*MetadataMatcher) ProtoMessage()

func (*MetadataMatcher) ProtoReflect Uses

func (x *MetadataMatcher) ProtoReflect() protoreflect.Message

func (*MetadataMatcher) Reset Uses

func (x *MetadataMatcher) Reset()

func (*MetadataMatcher) String Uses

func (x *MetadataMatcher) String() string

func (*MetadataMatcher) Validate Uses

func (m *MetadataMatcher) Validate() error

Validate checks the field values on MetadataMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MetadataMatcherValidationError Uses

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

MetadataMatcherValidationError is the validation error returned by MetadataMatcher.Validate if the designated constraints aren't met.

func (MetadataMatcherValidationError) Cause Uses

func (e MetadataMatcherValidationError) Cause() error

Cause function returns cause value.

func (MetadataMatcherValidationError) Error Uses

func (e MetadataMatcherValidationError) Error() string

Error satisfies the builtin error interface

func (MetadataMatcherValidationError) ErrorName Uses

func (e MetadataMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (MetadataMatcherValidationError) Field Uses

func (e MetadataMatcherValidationError) Field() string

Field function returns field value.

func (MetadataMatcherValidationError) Key Uses

func (e MetadataMatcherValidationError) Key() bool

Key function returns key value.

func (MetadataMatcherValidationError) Reason Uses

func (e MetadataMatcherValidationError) Reason() string

Reason function returns reason value.

type MetadataMatcher_PathSegment Uses

type MetadataMatcher_PathSegment struct {

    // Types that are assignable to Segment:
    //	*MetadataMatcher_PathSegment_Key
    Segment isMetadataMatcher_PathSegment_Segment `protobuf_oneof:"segment"`
    // contains filtered or unexported fields
}

Specifies the segment in a path to retrieve value from Metadata. Note: Currently it's not supported to retrieve a value from a list in Metadata. This means that if the segment key refers to a list, it has to be the last segment in a path.

func (*MetadataMatcher_PathSegment) Descriptor Uses

func (*MetadataMatcher_PathSegment) Descriptor() ([]byte, []int)

Deprecated: Use MetadataMatcher_PathSegment.ProtoReflect.Descriptor instead.

func (*MetadataMatcher_PathSegment) GetKey Uses

func (x *MetadataMatcher_PathSegment) GetKey() string

func (*MetadataMatcher_PathSegment) GetSegment Uses

func (m *MetadataMatcher_PathSegment) GetSegment() isMetadataMatcher_PathSegment_Segment

func (*MetadataMatcher_PathSegment) ProtoMessage Uses

func (*MetadataMatcher_PathSegment) ProtoMessage()

func (*MetadataMatcher_PathSegment) ProtoReflect Uses

func (x *MetadataMatcher_PathSegment) ProtoReflect() protoreflect.Message

func (*MetadataMatcher_PathSegment) Reset Uses

func (x *MetadataMatcher_PathSegment) Reset()

func (*MetadataMatcher_PathSegment) String Uses

func (x *MetadataMatcher_PathSegment) String() string

func (*MetadataMatcher_PathSegment) Validate Uses

func (m *MetadataMatcher_PathSegment) Validate() error

Validate checks the field values on MetadataMatcher_PathSegment with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type MetadataMatcher_PathSegmentValidationError Uses

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

MetadataMatcher_PathSegmentValidationError is the validation error returned by MetadataMatcher_PathSegment.Validate if the designated constraints aren't met.

func (MetadataMatcher_PathSegmentValidationError) Cause Uses

func (e MetadataMatcher_PathSegmentValidationError) Cause() error

Cause function returns cause value.

func (MetadataMatcher_PathSegmentValidationError) Error Uses

func (e MetadataMatcher_PathSegmentValidationError) Error() string

Error satisfies the builtin error interface

func (MetadataMatcher_PathSegmentValidationError) ErrorName Uses

func (e MetadataMatcher_PathSegmentValidationError) ErrorName() string

ErrorName returns error name.

func (MetadataMatcher_PathSegmentValidationError) Field Uses

func (e MetadataMatcher_PathSegmentValidationError) Field() string

Field function returns field value.

func (MetadataMatcher_PathSegmentValidationError) Key Uses

func (e MetadataMatcher_PathSegmentValidationError) Key() bool

Key function returns key value.

func (MetadataMatcher_PathSegmentValidationError) Reason Uses

func (e MetadataMatcher_PathSegmentValidationError) Reason() string

Reason function returns reason value.

type MetadataMatcher_PathSegment_Key Uses

type MetadataMatcher_PathSegment_Key struct {
    // If specified, use the key to retrieve the value in a Struct.
    Key string `protobuf:"bytes,1,opt,name=key,proto3,oneof"`
}

type NodeMatcher Uses

type NodeMatcher struct {

    // Specifies match criteria on the node id.
    NodeId *StringMatcher `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
    // Specifies match criteria on the node metadata.
    NodeMetadatas []*StructMatcher `protobuf:"bytes,2,rep,name=node_metadatas,json=nodeMetadatas,proto3" json:"node_metadatas,omitempty"`
    // contains filtered or unexported fields
}

Specifies the way to match a Node. The match follows AND semantics.

func (*NodeMatcher) Descriptor Uses

func (*NodeMatcher) Descriptor() ([]byte, []int)

Deprecated: Use NodeMatcher.ProtoReflect.Descriptor instead.

func (*NodeMatcher) GetNodeId Uses

func (x *NodeMatcher) GetNodeId() *StringMatcher

func (*NodeMatcher) GetNodeMetadatas Uses

func (x *NodeMatcher) GetNodeMetadatas() []*StructMatcher

func (*NodeMatcher) ProtoMessage Uses

func (*NodeMatcher) ProtoMessage()

func (*NodeMatcher) ProtoReflect Uses

func (x *NodeMatcher) ProtoReflect() protoreflect.Message

func (*NodeMatcher) Reset Uses

func (x *NodeMatcher) Reset()

func (*NodeMatcher) String Uses

func (x *NodeMatcher) String() string

func (*NodeMatcher) Validate Uses

func (m *NodeMatcher) Validate() error

Validate checks the field values on NodeMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type NodeMatcherValidationError Uses

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

NodeMatcherValidationError is the validation error returned by NodeMatcher.Validate if the designated constraints aren't met.

func (NodeMatcherValidationError) Cause Uses

func (e NodeMatcherValidationError) Cause() error

Cause function returns cause value.

func (NodeMatcherValidationError) Error Uses

func (e NodeMatcherValidationError) Error() string

Error satisfies the builtin error interface

func (NodeMatcherValidationError) ErrorName Uses

func (e NodeMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (NodeMatcherValidationError) Field Uses

func (e NodeMatcherValidationError) Field() string

Field function returns field value.

func (NodeMatcherValidationError) Key Uses

func (e NodeMatcherValidationError) Key() bool

Key function returns key value.

func (NodeMatcherValidationError) Reason Uses

func (e NodeMatcherValidationError) Reason() string

Reason function returns reason value.

type PathMatcher Uses

type PathMatcher struct {

    // Types that are assignable to Rule:
    //	*PathMatcher_Path
    Rule isPathMatcher_Rule `protobuf_oneof:"rule"`
    // contains filtered or unexported fields
}

Specifies the way to match a path on HTTP request.

func (*PathMatcher) Descriptor Uses

func (*PathMatcher) Descriptor() ([]byte, []int)

Deprecated: Use PathMatcher.ProtoReflect.Descriptor instead.

func (*PathMatcher) GetPath Uses

func (x *PathMatcher) GetPath() *StringMatcher

func (*PathMatcher) GetRule Uses

func (m *PathMatcher) GetRule() isPathMatcher_Rule

func (*PathMatcher) ProtoMessage Uses

func (*PathMatcher) ProtoMessage()

func (*PathMatcher) ProtoReflect Uses

func (x *PathMatcher) ProtoReflect() protoreflect.Message

func (*PathMatcher) Reset Uses

func (x *PathMatcher) Reset()

func (*PathMatcher) String Uses

func (x *PathMatcher) String() string

func (*PathMatcher) Validate Uses

func (m *PathMatcher) Validate() error

Validate checks the field values on PathMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PathMatcherValidationError Uses

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

PathMatcherValidationError is the validation error returned by PathMatcher.Validate if the designated constraints aren't met.

func (PathMatcherValidationError) Cause Uses

func (e PathMatcherValidationError) Cause() error

Cause function returns cause value.

func (PathMatcherValidationError) Error Uses

func (e PathMatcherValidationError) Error() string

Error satisfies the builtin error interface

func (PathMatcherValidationError) ErrorName Uses

func (e PathMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (PathMatcherValidationError) Field Uses

func (e PathMatcherValidationError) Field() string

Field function returns field value.

func (PathMatcherValidationError) Key Uses

func (e PathMatcherValidationError) Key() bool

Key function returns key value.

func (PathMatcherValidationError) Reason Uses

func (e PathMatcherValidationError) Reason() string

Reason function returns reason value.

type PathMatcher_Path Uses

type PathMatcher_Path struct {
    // The `path` must match the URL path portion of the :path header. The query and fragment
    // string (if present) are removed in the URL path portion.
    // For example, the path */data* will match the *:path* header */data#fragment?param=value*.
    Path *StringMatcher `protobuf:"bytes,1,opt,name=path,proto3,oneof"`
}

type RegexMatchAndSubstitute Uses

type RegexMatchAndSubstitute struct {

    // The regular expression used to find portions of a string (hereafter called
    // the "subject string") that should be replaced. When a new string is
    // produced during the substitution operation, the new string is initially
    // the same as the subject string, but then all matches in the subject string
    // are replaced by the substitution string. If replacing all matches isn't
    // desired, regular expression anchors can be used to ensure a single match,
    // so as to replace just one occurrence of a pattern. Capture groups can be
    // used in the pattern to extract portions of the subject string, and then
    // referenced in the substitution string.
    Pattern *RegexMatcher `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
    // The string that should be substituted into matching portions of the
    // subject string during a substitution operation to produce a new string.
    // Capture groups in the pattern can be referenced in the substitution
    // string. Note, however, that the syntax for referring to capture groups is
    // defined by the chosen regular expression engine. Google's `RE2
    // <https://github.com/google/re2>`_ regular expression engine uses a
    // backslash followed by the capture group number to denote a numbered
    // capture group. E.g., ``\1`` refers to capture group 1, and ``\2`` refers
    // to capture group 2.
    Substitution string `protobuf:"bytes,2,opt,name=substitution,proto3" json:"substitution,omitempty"`
    // contains filtered or unexported fields
}

Describes how to match a string and then produce a new string using a regular expression and a substitution string.

func (*RegexMatchAndSubstitute) Descriptor Uses

func (*RegexMatchAndSubstitute) Descriptor() ([]byte, []int)

Deprecated: Use RegexMatchAndSubstitute.ProtoReflect.Descriptor instead.

func (*RegexMatchAndSubstitute) GetPattern Uses

func (x *RegexMatchAndSubstitute) GetPattern() *RegexMatcher

func (*RegexMatchAndSubstitute) GetSubstitution Uses

func (x *RegexMatchAndSubstitute) GetSubstitution() string

func (*RegexMatchAndSubstitute) ProtoMessage Uses

func (*RegexMatchAndSubstitute) ProtoMessage()

func (*RegexMatchAndSubstitute) ProtoReflect Uses

func (x *RegexMatchAndSubstitute) ProtoReflect() protoreflect.Message

func (*RegexMatchAndSubstitute) Reset Uses

func (x *RegexMatchAndSubstitute) Reset()

func (*RegexMatchAndSubstitute) String Uses

func (x *RegexMatchAndSubstitute) String() string

func (*RegexMatchAndSubstitute) Validate Uses

func (m *RegexMatchAndSubstitute) Validate() error

Validate checks the field values on RegexMatchAndSubstitute with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RegexMatchAndSubstituteValidationError Uses

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

RegexMatchAndSubstituteValidationError is the validation error returned by RegexMatchAndSubstitute.Validate if the designated constraints aren't met.

func (RegexMatchAndSubstituteValidationError) Cause Uses

func (e RegexMatchAndSubstituteValidationError) Cause() error

Cause function returns cause value.

func (RegexMatchAndSubstituteValidationError) Error Uses

func (e RegexMatchAndSubstituteValidationError) Error() string

Error satisfies the builtin error interface

func (RegexMatchAndSubstituteValidationError) ErrorName Uses

func (e RegexMatchAndSubstituteValidationError) ErrorName() string

ErrorName returns error name.

func (RegexMatchAndSubstituteValidationError) Field Uses

func (e RegexMatchAndSubstituteValidationError) Field() string

Field function returns field value.

func (RegexMatchAndSubstituteValidationError) Key Uses

func (e RegexMatchAndSubstituteValidationError) Key() bool

Key function returns key value.

func (RegexMatchAndSubstituteValidationError) Reason Uses

func (e RegexMatchAndSubstituteValidationError) Reason() string

Reason function returns reason value.

type RegexMatcher Uses

type RegexMatcher struct {

    // Types that are assignable to EngineType:
    //	*RegexMatcher_GoogleRe2
    EngineType isRegexMatcher_EngineType `protobuf_oneof:"engine_type"`
    // The regex match string. The string must be supported by the configured engine.
    Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"`
    // contains filtered or unexported fields
}

A regex matcher designed for safety when used with untrusted input.

func (*RegexMatcher) Descriptor Uses

func (*RegexMatcher) Descriptor() ([]byte, []int)

Deprecated: Use RegexMatcher.ProtoReflect.Descriptor instead.

func (*RegexMatcher) GetEngineType Uses

func (m *RegexMatcher) GetEngineType() isRegexMatcher_EngineType

func (*RegexMatcher) GetGoogleRe2 Uses

func (x *RegexMatcher) GetGoogleRe2() *RegexMatcher_GoogleRE2

func (*RegexMatcher) GetRegex Uses

func (x *RegexMatcher) GetRegex() string

func (*RegexMatcher) ProtoMessage Uses

func (*RegexMatcher) ProtoMessage()

func (*RegexMatcher) ProtoReflect Uses

func (x *RegexMatcher) ProtoReflect() protoreflect.Message

func (*RegexMatcher) Reset Uses

func (x *RegexMatcher) Reset()

func (*RegexMatcher) String Uses

func (x *RegexMatcher) String() string

func (*RegexMatcher) Validate Uses

func (m *RegexMatcher) Validate() error

Validate checks the field values on RegexMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RegexMatcherValidationError Uses

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

RegexMatcherValidationError is the validation error returned by RegexMatcher.Validate if the designated constraints aren't met.

func (RegexMatcherValidationError) Cause Uses

func (e RegexMatcherValidationError) Cause() error

Cause function returns cause value.

func (RegexMatcherValidationError) Error Uses

func (e RegexMatcherValidationError) Error() string

Error satisfies the builtin error interface

func (RegexMatcherValidationError) ErrorName Uses

func (e RegexMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (RegexMatcherValidationError) Field Uses

func (e RegexMatcherValidationError) Field() string

Field function returns field value.

func (RegexMatcherValidationError) Key Uses

func (e RegexMatcherValidationError) Key() bool

Key function returns key value.

func (RegexMatcherValidationError) Reason Uses

func (e RegexMatcherValidationError) Reason() string

Reason function returns reason value.

type RegexMatcher_GoogleRE2 Uses

type RegexMatcher_GoogleRE2 struct {

    // This field controls the RE2 "program size" which is a rough estimate of how complex a
    // compiled regex is to evaluate. A regex that has a program size greater than the configured
    // value will fail to compile. In this case, the configured max program size can be increased
    // or the regex can be simplified. If not specified, the default is 100.
    //
    // This field is deprecated; regexp validation should be performed on the management server
    // instead of being done by each individual client.
    //
    // Deprecated: Do not use.
    MaxProgramSize *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=max_program_size,json=maxProgramSize,proto3" json:"max_program_size,omitempty"`
    // contains filtered or unexported fields
}

Google's `RE2 <https://github.com/google/re2>`_ regex engine. The regex string must adhere to the documented `syntax <https://github.com/google/re2/wiki/Syntax>`_. The engine is designed to complete execution in linear time as well as limit the amount of memory used.

Envoy supports program size checking via runtime. The runtime keys `re2.max_program_size.error_level` and `re2.max_program_size.warn_level` can be set to integers as the maximum program size or complexity that a compiled regex can have before an exception is thrown or a warning is logged, respectively. `re2.max_program_size.error_level` defaults to 100, and `re2.max_program_size.warn_level` has no default if unset (will not check/log a warning).

Envoy emits two stats for tracking the program size of regexes: the histogram `re2.program_size`, which records the program size, and the counter `re2.exceeded_warn_level`, which is incremented each time the program size exceeds the warn level threshold.

func (*RegexMatcher_GoogleRE2) Descriptor Uses

func (*RegexMatcher_GoogleRE2) Descriptor() ([]byte, []int)

Deprecated: Use RegexMatcher_GoogleRE2.ProtoReflect.Descriptor instead.

func (*RegexMatcher_GoogleRE2) GetMaxProgramSize Uses

func (x *RegexMatcher_GoogleRE2) GetMaxProgramSize() *wrappers.UInt32Value

Deprecated: Do not use.

func (*RegexMatcher_GoogleRE2) ProtoMessage Uses

func (*RegexMatcher_GoogleRE2) ProtoMessage()

func (*RegexMatcher_GoogleRE2) ProtoReflect Uses

func (x *RegexMatcher_GoogleRE2) ProtoReflect() protoreflect.Message

func (*RegexMatcher_GoogleRE2) Reset Uses

func (x *RegexMatcher_GoogleRE2) Reset()

func (*RegexMatcher_GoogleRE2) String Uses

func (x *RegexMatcher_GoogleRE2) String() string

func (*RegexMatcher_GoogleRE2) Validate Uses

func (m *RegexMatcher_GoogleRE2) Validate() error

Validate checks the field values on RegexMatcher_GoogleRE2 with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RegexMatcher_GoogleRE2ValidationError Uses

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

RegexMatcher_GoogleRE2ValidationError is the validation error returned by RegexMatcher_GoogleRE2.Validate if the designated constraints aren't met.

func (RegexMatcher_GoogleRE2ValidationError) Cause Uses

func (e RegexMatcher_GoogleRE2ValidationError) Cause() error

Cause function returns cause value.

func (RegexMatcher_GoogleRE2ValidationError) Error Uses

func (e RegexMatcher_GoogleRE2ValidationError) Error() string

Error satisfies the builtin error interface

func (RegexMatcher_GoogleRE2ValidationError) ErrorName Uses

func (e RegexMatcher_GoogleRE2ValidationError) ErrorName() string

ErrorName returns error name.

func (RegexMatcher_GoogleRE2ValidationError) Field Uses

func (e RegexMatcher_GoogleRE2ValidationError) Field() string

Field function returns field value.

func (RegexMatcher_GoogleRE2ValidationError) Key Uses

func (e RegexMatcher_GoogleRE2ValidationError) Key() bool

Key function returns key value.

func (RegexMatcher_GoogleRE2ValidationError) Reason Uses

func (e RegexMatcher_GoogleRE2ValidationError) Reason() string

Reason function returns reason value.

type RegexMatcher_GoogleRe2 Uses

type RegexMatcher_GoogleRe2 struct {
    // Google's RE2 regex engine.
    GoogleRe2 *RegexMatcher_GoogleRE2 `protobuf:"bytes,1,opt,name=google_re2,json=googleRe2,proto3,oneof"`
}

type StringMatcher Uses

type StringMatcher struct {

    // Types that are assignable to MatchPattern:
    //	*StringMatcher_Exact
    //	*StringMatcher_Prefix
    //	*StringMatcher_Suffix
    //	*StringMatcher_SafeRegex
    //	*StringMatcher_Contains
    //	*StringMatcher_HiddenEnvoyDeprecatedRegex
    MatchPattern isStringMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
    // If true, indicates the exact/prefix/suffix matching should be case insensitive. This has no
    // effect for the safe_regex match.
    // For example, the matcher *data* will match both input string *Data* and *data* if set to true.
    IgnoreCase bool `protobuf:"varint,6,opt,name=ignore_case,json=ignoreCase,proto3" json:"ignore_case,omitempty"`
    // contains filtered or unexported fields
}

Specifies the way to match a string. [#next-free-field: 8]

func (*StringMatcher) Descriptor Uses

func (*StringMatcher) Descriptor() ([]byte, []int)

Deprecated: Use StringMatcher.ProtoReflect.Descriptor instead.

func (*StringMatcher) GetContains Uses

func (x *StringMatcher) GetContains() string

func (*StringMatcher) GetExact Uses

func (x *StringMatcher) GetExact() string

func (*StringMatcher) GetHiddenEnvoyDeprecatedRegex Uses

func (x *StringMatcher) GetHiddenEnvoyDeprecatedRegex() string

Deprecated: Do not use.

func (*StringMatcher) GetIgnoreCase Uses

func (x *StringMatcher) GetIgnoreCase() bool

func (*StringMatcher) GetMatchPattern Uses

func (m *StringMatcher) GetMatchPattern() isStringMatcher_MatchPattern

func (*StringMatcher) GetPrefix Uses

func (x *StringMatcher) GetPrefix() string

func (*StringMatcher) GetSafeRegex Uses

func (x *StringMatcher) GetSafeRegex() *RegexMatcher

func (*StringMatcher) GetSuffix Uses

func (x *StringMatcher) GetSuffix() string

func (*StringMatcher) ProtoMessage Uses

func (*StringMatcher) ProtoMessage()

func (*StringMatcher) ProtoReflect Uses

func (x *StringMatcher) ProtoReflect() protoreflect.Message

func (*StringMatcher) Reset Uses

func (x *StringMatcher) Reset()

func (*StringMatcher) String Uses

func (x *StringMatcher) String() string

func (*StringMatcher) Validate Uses

func (m *StringMatcher) Validate() error

Validate checks the field values on StringMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type StringMatcherValidationError Uses

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

StringMatcherValidationError is the validation error returned by StringMatcher.Validate if the designated constraints aren't met.

func (StringMatcherValidationError) Cause Uses

func (e StringMatcherValidationError) Cause() error

Cause function returns cause value.

func (StringMatcherValidationError) Error Uses

func (e StringMatcherValidationError) Error() string

Error satisfies the builtin error interface

func (StringMatcherValidationError) ErrorName Uses

func (e StringMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (StringMatcherValidationError) Field Uses

func (e StringMatcherValidationError) Field() string

Field function returns field value.

func (StringMatcherValidationError) Key Uses

func (e StringMatcherValidationError) Key() bool

Key function returns key value.

func (StringMatcherValidationError) Reason Uses

func (e StringMatcherValidationError) Reason() string

Reason function returns reason value.

type StringMatcher_Contains Uses

type StringMatcher_Contains struct {
    // The input string must have the substring specified here.
    // Note: empty contains match is not allowed, please use regex instead.
    //
    // Examples:
    //
    // * *abc* matches the value *xyz.abc.def*
    Contains string `protobuf:"bytes,7,opt,name=contains,proto3,oneof"`
}

type StringMatcher_Exact Uses

type StringMatcher_Exact struct {
    // The input string must match exactly the string specified here.
    //
    // Examples:
    //
    // * *abc* only matches the value *abc*.
    Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
}

type StringMatcher_HiddenEnvoyDeprecatedRegex Uses

type StringMatcher_HiddenEnvoyDeprecatedRegex struct {
    // Deprecated: Do not use.
    HiddenEnvoyDeprecatedRegex string `protobuf:"bytes,4,opt,name=hidden_envoy_deprecated_regex,json=hiddenEnvoyDeprecatedRegex,proto3,oneof"`
}

type StringMatcher_Prefix Uses

type StringMatcher_Prefix struct {
    // The input string must have the prefix specified here.
    // Note: empty prefix is not allowed, please use regex instead.
    //
    // Examples:
    //
    // * *abc* matches the value *abc.xyz*
    Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"`
}

type StringMatcher_SafeRegex Uses

type StringMatcher_SafeRegex struct {
    // The input string must match the regular expression specified here.
    SafeRegex *RegexMatcher `protobuf:"bytes,5,opt,name=safe_regex,json=safeRegex,proto3,oneof"`
}

type StringMatcher_Suffix Uses

type StringMatcher_Suffix struct {
    // The input string must have the suffix specified here.
    // Note: empty prefix is not allowed, please use regex instead.
    //
    // Examples:
    //
    // * *abc* matches the value *xyz.abc*
    Suffix string `protobuf:"bytes,3,opt,name=suffix,proto3,oneof"`
}

type StructMatcher Uses

type StructMatcher struct {

    // The path to retrieve the Value from the Struct.
    Path []*StructMatcher_PathSegment `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"`
    // The StructMatcher is matched if the value retrieved by path is matched to this value.
    Value *ValueMatcher `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
    // contains filtered or unexported fields
}

StructMatcher provides a general interface to check if a given value is matched in google.protobuf.Struct. It uses `path` to retrieve the value from the struct and then check if it's matched to the specified value.

For example, for the following Struct:

.. code-block:: yaml

fields:
  a:
    struct_value:
      fields:
        b:
          struct_value:
            fields:
              c:
                string_value: pro
        t:
          list_value:
            values:
              - string_value: m
              - string_value: n

The following MetadataMatcher is matched as the path [a, b, c] will retrieve a string value "pro" from the Metadata which is matched to the specified prefix match.

.. code-block:: yaml

path:
- key: a
- key: b
- key: c
value:
  string_match:
    prefix: pr

The following StructMatcher is matched as the code will match one of the string values in the list at the path [a, t].

.. code-block:: yaml

path:
- key: a
- key: t
value:
  list_match:
    one_of:
      string_match:
        exact: m

An example use of StructMatcher is to match metadata in envoy.v*.core.Node.

func (*StructMatcher) Descriptor Uses

func (*StructMatcher) Descriptor() ([]byte, []int)

Deprecated: Use StructMatcher.ProtoReflect.Descriptor instead.

func (*StructMatcher) GetPath Uses

func (x *StructMatcher) GetPath() []*StructMatcher_PathSegment

func (*StructMatcher) GetValue Uses

func (x *StructMatcher) GetValue() *ValueMatcher

func (*StructMatcher) ProtoMessage Uses

func (*StructMatcher) ProtoMessage()

func (*StructMatcher) ProtoReflect Uses

func (x *StructMatcher) ProtoReflect() protoreflect.Message

func (*StructMatcher) Reset Uses

func (x *StructMatcher) Reset()

func (*StructMatcher) String Uses

func (x *StructMatcher) String() string

func (*StructMatcher) Validate Uses

func (m *StructMatcher) Validate() error

Validate checks the field values on StructMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type StructMatcherValidationError Uses

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

StructMatcherValidationError is the validation error returned by StructMatcher.Validate if the designated constraints aren't met.

func (StructMatcherValidationError) Cause Uses

func (e StructMatcherValidationError) Cause() error

Cause function returns cause value.

func (StructMatcherValidationError) Error Uses

func (e StructMatcherValidationError) Error() string

Error satisfies the builtin error interface

func (StructMatcherValidationError) ErrorName Uses

func (e StructMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (StructMatcherValidationError) Field Uses

func (e StructMatcherValidationError) Field() string

Field function returns field value.

func (StructMatcherValidationError) Key Uses

func (e StructMatcherValidationError) Key() bool

Key function returns key value.

func (StructMatcherValidationError) Reason Uses

func (e StructMatcherValidationError) Reason() string

Reason function returns reason value.

type StructMatcher_PathSegment Uses

type StructMatcher_PathSegment struct {

    // Types that are assignable to Segment:
    //	*StructMatcher_PathSegment_Key
    Segment isStructMatcher_PathSegment_Segment `protobuf_oneof:"segment"`
    // contains filtered or unexported fields
}

Specifies the segment in a path to retrieve value from Struct.

func (*StructMatcher_PathSegment) Descriptor Uses

func (*StructMatcher_PathSegment) Descriptor() ([]byte, []int)

Deprecated: Use StructMatcher_PathSegment.ProtoReflect.Descriptor instead.

func (*StructMatcher_PathSegment) GetKey Uses

func (x *StructMatcher_PathSegment) GetKey() string

func (*StructMatcher_PathSegment) GetSegment Uses

func (m *StructMatcher_PathSegment) GetSegment() isStructMatcher_PathSegment_Segment

func (*StructMatcher_PathSegment) ProtoMessage Uses

func (*StructMatcher_PathSegment) ProtoMessage()

func (*StructMatcher_PathSegment) ProtoReflect Uses

func (x *StructMatcher_PathSegment) ProtoReflect() protoreflect.Message

func (*StructMatcher_PathSegment) Reset Uses

func (x *StructMatcher_PathSegment) Reset()

func (*StructMatcher_PathSegment) String Uses

func (x *StructMatcher_PathSegment) String() string

func (*StructMatcher_PathSegment) Validate Uses

func (m *StructMatcher_PathSegment) Validate() error

Validate checks the field values on StructMatcher_PathSegment with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type StructMatcher_PathSegmentValidationError Uses

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

StructMatcher_PathSegmentValidationError is the validation error returned by StructMatcher_PathSegment.Validate if the designated constraints aren't met.

func (StructMatcher_PathSegmentValidationError) Cause Uses

func (e StructMatcher_PathSegmentValidationError) Cause() error

Cause function returns cause value.

func (StructMatcher_PathSegmentValidationError) Error Uses

func (e StructMatcher_PathSegmentValidationError) Error() string

Error satisfies the builtin error interface

func (StructMatcher_PathSegmentValidationError) ErrorName Uses

func (e StructMatcher_PathSegmentValidationError) ErrorName() string

ErrorName returns error name.

func (StructMatcher_PathSegmentValidationError) Field Uses

func (e StructMatcher_PathSegmentValidationError) Field() string

Field function returns field value.

func (StructMatcher_PathSegmentValidationError) Key Uses

func (e StructMatcher_PathSegmentValidationError) Key() bool

Key function returns key value.

func (StructMatcher_PathSegmentValidationError) Reason Uses

func (e StructMatcher_PathSegmentValidationError) Reason() string

Reason function returns reason value.

type StructMatcher_PathSegment_Key Uses

type StructMatcher_PathSegment_Key struct {
    // If specified, use the key to retrieve the value in a Struct.
    Key string `protobuf:"bytes,1,opt,name=key,proto3,oneof"`
}

type ValueMatcher Uses

type ValueMatcher struct {

    // Specifies how to match a value.
    //
    // Types that are assignable to MatchPattern:
    //	*ValueMatcher_NullMatch_
    //	*ValueMatcher_DoubleMatch
    //	*ValueMatcher_StringMatch
    //	*ValueMatcher_BoolMatch
    //	*ValueMatcher_PresentMatch
    //	*ValueMatcher_ListMatch
    MatchPattern isValueMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
    // contains filtered or unexported fields
}

Specifies the way to match a ProtobufWkt::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 7]

func (*ValueMatcher) Descriptor Uses

func (*ValueMatcher) Descriptor() ([]byte, []int)

Deprecated: Use ValueMatcher.ProtoReflect.Descriptor instead.

func (*ValueMatcher) GetBoolMatch Uses

func (x *ValueMatcher) GetBoolMatch() bool

func (*ValueMatcher) GetDoubleMatch Uses

func (x *ValueMatcher) GetDoubleMatch() *DoubleMatcher

func (*ValueMatcher) GetListMatch Uses

func (x *ValueMatcher) GetListMatch() *ListMatcher

func (*ValueMatcher) GetMatchPattern Uses

func (m *ValueMatcher) GetMatchPattern() isValueMatcher_MatchPattern

func (*ValueMatcher) GetNullMatch Uses

func (x *ValueMatcher) GetNullMatch() *ValueMatcher_NullMatch

func (*ValueMatcher) GetPresentMatch Uses

func (x *ValueMatcher) GetPresentMatch() bool

func (*ValueMatcher) GetStringMatch Uses

func (x *ValueMatcher) GetStringMatch() *StringMatcher

func (*ValueMatcher) ProtoMessage Uses

func (*ValueMatcher) ProtoMessage()

func (*ValueMatcher) ProtoReflect Uses

func (x *ValueMatcher) ProtoReflect() protoreflect.Message

func (*ValueMatcher) Reset Uses

func (x *ValueMatcher) Reset()

func (*ValueMatcher) String Uses

func (x *ValueMatcher) String() string

func (*ValueMatcher) Validate Uses

func (m *ValueMatcher) Validate() error

Validate checks the field values on ValueMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ValueMatcherValidationError Uses

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

ValueMatcherValidationError is the validation error returned by ValueMatcher.Validate if the designated constraints aren't met.

func (ValueMatcherValidationError) Cause Uses

func (e ValueMatcherValidationError) Cause() error

Cause function returns cause value.

func (ValueMatcherValidationError) Error Uses

func (e ValueMatcherValidationError) Error() string

Error satisfies the builtin error interface

func (ValueMatcherValidationError) ErrorName Uses

func (e ValueMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (ValueMatcherValidationError) Field Uses

func (e ValueMatcherValidationError) Field() string

Field function returns field value.

func (ValueMatcherValidationError) Key Uses

func (e ValueMatcherValidationError) Key() bool

Key function returns key value.

func (ValueMatcherValidationError) Reason Uses

func (e ValueMatcherValidationError) Reason() string

Reason function returns reason value.

type ValueMatcher_BoolMatch Uses

type ValueMatcher_BoolMatch struct {
    // If specified, a match occurs if and only if the target value is a bool value and is equal
    // to this field.
    BoolMatch bool `protobuf:"varint,4,opt,name=bool_match,json=boolMatch,proto3,oneof"`
}

type ValueMatcher_DoubleMatch Uses

type ValueMatcher_DoubleMatch struct {
    // If specified, a match occurs if and only if the target value is a double value and is
    // matched to this field.
    DoubleMatch *DoubleMatcher `protobuf:"bytes,2,opt,name=double_match,json=doubleMatch,proto3,oneof"`
}

type ValueMatcher_ListMatch Uses

type ValueMatcher_ListMatch struct {
    // If specified, a match occurs if and only if the target value is a list value and
    // is matched to this field.
    ListMatch *ListMatcher `protobuf:"bytes,6,opt,name=list_match,json=listMatch,proto3,oneof"`
}

type ValueMatcher_NullMatch Uses

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

NullMatch is an empty message to specify a null value.

func (*ValueMatcher_NullMatch) Descriptor Uses

func (*ValueMatcher_NullMatch) Descriptor() ([]byte, []int)

Deprecated: Use ValueMatcher_NullMatch.ProtoReflect.Descriptor instead.

func (*ValueMatcher_NullMatch) ProtoMessage Uses

func (*ValueMatcher_NullMatch) ProtoMessage()

func (*ValueMatcher_NullMatch) ProtoReflect Uses

func (x *ValueMatcher_NullMatch) ProtoReflect() protoreflect.Message

func (*ValueMatcher_NullMatch) Reset Uses

func (x *ValueMatcher_NullMatch) Reset()

func (*ValueMatcher_NullMatch) String Uses

func (x *ValueMatcher_NullMatch) String() string

func (*ValueMatcher_NullMatch) Validate Uses

func (m *ValueMatcher_NullMatch) Validate() error

Validate checks the field values on ValueMatcher_NullMatch with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ValueMatcher_NullMatchValidationError Uses

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

ValueMatcher_NullMatchValidationError is the validation error returned by ValueMatcher_NullMatch.Validate if the designated constraints aren't met.

func (ValueMatcher_NullMatchValidationError) Cause Uses

func (e ValueMatcher_NullMatchValidationError) Cause() error

Cause function returns cause value.

func (ValueMatcher_NullMatchValidationError) Error Uses

func (e ValueMatcher_NullMatchValidationError) Error() string

Error satisfies the builtin error interface

func (ValueMatcher_NullMatchValidationError) ErrorName Uses

func (e ValueMatcher_NullMatchValidationError) ErrorName() string

ErrorName returns error name.

func (ValueMatcher_NullMatchValidationError) Field Uses

func (e ValueMatcher_NullMatchValidationError) Field() string

Field function returns field value.

func (ValueMatcher_NullMatchValidationError) Key Uses

func (e ValueMatcher_NullMatchValidationError) Key() bool

Key function returns key value.

func (ValueMatcher_NullMatchValidationError) Reason Uses

func (e ValueMatcher_NullMatchValidationError) Reason() string

Reason function returns reason value.

type ValueMatcher_NullMatch_ Uses

type ValueMatcher_NullMatch_ struct {
    // If specified, a match occurs if and only if the target value is a NullValue.
    NullMatch *ValueMatcher_NullMatch `protobuf:"bytes,1,opt,name=null_match,json=nullMatch,proto3,oneof"`
}

type ValueMatcher_PresentMatch Uses

type ValueMatcher_PresentMatch struct {
    // If specified, value match will be performed based on whether the path is referring to a
    // valid primitive value in the metadata. If the path is referring to a non-primitive value,
    // the result is always not matched.
    PresentMatch bool `protobuf:"varint,5,opt,name=present_match,json=presentMatch,proto3,oneof"`
}

type ValueMatcher_StringMatch Uses

type ValueMatcher_StringMatch struct {
    // If specified, a match occurs if and only if the target value is a string value and is
    // matched to this field.
    StringMatch *StringMatcher `protobuf:"bytes,3,opt,name=string_match,json=stringMatch,proto3,oneof"`
}

Package envoy_type_matcher_v3 imports 21 packages (graph) and is imported by 51 packages. Updated 2021-01-15. Refresh now. Tools for package owners.