matcherv3

package
v1.36.3-20240607202304... Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const HttpGenericBodyMatch_GenericTextMatch_BinaryMatch_case case_HttpGenericBodyMatch_GenericTextMatch_Rule = 2
View Source
const HttpGenericBodyMatch_GenericTextMatch_Rule_not_set_case case_HttpGenericBodyMatch_GenericTextMatch_Rule = 0
View Source
const HttpGenericBodyMatch_GenericTextMatch_StringMatch_case case_HttpGenericBodyMatch_GenericTextMatch_Rule = 1
View Source
const MatchPredicate_AndMatch_case case_MatchPredicate_Rule = 2
View Source
const MatchPredicate_AnyMatch_case case_MatchPredicate_Rule = 4
View Source
const MatchPredicate_HttpRequestGenericBodyMatch_case case_MatchPredicate_Rule = 9
View Source
const MatchPredicate_HttpRequestHeadersMatch_case case_MatchPredicate_Rule = 5
View Source
const MatchPredicate_HttpRequestTrailersMatch_case case_MatchPredicate_Rule = 6
View Source
const MatchPredicate_HttpResponseGenericBodyMatch_case case_MatchPredicate_Rule = 10
View Source
const MatchPredicate_HttpResponseHeadersMatch_case case_MatchPredicate_Rule = 7
View Source
const MatchPredicate_HttpResponseTrailersMatch_case case_MatchPredicate_Rule = 8
View Source
const MatchPredicate_NotMatch_case case_MatchPredicate_Rule = 3
View Source
const MatchPredicate_OrMatch_case case_MatchPredicate_Rule = 1
View Source
const MatchPredicate_Rule_not_set_case case_MatchPredicate_Rule = 0
View Source
const Matcher_MatcherList_Predicate_AndMatcher_case case_Matcher_MatcherList_Predicate_MatchType = 3
View Source
const Matcher_MatcherList_Predicate_MatchType_not_set_case case_Matcher_MatcherList_Predicate_MatchType = 0
View Source
const Matcher_MatcherList_Predicate_NotMatcher_case case_Matcher_MatcherList_Predicate_MatchType = 4
View Source
const Matcher_MatcherList_Predicate_OrMatcher_case case_Matcher_MatcherList_Predicate_MatchType = 2
View Source
const Matcher_MatcherList_Predicate_SinglePredicate_CustomMatch_case case_Matcher_MatcherList_Predicate_SinglePredicate_Matcher = 3
View Source
const Matcher_MatcherList_Predicate_SinglePredicate_Matcher_not_set_case case_Matcher_MatcherList_Predicate_SinglePredicate_Matcher = 0
View Source
const Matcher_MatcherList_Predicate_SinglePredicate_ValueMatch_case case_Matcher_MatcherList_Predicate_SinglePredicate_Matcher = 2
View Source
const Matcher_MatcherList_Predicate_SinglePredicate_case case_Matcher_MatcherList_Predicate_MatchType = 1
View Source
const Matcher_MatcherList_case case_Matcher_MatcherType = 1
View Source
const Matcher_MatcherTree_CustomMatch_case case_Matcher_MatcherTree_TreeType = 4
View Source
const Matcher_MatcherTree_ExactMatchMap_case case_Matcher_MatcherTree_TreeType = 2
View Source
const Matcher_MatcherTree_PrefixMatchMap_case case_Matcher_MatcherTree_TreeType = 3
View Source
const Matcher_MatcherTree_TreeType_not_set_case case_Matcher_MatcherTree_TreeType = 0
View Source
const Matcher_MatcherTree_case case_Matcher_MatcherType = 2
View Source
const Matcher_MatcherType_not_set_case case_Matcher_MatcherType = 0
View Source
const Matcher_OnMatch_Action_case case_Matcher_OnMatch_OnMatch = 2
View Source
const Matcher_OnMatch_Matcher_case case_Matcher_OnMatch_OnMatch = 1
View Source
const Matcher_OnMatch_OnMatch_not_set_case case_Matcher_OnMatch_OnMatch = 0

Variables

View Source
var File_envoy_config_common_matcher_v3_matcher_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HttpGenericBodyMatch

type HttpGenericBodyMatch struct {

	// Limits search to specified number of bytes - default zero (no limit - match entire captured buffer).
	BytesLimit uint32 `protobuf:"varint,1,opt,name=bytes_limit,json=bytesLimit,proto3" json:"bytes_limit,omitempty"`
	// List of patterns to match.
	Patterns []*HttpGenericBodyMatch_GenericTextMatch `protobuf:"bytes,2,rep,name=patterns,proto3" json:"patterns,omitempty"`
	// contains filtered or unexported fields
}

HTTP generic body match configuration. List of text strings and hex strings to be located in HTTP body. All specified strings must be found in the HTTP body for positive match. The search may be limited to specified number of bytes from the body start.

.. attention::

Searching for patterns in HTTP body is potentially cpu intensive. For each specified pattern, http body is scanned byte by byte to find a match.
If multiple patterns are specified, the process is repeated for each pattern. If location of a pattern is known, ``bytes_limit`` should be specified
to scan only part of the http body.

func (*HttpGenericBodyMatch) GetBytesLimit

func (x *HttpGenericBodyMatch) GetBytesLimit() uint32

func (*HttpGenericBodyMatch) GetPatterns

func (*HttpGenericBodyMatch) ProtoMessage

func (*HttpGenericBodyMatch) ProtoMessage()

func (*HttpGenericBodyMatch) ProtoReflect

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

func (*HttpGenericBodyMatch) Reset

func (x *HttpGenericBodyMatch) Reset()

func (*HttpGenericBodyMatch) SetBytesLimit

func (x *HttpGenericBodyMatch) SetBytesLimit(v uint32)

func (*HttpGenericBodyMatch) SetPatterns

func (*HttpGenericBodyMatch) String

func (x *HttpGenericBodyMatch) String() string

type HttpGenericBodyMatch_GenericTextMatch

type HttpGenericBodyMatch_GenericTextMatch struct {

	// Types that are valid to be assigned to Rule:
	//
	//	*HttpGenericBodyMatch_GenericTextMatch_StringMatch
	//	*HttpGenericBodyMatch_GenericTextMatch_BinaryMatch
	Rule isHttpGenericBodyMatch_GenericTextMatch_Rule `protobuf_oneof:"rule"`
	// contains filtered or unexported fields
}

func (*HttpGenericBodyMatch_GenericTextMatch) ClearBinaryMatch

func (x *HttpGenericBodyMatch_GenericTextMatch) ClearBinaryMatch()

func (*HttpGenericBodyMatch_GenericTextMatch) ClearRule

