matcherv3

package
v1.33.0-20240426201503... 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

This section is empty.

Variables

View Source
var File_contrib_envoy_extensions_filters_network_generic_proxy_matcher_v3_matcher_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HostMatchInput

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

Used to match request host of the generic downstream request. Only applicable if a host provided by the application protocol. This is same with the ServiceMatchInput and this should be preferred over ServiceMatchInput.

func (*HostMatchInput) Descriptor deprecated

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

Deprecated: Use HostMatchInput.ProtoReflect.Descriptor instead.

func (*HostMatchInput) ProtoMessage

func (*HostMatchInput) ProtoMessage()

func (*HostMatchInput) ProtoReflect

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

func (*HostMatchInput) Reset

func (x *HostMatchInput) Reset()

func (*HostMatchInput) String

func (x *HostMatchInput) String() string

type KeyValueMatchEntry

type KeyValueMatchEntry struct {

	// The key name to match on.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The key value pattern.
	StringMatch *v3.StringMatcher `protobuf:"bytes,2,opt,name=string_match,json=stringMatch,proto3" json:"string_match,omitempty"`
	// contains filtered or unexported fields
}

Used to match an arbitrary key-value pair for headers, trailers or properties.

func (*KeyValueMatchEntry) Descriptor deprecated

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

Deprecated: Use KeyValueMatchEntry.ProtoReflect.Descriptor instead.

func (*KeyValueMatchEntry) GetName

func (x *KeyValueMatchEntry) GetName() string

func (*KeyValueMatchEntry) GetStringMatch

func (x *KeyValueMatchEntry) GetStringMatch() *v3.StringMatcher

func (*KeyValueMatchEntry) ProtoMessage

func (*KeyValueMatchEntry) ProtoMessage()

func (*KeyValueMatchEntry) ProtoReflect

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

func (*KeyValueMatchEntry) Reset

func (x *KeyValueMatchEntry) Reset()

func (*KeyValueMatchEntry) String

func (x *KeyValueMatchEntry) String() string

type MethodMatchInput

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

Used to match request method of the generic downstream request. Only applicable if a method provided by the application protocol.

func (*MethodMatchInput) Descriptor deprecated

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

Deprecated: Use MethodMatchInput.ProtoReflect.Descriptor instead.

func (*MethodMatchInput) ProtoMessage

func (*MethodMatchInput) ProtoMessage()

func (*MethodMatchInput) ProtoReflect

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

func (*MethodMatchInput) Reset

func (x *MethodMatchInput) Reset()

func (*MethodMatchInput) String

func (x *MethodMatchInput) String() string

type PathMatchInput

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

Used to match request path of the generic downstream request. Only applicable if a path provided by the application protocol.

func (*PathMatchInput) Descriptor deprecated

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

Deprecated: Use PathMatchInput.ProtoReflect.Descriptor instead.

func (*PathMatchInput) ProtoMessage

func (*PathMatchInput) ProtoMessage()

func (*PathMatchInput) ProtoReflect

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

func (*PathMatchInput) Reset

func (x *PathMatchInput) Reset()

func (*PathMatchInput) String

func (x *PathMatchInput) String() string

type PropertyMatchInput

type PropertyMatchInput struct {

	// The property name to match on.
	PropertyName string `protobuf:"bytes,1,opt,name=property_name,json=propertyName,proto3" json:"property_name,omitempty"`
	// contains filtered or unexported fields
}

Used to match an arbitrary property of the generic downstream request. These properties are populated by the codecs of application protocols.

func (*PropertyMatchInput) Descriptor deprecated

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

Deprecated: Use PropertyMatchInput.ProtoReflect.Descriptor instead.

func (*PropertyMatchInput) GetPropertyName

func (x *PropertyMatchInput) GetPropertyName() string

func (*PropertyMatchInput) ProtoMessage

func (*PropertyMatchInput) ProtoMessage()

func (*PropertyMatchInput) ProtoReflect

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

func (*PropertyMatchInput) Reset

func (x *PropertyMatchInput) Reset()

func (*PropertyMatchInput) String

func (x *PropertyMatchInput) String() string

type RequestMatchInput

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

Used to match an whole generic downstream request.

func (*RequestMatchInput) Descriptor deprecated

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

Deprecated: Use RequestMatchInput.ProtoReflect.Descriptor instead.

func (*RequestMatchInput) ProtoMessage

func (*RequestMatchInput) ProtoMessage()

func (*RequestMatchInput) ProtoReflect

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

func (*RequestMatchInput) Reset

func (x *RequestMatchInput) Reset()

func (*RequestMatchInput) String

func (x *RequestMatchInput) String() string

type RequestMatcher

type RequestMatcher struct {

	// Optional host pattern to match on. If not specified, any host will match.
	Host *v3.StringMatcher `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Optional path pattern to match on. If not specified, any path will match.
	Path *v3.StringMatcher `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// Optional method pattern to match on. If not specified, any method will match.
	Method *v3.StringMatcher `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// Optional arbitrary properties to match on. If not specified, any properties
	// will match. The key is the property name and the value is the property value
	// to match on.
	Properties []*KeyValueMatchEntry `protobuf:"bytes,4,rep,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

Custom matcher to match on the generic downstream request. This is used to match multiple fields of the downstream request and avoid complex combinations of HostMatchInput, PathMatchInput, MethodMatchInput and PropertyMatchInput.

func (*RequestMatcher) Descriptor deprecated

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

Deprecated: Use RequestMatcher.ProtoReflect.Descriptor instead.

func (*RequestMatcher) GetHost

func (x *RequestMatcher) GetHost() *v3.StringMatcher

func (*RequestMatcher) GetMethod

func (x *RequestMatcher) GetMethod() *v3.StringMatcher

func (*RequestMatcher) GetPath

func (x *RequestMatcher) GetPath() *v3.StringMatcher

func (*RequestMatcher) GetProperties

func (x *RequestMatcher) GetProperties() []*KeyValueMatchEntry

func (*RequestMatcher) ProtoMessage

func (*RequestMatcher) ProtoMessage()

func (*RequestMatcher) ProtoReflect

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

func (*RequestMatcher) Reset

func (x *RequestMatcher) Reset()

func (*RequestMatcher) String

func (x *RequestMatcher) String() string

type ServiceMatchInput

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

Used to match request service of the downstream request. Only applicable if a service provided by the application protocol. This is deprecated and should be replaced by HostMatchInput. This is kept for backward compatibility.

func (*ServiceMatchInput) Descriptor deprecated

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

Deprecated: Use ServiceMatchInput.ProtoReflect.Descriptor instead.

func (*ServiceMatchInput) ProtoMessage

func (*ServiceMatchInput) ProtoMessage()

func (*ServiceMatchInput) ProtoReflect

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

func (*ServiceMatchInput) Reset

func (x *ServiceMatchInput) Reset()

func (*ServiceMatchInput) String

func (x *ServiceMatchInput) String() string

Jump to

Keyboard shortcuts

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