func (*HttpGenericBodyMatch_GenericTextMatch) ClearStringMatch

func (x *HttpGenericBodyMatch_GenericTextMatch) ClearStringMatch()

func (*HttpGenericBodyMatch_GenericTextMatch) GetBinaryMatch

func (x *HttpGenericBodyMatch_GenericTextMatch) GetBinaryMatch() []byte

func (*HttpGenericBodyMatch_GenericTextMatch) GetRule

func (x *HttpGenericBodyMatch_GenericTextMatch) GetRule() isHttpGenericBodyMatch_GenericTextMatch_Rule

func (*HttpGenericBodyMatch_GenericTextMatch) GetStringMatch

func (x *HttpGenericBodyMatch_GenericTextMatch) GetStringMatch() string

func (*HttpGenericBodyMatch_GenericTextMatch) HasBinaryMatch

func (x *HttpGenericBodyMatch_GenericTextMatch) HasBinaryMatch() bool

func (*HttpGenericBodyMatch_GenericTextMatch) HasRule

func (*HttpGenericBodyMatch_GenericTextMatch) HasStringMatch

func (x *HttpGenericBodyMatch_GenericTextMatch) HasStringMatch() bool

func (*HttpGenericBodyMatch_GenericTextMatch) ProtoMessage

func (*HttpGenericBodyMatch_GenericTextMatch) ProtoMessage()

func (*HttpGenericBodyMatch_GenericTextMatch) ProtoReflect

func (*HttpGenericBodyMatch_GenericTextMatch) Reset

func (*HttpGenericBodyMatch_GenericTextMatch) SetBinaryMatch

func (x *HttpGenericBodyMatch_GenericTextMatch) SetBinaryMatch(v []byte)

func (*HttpGenericBodyMatch_GenericTextMatch) SetStringMatch

func (x *HttpGenericBodyMatch_GenericTextMatch) SetStringMatch(v string)

func (*HttpGenericBodyMatch_GenericTextMatch) String

func (*HttpGenericBodyMatch_GenericTextMatch) WhichRule

func (x *HttpGenericBodyMatch_GenericTextMatch) WhichRule() case_HttpGenericBodyMatch_GenericTextMatch_Rule

type HttpGenericBodyMatch_GenericTextMatch_BinaryMatch

type HttpGenericBodyMatch_GenericTextMatch_BinaryMatch struct {
	// Sequence of bytes to be located in HTTP body.
	BinaryMatch []byte `protobuf:"bytes,2,opt,name=binary_match,json=binaryMatch,proto3,oneof"`
}

type HttpGenericBodyMatch_GenericTextMatch_StringMatch

type HttpGenericBodyMatch_GenericTextMatch_StringMatch struct {
	// Text string to be located in HTTP body.
	StringMatch string `protobuf:"bytes,1,opt,name=string_match,json=stringMatch,proto3,oneof"`
}

type HttpGenericBodyMatch_GenericTextMatch_builder

type HttpGenericBodyMatch_GenericTextMatch_builder struct {

	// Fields of oneof Rule:
	// Text string to be located in HTTP body.
	StringMatch *string
	// Sequence of bytes to be located in HTTP body.
	BinaryMatch []byte
	// contains filtered or unexported fields
}

func (HttpGenericBodyMatch_GenericTextMatch_builder) Build

type HttpGenericBodyMatch_builder

type HttpGenericBodyMatch_builder struct {

	// Limits search to specified number of bytes - default zero (no limit - match entire captured buffer).
	BytesLimit uint32
	// List of patterns to match.
	Patterns []*HttpGenericBodyMatch_GenericTextMatch
	// contains filtered or unexported fields
}

func (HttpGenericBodyMatch_builder) Build

type HttpHeadersMatch

type HttpHeadersMatch struct {

	// HTTP headers to match.
	Headers []*v3.HeaderMatcher `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

HTTP headers match configuration.

func (*HttpHeadersMatch) GetHeaders

func (x *HttpHeadersMatch) GetHeaders() []*v3.HeaderMatcher

func (*HttpHeadersMatch) ProtoMessage

func (*HttpHeadersMatch) ProtoMessage()

func (*HttpHeadersMatch) ProtoReflect

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

func (*HttpHeadersMatch) Reset

func (x *HttpHeadersMatch) Reset()

func (*HttpHeadersMatch) SetHeaders

func (x *HttpHeadersMatch) SetHeaders(v []*v3.HeaderMatcher)

func (*HttpHeadersMatch) String

func (x *HttpHeadersMatch) String() string

type HttpHeadersMatch_builder

type HttpHeadersMatch_builder struct {

	// HTTP headers to match.
	Headers []*v3.HeaderMatcher
	// contains filtered or unexported fields
}

func (HttpHeadersMatch_builder) Build

type MatchPredicate

type MatchPredicate struct {

	// Types that are valid to be assigned to Rule:
	//
	//	*MatchPredicate_OrMatch
	//	*MatchPredicate_AndMatch
	//	*MatchPredicate_NotMatch
	//	*MatchPredicate_AnyMatch
	//	*MatchPredicate_HttpRequestHeadersMatch
	//	*MatchPredicate_HttpRequestTrailersMatch
	//	*MatchPredicate_HttpResponseHeadersMatch
	//	*MatchPredicate_HttpResponseTrailersMatch
	//	*MatchPredicate_HttpRequestGenericBodyMatch
	//	*MatchPredicate_HttpResponseGenericBodyMatch
	Rule isMatchPredicate_Rule `protobuf_oneof:"rule"`
	// contains filtered or unexported fields
}

Match configuration. This is a recursive structure which allows complex nested match configurations to be built using various logical operators. [#next-free-field: 11]

func (*MatchPredicate) ClearAndMatch

func (x *MatchPredicate) ClearAndMatch()

func (*MatchPredicate) ClearAnyMatch

func (x *MatchPredicate) ClearAnyMatch()

func (*MatchPredicate) ClearHttpRequestGenericBodyMatch

func (x *MatchPredicate) ClearHttpRequestGenericBodyMatch()

func (*MatchPredicate) ClearHttpRequestHeadersMatch

func (x *MatchPredicate) ClearHttpRequestHeadersMatch()

func (*MatchPredicate) ClearHttpRequestTrailersMatch

func (x *MatchPredicate) ClearHttpRequestTrailersMatch()

func (*MatchPredicate) ClearHttpResponseGenericBodyMatch

func (x *MatchPredicate) ClearHttpResponseGenericBodyMatch()

func (*MatchPredicate) ClearHttpResponseHeadersMatch

func (x *MatchPredicate) ClearHttpResponseHeadersMatch()

func (*MatchPredicate) ClearHttpResponseTrailersMatch

func (x *MatchPredicate) ClearHttpResponseTrailersMatch()

func (*MatchPredicate) ClearNotMatch

func (x *MatchPredicate) ClearNotMatch()

func (*MatchPredicate) ClearOrMatch

func (x *MatchPredicate) ClearOrMatch()

func (*MatchPredicate) ClearRule

func (x *MatchPredicate) ClearRule()

func (*MatchPredicate) GetAndMatch

func (x *MatchPredicate) GetAndMatch() *MatchPredicate_MatchSet

func (*MatchPredicate) GetAnyMatch

func (x *MatchPredicate) GetAnyMatch() bool

func (*MatchPredicate) GetHttpRequestGenericBodyMatch

func (x *MatchPredicate) GetHttpRequestGenericBodyMatch() *HttpGenericBodyMatch

func (*MatchPredicate) GetHttpRequestHeadersMatch

func (x *MatchPredicate) GetHttpRequestHeadersMatch() *HttpHeadersMatch

func (*MatchPredicate) GetHttpRequestTrailersMatch

func (x *MatchPredicate) GetHttpRequestTrailersMatch() *HttpHeadersMatch

func (*MatchPredicate) GetHttpResponseGenericBodyMatch

func (x *MatchPredicate) GetHttpResponseGenericBodyMatch() *HttpGenericBodyMatch

func (*MatchPredicate) GetHttpResponseHeadersMatch

func (x *MatchPredicate) GetHttpResponseHeadersMatch() *HttpHeadersMatch

func (*MatchPredicate) GetHttpResponseTrailersMatch

func (x *MatchPredicate) GetHttpResponseTrailersMatch() *HttpHeadersMatch

func (*MatchPredicate) GetNotMatch

func (x *MatchPredicate) GetNotMatch() *MatchPredicate

func (*MatchPredicate) GetOrMatch

func (x *MatchPredicate) GetOrMatch() *MatchPredicate_MatchSet

func (*MatchPredicate) GetRule

func (x *MatchPredicate) GetRule() isMatchPredicate_Rule

func (*MatchPredicate) HasAndMatch

func (x *MatchPredicate) HasAndMatch() bool

func (*MatchPredicate) HasAnyMatch

func (x *MatchPredicate) HasAnyMatch() bool

func (*MatchPredicate) HasHttpRequestGenericBodyMatch

func (x *MatchPredicate) HasHttpRequestGenericBodyMatch() bool

func (*MatchPredicate) HasHttpRequestHeadersMatch

func (x *MatchPredicate) HasHttpRequestHeadersMatch() bool

func (*MatchPredicate) HasHttpRequestTrailersMatch

func (x *MatchPredicate) HasHttpRequestTrailersMatch() bool

func (*MatchPredicate) HasHttpResponseGenericBodyMatch

func (x *MatchPredicate) HasHttpResponseGenericBodyMatch() bool

func (*MatchPredicate) HasHttpResponseHeadersMatch

func (x *MatchPredicate) HasHttpResponseHeadersMatch() bool

func (*MatchPredicate) HasHttpResponseTrailersMatch

func (x *MatchPredicate) HasHttpResponseTrailersMatch() bool

func (*MatchPredicate) HasNotMatch

func (x *MatchPredicate) HasNotMatch() bool

func (*MatchPredicate) HasOrMatch

func (x *MatchPredicate) HasOrMatch() bool

func (*MatchPredicate) HasRule

func (x *MatchPredicate) HasRule() bool

func (*MatchPredicate) ProtoMessage

func (*MatchPredicate) ProtoMessage()

func (*MatchPredicate) ProtoReflect

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

func (*MatchPredicate) Reset

func (x *MatchPredicate) Reset()

func (*MatchPredicate) SetAndMatch

func (x *MatchPredicate) SetAndMatch(v *MatchPredicate_MatchSet)

func (*MatchPredicate) SetAnyMatch

func (x *MatchPredicate) SetAnyMatch(v bool)

func (*MatchPredicate) SetHttpRequestGenericBodyMatch

func (x *MatchPredicate) SetHttpRequestGenericBodyMatch(v *HttpGenericBodyMatch)

func (*MatchPredicate) SetHttpRequestHeadersMatch

func (x *MatchPredicate) SetHttpRequestHeadersMatch(v *HttpHeadersMatch)

func (*MatchPredicate) SetHttpRequestTrailersMatch

func (x *MatchPredicate) SetHttpRequestTrailersMatch(v *HttpHeadersMatch)

func (*MatchPredicate) SetHttpResponseGenericBodyMatch

func (x *MatchPredicate) SetHttpResponseGenericBodyMatch(v *HttpGenericBodyMatch)

func (*MatchPredicate) SetHttpResponseHeadersMatch

func (x *MatchPredicate) SetHttpResponseHeadersMatch(v *HttpHeadersMatch)

func (*MatchPredicate) SetHttpResponseTrailersMatch

func (x *MatchPredicate) SetHttpResponseTrailersMatch(v *HttpHeadersMatch)

func (*MatchPredicate) SetNotMatch

func (x *MatchPredicate) SetNotMatch(v *MatchPredicate)

func (*MatchPredicate) SetOrMatch

func (x *MatchPredicate) SetOrMatch(v *MatchPredicate_MatchSet)

func (*MatchPredicate) String

func (x *MatchPredicate) String() string

func (*MatchPredicate) WhichRule

func (x *MatchPredicate) WhichRule() case_MatchPredicate_Rule

type MatchPredicate_AndMatch

type MatchPredicate_AndMatch struct {
	// A set that describes a logical AND. If all members of the set match, the match configuration
	// matches.
	AndMatch *MatchPredicate_MatchSet `protobuf:"bytes,2,opt,name=and_match,json=andMatch,proto3,oneof"`
}

type MatchPredicate_AnyMatch

type MatchPredicate_AnyMatch struct {
	// The match configuration will always match.
	AnyMatch bool `protobuf:"varint,4,opt,name=any_match,json=anyMatch,proto3,oneof"`
}

type MatchPredicate_HttpRequestGenericBodyMatch

type MatchPredicate_HttpRequestGenericBodyMatch struct {
	// HTTP request generic body match configuration.
	HttpRequestGenericBodyMatch *HttpGenericBodyMatch `protobuf:"bytes,9,opt,name=http_request_generic_body_match,json=httpRequestGenericBodyMatch,proto3,oneof"`
}

type MatchPredicate_HttpRequestHeadersMatch

type MatchPredicate_HttpRequestHeadersMatch struct {
	// HTTP request headers match configuration.
	HttpRequestHeadersMatch *HttpHeadersMatch `protobuf:"bytes,5,opt,name=http_request_headers_match,json=httpRequestHeadersMatch,proto3,oneof"`
}

type MatchPredicate_HttpRequestTrailersMatch

type MatchPredicate_HttpRequestTrailersMatch struct {
	// HTTP request trailers match configuration.
	HttpRequestTrailersMatch *HttpHeadersMatch `protobuf:"bytes,6,opt,name=http_request_trailers_match,json=httpRequestTrailersMatch,proto3,oneof"`
}

type MatchPredicate_HttpResponseGenericBodyMatch

type MatchPredicate_HttpResponseGenericBodyMatch struct {
	// HTTP response generic body match configuration.
	HttpResponseGenericBodyMatch *HttpGenericBodyMatch `protobuf:"bytes,10,opt,name=http_response_generic_body_match,json=httpResponseGenericBodyMatch,proto3,oneof"`
}

type MatchPredicate_HttpResponseHeadersMatch

type MatchPredicate_HttpResponseHeadersMatch struct {
	// HTTP response headers match configuration.
	HttpResponseHeadersMatch *HttpHeadersMatch `protobuf:"bytes,7,opt,name=http_response_headers_match,json=httpResponseHeadersMatch,proto3,oneof"`
}

type MatchPredicate_HttpResponseTrailersMatch

type MatchPredicate_HttpResponseTrailersMatch struct {
	// HTTP response trailers match configuration.
	HttpResponseTrailersMatch *HttpHeadersMatch `protobuf:"bytes,8,opt,name=http_response_trailers_match,json=httpResponseTrailersMatch,proto3,oneof"`
}

type MatchPredicate_MatchSet

type MatchPredicate_MatchSet struct {

	// The list of rules that make up the set.
	Rules []*MatchPredicate `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

A set of match configurations used for logical operations.

func (*MatchPredicate_MatchSet) GetRules

func (x *MatchPredicate_MatchSet) GetRules() []*MatchPredicate

func (*MatchPredicate_MatchSet) ProtoMessage

func (*MatchPredicate_MatchSet) ProtoMessage()

func (*MatchPredicate_MatchSet) ProtoReflect

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

func (*MatchPredicate_MatchSet) Reset

func (x *MatchPredicate_MatchSet) Reset()

func (*MatchPredicate_MatchSet) SetRules

func (x *MatchPredicate_MatchSet) SetRules(v []*MatchPredicate)

func (*MatchPredicate_MatchSet) String

func (x *MatchPredicate_MatchSet) String() string

type MatchPredicate_MatchSet_builder

type MatchPredicate_MatchSet_builder struct {

	// The list of rules that make up the set.
	Rules []*MatchPredicate
	// contains filtered or unexported fields
}

func (MatchPredicate_MatchSet_builder) Build

type MatchPredicate_NotMatch

type MatchPredicate_NotMatch struct {
	// A negation match. The match configuration will match if the negated match condition matches.
	NotMatch *MatchPredicate `protobuf:"bytes,3,opt,name=not_match,json=notMatch,proto3,oneof"`
}

type MatchPredicate_OrMatch

type MatchPredicate_OrMatch struct {
	// A set that describes a logical OR. If any member of the set matches, the match configuration
	// matches.
	OrMatch *MatchPredicate_MatchSet `protobuf:"bytes,1,opt,name=or_match,json=orMatch,proto3,oneof"`
}

type MatchPredicate_builder

type MatchPredicate_builder struct {

	// Fields of oneof Rule:
	// A set that describes a logical OR. If any member of the set matches, the match configuration
	// matches.
	OrMatch *MatchPredicate_MatchSet
	// A set that describes a logical AND. If all members of the set match, the match configuration
	// matches.
	AndMatch *MatchPredicate_MatchSet
	// A negation match. The match configuration will match if the negated match condition matches.
	NotMatch *MatchPredicate
	// The match configuration will always match.
	AnyMatch *bool
	// HTTP request headers match configuration.
	HttpRequestHeadersMatch *HttpHeadersMatch
	// HTTP request trailers match configuration.
	HttpRequestTrailersMatch *HttpHeadersMatch
	// HTTP response headers match configuration.
	HttpResponseHeadersMatch *HttpHeadersMatch
	// HTTP response trailers match configuration.
	HttpResponseTrailersMatch *HttpHeadersMatch
	// HTTP request generic body match configuration.
	HttpRequestGenericBodyMatch *HttpGenericBodyMatch
	// HTTP response generic body match configuration.
	HttpResponseGenericBodyMatch *HttpGenericBodyMatch
	// contains filtered or unexported fields
}

func (MatchPredicate_builder) Build

type Matcher

type Matcher struct {

	// Types that are valid to be assigned to MatcherType:
	//
	//	*Matcher_MatcherList_
	//	*Matcher_MatcherTree_
	MatcherType isMatcher_MatcherType `protobuf_oneof:"matcher_type"`
	// Optional OnMatch to use if the matcher failed.
	// If specified, the OnMatch is used, and the matcher is considered
	// to have matched.
	// If not specified, the matcher is considered not to have matched.
	OnNoMatch *Matcher_OnMatch `protobuf:"bytes,3,opt,name=on_no_match,json=onNoMatch,proto3" json:"on_no_match,omitempty"`
	// contains filtered or unexported fields
}

A matcher, which may traverse a matching tree in order to result in a match action. During matching, the tree will be traversed until a match is found, or if no match is found the action specified by the most specific on_no_match will be evaluated. As an on_no_match might result in another matching tree being evaluated, this process might repeat several times until the final OnMatch (or no match) is decided.

.. note::

Please use the syntactically equivalent :ref:`matching API <envoy_v3_api_msg_.xds.type.matcher.v3.Matcher>`

func (*Matcher) ClearMatcherList

func (x *Matcher) ClearMatcherList()

func (*Matcher) ClearMatcherTree

func (x *Matcher) ClearMatcherTree()

func (*Matcher) ClearMatcherType

func (x *Matcher) ClearMatcherType()

func (*Matcher) ClearOnNoMatch

func (x *Matcher) ClearOnNoMatch()

func (*Matcher) GetMatcherList

func (x *Matcher) GetMatcherList() *Matcher_MatcherList

func (*Matcher) GetMatcherTree

func (x *Matcher) GetMatcherTree() *Matcher_MatcherTree

func (*Matcher) GetMatcherType

func (x *Matcher) GetMatcherType() isMatcher_MatcherType

func (*Matcher) GetOnNoMatch

func (x *Matcher) GetOnNoMatch() *Matcher_OnMatch

func (*Matcher) HasMatcherList

func (x *Matcher) HasMatcherList() bool

func (*Matcher) HasMatcherTree

func (x *Matcher) HasMatcherTree() bool

func (*Matcher) HasMatcherType

func (x *Matcher) HasMatcherType() bool

func (*Matcher) HasOnNoMatch

func (x *Matcher) HasOnNoMatch() bool

func (*Matcher) ProtoMessage

func (*Matcher) ProtoMessage()

func (*Matcher) ProtoReflect

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

func (*Matcher) Reset

func (x *Matcher) Reset()

func (*Matcher) SetMatcherList

func (x *Matcher) SetMatcherList(v *Matcher_MatcherList)

func (*Matcher) SetMatcherTree

func (x *Matcher) SetMatcherTree(v *Matcher_MatcherTree)

func (*Matcher) SetOnNoMatch

func (x *Matcher) SetOnNoMatch(v *Matcher_OnMatch)

func (*Matcher) String

func (x *Matcher) String() string

func (*Matcher) WhichMatcherType

func (x *Matcher) WhichMatcherType() case_Matcher_MatcherType

type Matcher_MatcherList

type Matcher_MatcherList struct {

	// A list of matchers. First match wins.
	Matchers []*Matcher_MatcherList_FieldMatcher `protobuf:"bytes,1,rep,name=matchers,proto3" json:"matchers,omitempty"`
	// contains filtered or unexported fields
}

A linear list of field matchers. The field matchers are evaluated in order, and the first match wins.

func (*Matcher_MatcherList) GetMatchers

func (*Matcher_MatcherList) ProtoMessage

func (*Matcher_MatcherList) ProtoMessage()

func (*Matcher_MatcherList) ProtoReflect

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

func (*Matcher_MatcherList) Reset

func (x *Matcher_MatcherList) Reset()

func (*Matcher_MatcherList) SetMatchers

func (*Matcher_MatcherList) String

func (x *Matcher_MatcherList) String() string

type Matcher_MatcherList_

type Matcher_MatcherList_ struct {
	// A linear list of matchers to evaluate.
	MatcherList *Matcher_MatcherList `protobuf:"bytes,1,opt,name=matcher_list,json=matcherList,proto3,oneof"`
}

type Matcher_MatcherList_FieldMatcher

type Matcher_MatcherList_FieldMatcher struct {

	// Determines if the match succeeds.
	Predicate *Matcher_MatcherList_Predicate `protobuf:"bytes,1,opt,name=predicate,proto3" json:"predicate,omitempty"`
	// What to do if the match succeeds.
	OnMatch *Matcher_OnMatch `protobuf:"bytes,2,opt,name=on_match,json=onMatch,proto3" json:"on_match,omitempty"`
	// contains filtered or unexported fields
}

An individual matcher.

func (*Matcher_MatcherList_FieldMatcher) ClearOnMatch

func (x *Matcher_MatcherList_FieldMatcher) ClearOnMatch()

func (*Matcher_MatcherList_FieldMatcher) ClearPredicate

func (x *Matcher_MatcherList_FieldMatcher) ClearPredicate()

func (*Matcher_MatcherList_FieldMatcher) GetOnMatch

func (*Matcher_MatcherList_FieldMatcher) GetPredicate

func (*Matcher_MatcherList_FieldMatcher) HasOnMatch

func (x *Matcher_MatcherList_FieldMatcher) HasOnMatch() bool

func (*Matcher_MatcherList_FieldMatcher) HasPredicate

func (x *Matcher_MatcherList_FieldMatcher) HasPredicate() bool

func (*Matcher_MatcherList_FieldMatcher) ProtoMessage

func (*Matcher_MatcherList_FieldMatcher) ProtoMessage()

func (*Matcher_MatcherList_FieldMatcher) ProtoReflect

func (*Matcher_MatcherList_FieldMatcher) Reset

func (*Matcher_MatcherList_FieldMatcher) SetOnMatch

func (*Matcher_MatcherList_FieldMatcher) SetPredicate

func (*Matcher_MatcherList_FieldMatcher) String

type Matcher_MatcherList_FieldMatcher_builder

type Matcher_MatcherList_FieldMatcher_builder struct {

	// Determines if the match succeeds.
	Predicate *Matcher_MatcherList_Predicate
	// What to do if the match succeeds.
	OnMatch *Matcher_OnMatch
	// contains filtered or unexported fields
}

func (Matcher_MatcherList_FieldMatcher_builder) Build

type Matcher_MatcherList_Predicate

type Matcher_MatcherList_Predicate struct {

	// Types that are valid to be assigned to MatchType:
	//
	//	*Matcher_MatcherList_Predicate_SinglePredicate_
	//	*Matcher_MatcherList_Predicate_OrMatcher
	//	*Matcher_MatcherList_Predicate_AndMatcher
	//	*Matcher_MatcherList_Predicate_NotMatcher
	MatchType isMatcher_MatcherList_Predicate_MatchType `protobuf_oneof:"match_type"`
	// contains filtered or unexported fields
}

Predicate to determine if a match is successful.

func (*Matcher_MatcherList_Predicate) ClearAndMatcher

func (x *Matcher_MatcherList_Predicate) ClearAndMatcher()

func (*Matcher_MatcherList_Predicate) ClearMatchType

func (x *Matcher_MatcherList_Predicate) ClearMatchType()

func (*Matcher_MatcherList_Predicate) ClearNotMatcher

func (x *Matcher_MatcherList_Predicate) ClearNotMatcher()

func (*Matcher_MatcherList_Predicate) ClearOrMatcher

func (x *Matcher_MatcherList_Predicate) ClearOrMatcher()

func (*Matcher_MatcherList_Predicate) ClearSinglePredicate

func (x *Matcher_MatcherList_Predicate) ClearSinglePredicate()

func (*Matcher_MatcherList_Predicate) GetAndMatcher

func (*Matcher_MatcherList_Predicate) GetMatchType

func (x *Matcher_MatcherList_Predicate) GetMatchType() isMatcher_MatcherList_Predicate_MatchType

func (*Matcher_MatcherList_Predicate) GetNotMatcher

func (*Matcher_MatcherList_Predicate) GetOrMatcher

func (*Matcher_MatcherList_Predicate) GetSinglePredicate

func (*Matcher_MatcherList_Predicate) HasAndMatcher

func (x *Matcher_MatcherList_Predicate) HasAndMatcher() bool

func (*Matcher_MatcherList_Predicate) HasMatchType

func (x *Matcher_MatcherList_Predicate) HasMatchType() bool

func (*Matcher_MatcherList_Predicate) HasNotMatcher

func (x *Matcher_MatcherList_Predicate) HasNotMatcher() bool

func (*Matcher_MatcherList_Predicate) HasOrMatcher

func (x *Matcher_MatcherList_Predicate) HasOrMatcher() bool

func (*Matcher_MatcherList_Predicate) HasSinglePredicate

func (x *Matcher_MatcherList_Predicate) HasSinglePredicate() bool

func (*Matcher_MatcherList_Predicate) ProtoMessage

func (*Matcher_MatcherList_Predicate) ProtoMessage()

func (*Matcher_MatcherList_Predicate) ProtoReflect

func (*Matcher_MatcherList_Predicate) Reset

func (x *Matcher_MatcherList_Predicate) Reset()

func (*Matcher_MatcherList_Predicate) SetAndMatcher

func (*Matcher_MatcherList_Predicate) SetNotMatcher

func (*Matcher_MatcherList_Predicate) SetOrMatcher

func (*Matcher_MatcherList_Predicate) SetSinglePredicate

func (*Matcher_MatcherList_Predicate) String

func (*Matcher_MatcherList_Predicate) WhichMatchType

func (x *Matcher_MatcherList_Predicate) WhichMatchType() case_Matcher_MatcherList_Predicate_MatchType

type Matcher_MatcherList_Predicate_AndMatcher

type Matcher_MatcherList_Predicate_AndMatcher struct {
	// A list of predicates to be AND-ed together.
	AndMatcher *Matcher_MatcherList_Predicate_PredicateList `protobuf:"bytes,3,opt,name=and_matcher,json=andMatcher,proto3,oneof"`
}

type Matcher_MatcherList_Predicate_NotMatcher

type Matcher_MatcherList_Predicate_NotMatcher struct {
	// The invert of a predicate
	NotMatcher *Matcher_MatcherList_Predicate `protobuf:"bytes,4,opt,name=not_matcher,json=notMatcher,proto3,oneof"`
}

type Matcher_MatcherList_Predicate_OrMatcher

type Matcher_MatcherList_Predicate_OrMatcher struct {
	// A list of predicates to be OR-ed together.
	OrMatcher *Matcher_MatcherList_Predicate_PredicateList `protobuf:"bytes,2,opt,name=or_matcher,json=orMatcher,proto3,oneof"`
}

type Matcher_MatcherList_Predicate_PredicateList

type Matcher_MatcherList_Predicate_PredicateList struct {
	Predicate []*Matcher_MatcherList_Predicate `protobuf:"bytes,1,rep,name=predicate,proto3" json:"predicate,omitempty"`
	// contains filtered or unexported fields
}

A list of two or more matchers. Used to allow using a list within a oneof.

func (*Matcher_MatcherList_Predicate_PredicateList) GetPredicate

func (*Matcher_MatcherList_Predicate_PredicateList) ProtoMessage

func (*Matcher_MatcherList_Predicate_PredicateList) ProtoReflect

func (*Matcher_MatcherList_Predicate_PredicateList) Reset

func (*Matcher_MatcherList_Predicate_PredicateList) SetPredicate

func (*Matcher_MatcherList_Predicate_PredicateList) String

type Matcher_MatcherList_Predicate_PredicateList_builder

type Matcher_MatcherList_Predicate_PredicateList_builder struct {
	Predicate []*Matcher_MatcherList_Predicate
	// contains filtered or unexported fields
}

func (Matcher_MatcherList_Predicate_PredicateList_builder) Build

type Matcher_MatcherList_Predicate_SinglePredicate

type Matcher_MatcherList_Predicate_SinglePredicate struct {

	// Protocol-specific specification of input field to match on.
	// [#extension-category: envoy.matching.common_inputs]
	Input *v31.TypedExtensionConfig `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	// Types that are valid to be assigned to Matcher:
	//
	//	*Matcher_MatcherList_Predicate_SinglePredicate_ValueMatch
	//	*Matcher_MatcherList_Predicate_SinglePredicate_CustomMatch
	Matcher isMatcher_MatcherList_Predicate_SinglePredicate_Matcher `protobuf_oneof:"matcher"`
	// contains filtered or unexported fields
}

Predicate for a single input field.

func (*Matcher_MatcherList_Predicate_SinglePredicate) ClearCustomMatch

func (x *Matcher_MatcherList_Predicate_SinglePredicate) ClearCustomMatch()

func (*Matcher_MatcherList_Predicate_SinglePredicate) ClearInput

func (*Matcher_MatcherList_Predicate_SinglePredicate) ClearMatcher

func (*Matcher_MatcherList_Predicate_SinglePredicate) ClearValueMatch

func (x *Matcher_MatcherList_Predicate_SinglePredicate) ClearValueMatch()

func (*Matcher_MatcherList_Predicate_SinglePredicate) GetCustomMatch

func (*Matcher_MatcherList_Predicate_SinglePredicate) GetInput

func (*Matcher_MatcherList_Predicate_SinglePredicate) GetMatcher

func (x *Matcher_MatcherList_Predicate_SinglePredicate) GetMatcher() isMatcher_MatcherList_Predicate_SinglePredicate_Matcher

func (*Matcher_MatcherList_Predicate_SinglePredicate) GetValueMatch

func (*Matcher_MatcherList_Predicate_SinglePredicate) HasCustomMatch

func (*Matcher_MatcherList_Predicate_SinglePredicate) HasInput

func (*Matcher_MatcherList_Predicate_SinglePredicate) HasMatcher

func (*Matcher_MatcherList_Predicate_SinglePredicate) HasValueMatch

func (*Matcher_MatcherList_Predicate_SinglePredicate) ProtoMessage

func (*Matcher_MatcherList_Predicate_SinglePredicate) ProtoReflect

func (*Matcher_MatcherList_Predicate_SinglePredicate) Reset

func (*Matcher_MatcherList_Predicate_SinglePredicate) SetCustomMatch

func (*Matcher_MatcherList_Predicate_SinglePredicate) SetInput

func (*Matcher_MatcherList_Predicate_SinglePredicate) SetValueMatch

func (*Matcher_MatcherList_Predicate_SinglePredicate) String

func (*Matcher_MatcherList_Predicate_SinglePredicate) WhichMatcher

func (x *Matcher_MatcherList_Predicate_SinglePredicate) WhichMatcher() case_Matcher_MatcherList_Predicate_SinglePredicate_Matcher

type Matcher_MatcherList_Predicate_SinglePredicate_

type Matcher_MatcherList_Predicate_SinglePredicate_ struct {
	// A single predicate to evaluate.
	SinglePredicate *Matcher_MatcherList_Predicate_SinglePredicate `protobuf:"bytes,1,opt,name=single_predicate,json=singlePredicate,proto3,oneof"`
}

type Matcher_MatcherList_Predicate_SinglePredicate_CustomMatch

type Matcher_MatcherList_Predicate_SinglePredicate_CustomMatch struct {
	// Extension for custom matching logic.
	// [#extension-category: envoy.matching.input_matchers]
	CustomMatch *v31.TypedExtensionConfig `protobuf:"bytes,3,opt,name=custom_match,json=customMatch,proto3,oneof"`
}

type Matcher_MatcherList_Predicate_SinglePredicate_ValueMatch

type Matcher_MatcherList_Predicate_SinglePredicate_ValueMatch struct {
	// Built-in string matcher.
	ValueMatch *v32.StringMatcher `protobuf:"bytes,2,opt,name=value_match,json=valueMatch,proto3,oneof"`
}

type Matcher_MatcherList_Predicate_SinglePredicate_builder

type Matcher_MatcherList_Predicate_SinglePredicate_builder struct {

	// Protocol-specific specification of input field to match on.
	// [#extension-category: envoy.matching.common_inputs]
	Input *v31.TypedExtensionConfig
	// Fields of oneof Matcher:
	// Built-in string matcher.
	ValueMatch *v32.StringMatcher
	// Extension for custom matching logic.
	// [#extension-category: envoy.matching.input_matchers]
	CustomMatch *v31.TypedExtensionConfig
	// contains filtered or unexported fields
}

func (Matcher_MatcherList_Predicate_SinglePredicate_builder) Build

type Matcher_MatcherList_Predicate_builder

type Matcher_MatcherList_Predicate_builder struct {

	// Fields of oneof MatchType:
	// A single predicate to evaluate.
	SinglePredicate *Matcher_MatcherList_Predicate_SinglePredicate
	// A list of predicates to be OR-ed together.
	OrMatcher *Matcher_MatcherList_Predicate_PredicateList
	// A list of predicates to be AND-ed together.
	AndMatcher *Matcher_MatcherList_Predicate_PredicateList
	// The invert of a predicate
	NotMatcher *Matcher_MatcherList_Predicate
	// contains filtered or unexported fields
}

func (Matcher_MatcherList_Predicate_builder) Build

type Matcher_MatcherList_builder

type Matcher_MatcherList_builder struct {

	// A list of matchers. First match wins.
	Matchers []*Matcher_MatcherList_FieldMatcher
	// contains filtered or unexported fields
}

func (Matcher_MatcherList_builder) Build

type Matcher_MatcherTree

type Matcher_MatcherTree struct {

	// Protocol-specific specification of input field to match on.
	Input *v31.TypedExtensionConfig `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	// Exact or prefix match maps in which to look up the input value.
	// If the lookup succeeds, the match is considered successful, and
	// the corresponding OnMatch is used.
	//
	// Types that are valid to be assigned to TreeType:
	//
	//	*Matcher_MatcherTree_ExactMatchMap
	//	*Matcher_MatcherTree_PrefixMatchMap
	//	*Matcher_MatcherTree_CustomMatch
	TreeType isMatcher_MatcherTree_TreeType `protobuf_oneof:"tree_type"`
	// contains filtered or unexported fields
}

func (*Matcher_MatcherTree) ClearCustomMatch

func (x *Matcher_MatcherTree) ClearCustomMatch()

func (*Matcher_MatcherTree) ClearExactMatchMap

func (x *Matcher_MatcherTree) ClearExactMatchMap()

func (*Matcher_MatcherTree) ClearInput

func (x *Matcher_MatcherTree) ClearInput()

func (*Matcher_MatcherTree) ClearPrefixMatchMap

func (x *Matcher_MatcherTree) ClearPrefixMatchMap()

func (*Matcher_MatcherTree) ClearTreeType

func (x *Matcher_MatcherTree) ClearTreeType()

func (*Matcher_MatcherTree) GetCustomMatch

func (x *Matcher_MatcherTree) GetCustomMatch() *v31.TypedExtensionConfig

func (*Matcher_MatcherTree) GetExactMatchMap

func (x *Matcher_MatcherTree) GetExactMatchMap() *Matcher_MatcherTree_MatchMap

func (*Matcher_MatcherTree) GetInput

func (*Matcher_MatcherTree) GetPrefixMatchMap

func (x *Matcher_MatcherTree) GetPrefixMatchMap() *Matcher_MatcherTree_MatchMap

func (*Matcher_MatcherTree) GetTreeType

func (x *Matcher_MatcherTree) GetTreeType() isMatcher_MatcherTree_TreeType

func (*Matcher_MatcherTree) HasCustomMatch

func (x *Matcher_MatcherTree) HasCustomMatch() bool

func (*Matcher_MatcherTree) HasExactMatchMap

func (x *Matcher_MatcherTree) HasExactMatchMap() bool

func (*Matcher_MatcherTree) HasInput

func (x *Matcher_MatcherTree) HasInput() bool

func (*Matcher_MatcherTree) HasPrefixMatchMap

func (x *Matcher_MatcherTree) HasPrefixMatchMap() bool

func (*Matcher_MatcherTree) HasTreeType

func (x *Matcher_MatcherTree) HasTreeType() bool

func (*Matcher_MatcherTree) ProtoMessage

func (*Matcher_MatcherTree) ProtoMessage()

func (*Matcher_MatcherTree) ProtoReflect

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

func (*Matcher_MatcherTree) Reset

func (x *Matcher_MatcherTree) Reset()

func (*Matcher_MatcherTree) SetCustomMatch

func (x *Matcher_MatcherTree) SetCustomMatch(v *v31.TypedExtensionConfig)

func (*Matcher_MatcherTree) SetExactMatchMap

func (x *Matcher_MatcherTree) SetExactMatchMap(v *Matcher_MatcherTree_MatchMap)

func (*Matcher_MatcherTree) SetInput

func (*Matcher_MatcherTree) SetPrefixMatchMap

func (x *Matcher_MatcherTree) SetPrefixMatchMap(v *Matcher_MatcherTree_MatchMap)

func (*Matcher_MatcherTree) String

func (x *Matcher_MatcherTree) String() string

func (*Matcher_MatcherTree) WhichTreeType

func (x *Matcher_MatcherTree) WhichTreeType() case_Matcher_MatcherTree_TreeType

type Matcher_MatcherTree_

type Matcher_MatcherTree_ struct {
	// A match tree to evaluate.
	MatcherTree *Matcher_MatcherTree `protobuf:"bytes,2,opt,name=matcher_tree,json=matcherTree,proto3,oneof"`
}

type Matcher_MatcherTree_CustomMatch

type Matcher_MatcherTree_CustomMatch struct {
	// Extension for custom matching logic.
	CustomMatch *v31.TypedExtensionConfig `protobuf:"bytes,4,opt,name=custom_match,json=customMatch,proto3,oneof"`
}

type Matcher_MatcherTree_ExactMatchMap

type Matcher_MatcherTree_ExactMatchMap struct {
	ExactMatchMap *Matcher_MatcherTree_MatchMap `protobuf:"bytes,2,opt,name=exact_match_map,json=exactMatchMap,proto3,oneof"`
}

type Matcher_MatcherTree_MatchMap

type Matcher_MatcherTree_MatchMap struct {
	Map map[string]*Matcher_OnMatch `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

A map of configured matchers. Used to allow using a map within a oneof.

func (*Matcher_MatcherTree_MatchMap) GetMap

func (*Matcher_MatcherTree_MatchMap) ProtoMessage

func (*Matcher_MatcherTree_MatchMap) ProtoMessage()

func (*Matcher_MatcherTree_MatchMap) ProtoReflect

func (*Matcher_MatcherTree_MatchMap) Reset

func (x *Matcher_MatcherTree_MatchMap) Reset()

func (*Matcher_MatcherTree_MatchMap) SetMap

func (*Matcher_MatcherTree_MatchMap) String

type Matcher_MatcherTree_MatchMap_builder

type Matcher_MatcherTree_MatchMap_builder struct {
	Map map[string]*Matcher_OnMatch
	// contains filtered or unexported fields
}

func (Matcher_MatcherTree_MatchMap_builder) Build

type Matcher_MatcherTree_PrefixMatchMap

type Matcher_MatcherTree_PrefixMatchMap struct {
	// Longest matching prefix wins.
	PrefixMatchMap *Matcher_MatcherTree_MatchMap `protobuf:"bytes,3,opt,name=prefix_match_map,json=prefixMatchMap,proto3,oneof"`
}

type Matcher_MatcherTree_builder

type Matcher_MatcherTree_builder struct {

	// Protocol-specific specification of input field to match on.
	Input *v31.TypedExtensionConfig

	// Fields of oneof TreeType:
	ExactMatchMap *Matcher_MatcherTree_MatchMap
	// Longest matching prefix wins.
	PrefixMatchMap *Matcher_MatcherTree_MatchMap
	// Extension for custom matching logic.
	CustomMatch *v31.TypedExtensionConfig
	// contains filtered or unexported fields
}

func (Matcher_MatcherTree_builder) Build

type Matcher_OnMatch

type Matcher_OnMatch struct {

	// Types that are valid to be assigned to OnMatch:
	//
	//	*Matcher_OnMatch_Matcher
	//	*Matcher_OnMatch_Action
	OnMatch isMatcher_OnMatch_OnMatch `protobuf_oneof:"on_match"`
	// contains filtered or unexported fields
}

What to do if a match is successful.

func (*Matcher_OnMatch) ClearAction

func (x *Matcher_OnMatch) ClearAction()

func (*Matcher_OnMatch) ClearMatcher

func (x *Matcher_OnMatch) ClearMatcher()

func (*Matcher_OnMatch) ClearOnMatch

func (x *Matcher_OnMatch) ClearOnMatch()

func (*Matcher_OnMatch) GetAction

func (x *Matcher_OnMatch) GetAction() *v31.TypedExtensionConfig

func (*Matcher_OnMatch) GetMatcher

func (x *Matcher_OnMatch) GetMatcher() *Matcher

func (*Matcher_OnMatch) GetOnMatch

func (x *Matcher_OnMatch) GetOnMatch() isMatcher_OnMatch_OnMatch

func (*Matcher_OnMatch) HasAction

func (x *Matcher_OnMatch) HasAction() bool

func (*Matcher_OnMatch) HasMatcher

func (x *Matcher_OnMatch) HasMatcher() bool

func (*Matcher_OnMatch) HasOnMatch

func (x *Matcher_OnMatch) HasOnMatch() bool

func (*Matcher_OnMatch) ProtoMessage

func (*Matcher_OnMatch) ProtoMessage()

func (*Matcher_OnMatch) ProtoReflect

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

func (*Matcher_OnMatch) Reset

func (x *Matcher_OnMatch) Reset()

func (*Matcher_OnMatch) SetAction

func (x *Matcher_OnMatch) SetAction(v *v31.TypedExtensionConfig)

func (*Matcher_OnMatch) SetMatcher

func (x *Matcher_OnMatch) SetMatcher(v *Matcher)

func (*Matcher_OnMatch) String

func (x *Matcher_OnMatch) String() string

func (*Matcher_OnMatch) WhichOnMatch

func (x *Matcher_OnMatch) WhichOnMatch() case_Matcher_OnMatch_OnMatch

type Matcher_OnMatch_Action

type Matcher_OnMatch_Action struct {
	// Protocol-specific action to take.
	Action *v31.TypedExtensionConfig `protobuf:"bytes,2,opt,name=action,proto3,oneof"`
}

type Matcher_OnMatch_Matcher

type Matcher_OnMatch_Matcher struct {
	// Nested matcher to evaluate.
	// If the nested matcher does not match and does not specify
	// on_no_match, then this matcher is considered not to have
	// matched, even if a predicate at this level or above returned
	// true.
	Matcher *Matcher `protobuf:"bytes,1,opt,name=matcher,proto3,oneof"`
}

type Matcher_OnMatch_builder

type Matcher_OnMatch_builder struct {

	// Fields of oneof OnMatch:
	// Nested matcher to evaluate.
	// If the nested matcher does not match and does not specify
	// on_no_match, then this matcher is considered not to have
	// matched, even if a predicate at this level or above returned
	// true.
	Matcher *Matcher
	// Protocol-specific action to take.
	Action *v31.TypedExtensionConfig
	// contains filtered or unexported fields
}

func (Matcher_OnMatch_builder) Build

type Matcher_builder

type Matcher_builder struct {

	// Fields of oneof MatcherType:
	// A linear list of matchers to evaluate.
	MatcherList *Matcher_MatcherList
	// A match tree to evaluate.
	MatcherTree *Matcher_MatcherTree
	// -- end of MatcherType
	// Optional OnMatch to use if the matcher failed.
	// If specified, the OnMatch is used, and the matcher is considered
	// to have matched.
	// If not specified, the matcher is considered not to have matched.
	OnNoMatch *Matcher_OnMatch
	// contains filtered or unexported fields
}

func (Matcher_builder) Build

func (b0 Matcher_builder) Build() *Matcher

Jump to

Keyboard shortcuts

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