matcherv3

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 20 Imported by: 7

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 added in v0.11.1

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 added in v0.11.1

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

Deprecated: Use HostMatchInput.ProtoReflect.Descriptor instead.

func (*HostMatchInput) ProtoMessage added in v0.11.1

func (*HostMatchInput) ProtoMessage()

func (*HostMatchInput) ProtoReflect added in v0.11.1

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

func (*HostMatchInput) Reset added in v0.11.1

func (x *HostMatchInput) Reset()

func (*HostMatchInput) String added in v0.11.1

func (x *HostMatchInput) String() string

func (*HostMatchInput) Validate added in v0.11.1

func (m *HostMatchInput) Validate() error

Validate checks the field values on HostMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*HostMatchInput) ValidateAll added in v0.11.1

func (m *HostMatchInput) ValidateAll() error

ValidateAll checks the field values on HostMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HostMatchInputMultiError, or nil if none found.

type HostMatchInputMultiError added in v0.11.1

type HostMatchInputMultiError []error

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

func (HostMatchInputMultiError) AllErrors added in v0.11.1

func (m HostMatchInputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HostMatchInputMultiError) Error added in v0.11.1

func (m HostMatchInputMultiError) Error() string

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

type HostMatchInputValidationError added in v0.11.1

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

HostMatchInputValidationError is the validation error returned by HostMatchInput.Validate if the designated constraints aren't met.

func (HostMatchInputValidationError) Cause added in v0.11.1

Cause function returns cause value.

func (HostMatchInputValidationError) Error added in v0.11.1

Error satisfies the builtin error interface

func (HostMatchInputValidationError) ErrorName added in v0.11.1

func (e HostMatchInputValidationError) ErrorName() string

ErrorName returns error name.

func (HostMatchInputValidationError) Field added in v0.11.1

Field function returns field value.

func (HostMatchInputValidationError) Key added in v0.11.1

Key function returns key value.

func (HostMatchInputValidationError) Reason added in v0.11.1

Reason function returns reason value.

type KeyValueMatchEntry added in v0.11.1

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 added in v0.11.1

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

Deprecated: Use KeyValueMatchEntry.ProtoReflect.Descriptor instead.

func (*KeyValueMatchEntry) GetName added in v0.11.1

func (x *KeyValueMatchEntry) GetName() string

func (*KeyValueMatchEntry) GetStringMatch added in v0.11.1

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

func (*KeyValueMatchEntry) ProtoMessage added in v0.11.1

func (*KeyValueMatchEntry) ProtoMessage()

func (*KeyValueMatchEntry) ProtoReflect added in v0.11.1

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

func (*KeyValueMatchEntry) Reset added in v0.11.1

func (x *KeyValueMatchEntry) Reset()

func (*KeyValueMatchEntry) String added in v0.11.1

func (x *KeyValueMatchEntry) String() string

func (*KeyValueMatchEntry) Validate added in v0.11.1

func (m *KeyValueMatchEntry) Validate() error

Validate checks the field values on KeyValueMatchEntry with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*KeyValueMatchEntry) ValidateAll added in v0.11.1

func (m *KeyValueMatchEntry) ValidateAll() error

ValidateAll checks the field values on KeyValueMatchEntry with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in KeyValueMatchEntryMultiError, or nil if none found.

type KeyValueMatchEntryMultiError added in v0.11.1

type KeyValueMatchEntryMultiError []error

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

func (KeyValueMatchEntryMultiError) AllErrors added in v0.11.1

func (m KeyValueMatchEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (KeyValueMatchEntryMultiError) Error added in v0.11.1

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

type KeyValueMatchEntryValidationError added in v0.11.1

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

KeyValueMatchEntryValidationError is the validation error returned by KeyValueMatchEntry.Validate if the designated constraints aren't met.

func (KeyValueMatchEntryValidationError) Cause added in v0.11.1

Cause function returns cause value.

func (KeyValueMatchEntryValidationError) Error added in v0.11.1

Error satisfies the builtin error interface

func (KeyValueMatchEntryValidationError) ErrorName added in v0.11.1

ErrorName returns error name.

func (KeyValueMatchEntryValidationError) Field added in v0.11.1

Field function returns field value.

func (KeyValueMatchEntryValidationError) Key added in v0.11.1

Key function returns key value.

func (KeyValueMatchEntryValidationError) Reason added in v0.11.1

Reason function returns reason value.

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

func (*MethodMatchInput) Validate

func (m *MethodMatchInput) Validate() error

Validate checks the field values on MethodMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MethodMatchInput) ValidateAll

func (m *MethodMatchInput) ValidateAll() error

ValidateAll checks the field values on MethodMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MethodMatchInputMultiError, or nil if none found.

type MethodMatchInputMultiError

type MethodMatchInputMultiError []error

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

func (MethodMatchInputMultiError) AllErrors

func (m MethodMatchInputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MethodMatchInputMultiError) Error

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

type MethodMatchInputValidationError

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

MethodMatchInputValidationError is the validation error returned by MethodMatchInput.Validate if the designated constraints aren't met.

func (MethodMatchInputValidationError) Cause

Cause function returns cause value.

func (MethodMatchInputValidationError) Error

Error satisfies the builtin error interface

func (MethodMatchInputValidationError) ErrorName

ErrorName returns error name.

func (MethodMatchInputValidationError) Field

Field function returns field value.

func (MethodMatchInputValidationError) Key

Key function returns key value.

func (MethodMatchInputValidationError) Reason

Reason function returns reason value.

type PathMatchInput added in v0.11.1

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 added in v0.11.1

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

Deprecated: Use PathMatchInput.ProtoReflect.Descriptor instead.

func (*PathMatchInput) ProtoMessage added in v0.11.1

func (*PathMatchInput) ProtoMessage()

func (*PathMatchInput) ProtoReflect added in v0.11.1

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

func (*PathMatchInput) Reset added in v0.11.1

func (x *PathMatchInput) Reset()

func (*PathMatchInput) String added in v0.11.1

func (x *PathMatchInput) String() string

func (*PathMatchInput) Validate added in v0.11.1

func (m *PathMatchInput) Validate() error

Validate checks the field values on PathMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PathMatchInput) ValidateAll added in v0.11.1

func (m *PathMatchInput) ValidateAll() error

ValidateAll checks the field values on PathMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PathMatchInputMultiError, or nil if none found.

type PathMatchInputMultiError added in v0.11.1

type PathMatchInputMultiError []error

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

func (PathMatchInputMultiError) AllErrors added in v0.11.1

func (m PathMatchInputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PathMatchInputMultiError) Error added in v0.11.1

func (m PathMatchInputMultiError) Error() string

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

type PathMatchInputValidationError added in v0.11.1

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

PathMatchInputValidationError is the validation error returned by PathMatchInput.Validate if the designated constraints aren't met.

func (PathMatchInputValidationError) Cause added in v0.11.1

Cause function returns cause value.

func (PathMatchInputValidationError) Error added in v0.11.1

Error satisfies the builtin error interface

func (PathMatchInputValidationError) ErrorName added in v0.11.1

func (e PathMatchInputValidationError) ErrorName() string

ErrorName returns error name.

func (PathMatchInputValidationError) Field added in v0.11.1

Field function returns field value.

func (PathMatchInputValidationError) Key added in v0.11.1

Key function returns key value.

func (PathMatchInputValidationError) Reason added in v0.11.1

Reason function returns reason value.

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

func (*PropertyMatchInput) Validate

func (m *PropertyMatchInput) Validate() error

Validate checks the field values on PropertyMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PropertyMatchInput) ValidateAll

func (m *PropertyMatchInput) ValidateAll() error

ValidateAll checks the field values on PropertyMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PropertyMatchInputMultiError, or nil if none found.

type PropertyMatchInputMultiError

type PropertyMatchInputMultiError []error

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

func (PropertyMatchInputMultiError) AllErrors

func (m PropertyMatchInputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PropertyMatchInputMultiError) Error

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

type PropertyMatchInputValidationError

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

PropertyMatchInputValidationError is the validation error returned by PropertyMatchInput.Validate if the designated constraints aren't met.

func (PropertyMatchInputValidationError) Cause

Cause function returns cause value.

func (PropertyMatchInputValidationError) Error

Error satisfies the builtin error interface

func (PropertyMatchInputValidationError) ErrorName

ErrorName returns error name.

func (PropertyMatchInputValidationError) Field

Field function returns field value.

func (PropertyMatchInputValidationError) Key

Key function returns key value.

func (PropertyMatchInputValidationError) Reason

Reason function returns reason value.

type RequestMatchInput added in v0.11.1

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

Used to match an whole generic downstream request.

func (*RequestMatchInput) Descriptor deprecated added in v0.11.1

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

Deprecated: Use RequestMatchInput.ProtoReflect.Descriptor instead.

func (*RequestMatchInput) ProtoMessage added in v0.11.1

func (*RequestMatchInput) ProtoMessage()

func (*RequestMatchInput) ProtoReflect added in v0.11.1

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

func (*RequestMatchInput) Reset added in v0.11.1

func (x *RequestMatchInput) Reset()

func (*RequestMatchInput) String added in v0.11.1

func (x *RequestMatchInput) String() string

func (*RequestMatchInput) Validate added in v0.11.1

func (m *RequestMatchInput) Validate() error

Validate checks the field values on RequestMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RequestMatchInput) ValidateAll added in v0.11.1

func (m *RequestMatchInput) ValidateAll() error

ValidateAll checks the field values on RequestMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RequestMatchInputMultiError, or nil if none found.

type RequestMatchInputMultiError added in v0.11.1

type RequestMatchInputMultiError []error

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

func (RequestMatchInputMultiError) AllErrors added in v0.11.1

func (m RequestMatchInputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestMatchInputMultiError) Error added in v0.11.1

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

type RequestMatchInputValidationError added in v0.11.1

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

RequestMatchInputValidationError is the validation error returned by RequestMatchInput.Validate if the designated constraints aren't met.

func (RequestMatchInputValidationError) Cause added in v0.11.1

Cause function returns cause value.

func (RequestMatchInputValidationError) Error added in v0.11.1

Error satisfies the builtin error interface

func (RequestMatchInputValidationError) ErrorName added in v0.11.1

ErrorName returns error name.

func (RequestMatchInputValidationError) Field added in v0.11.1

Field function returns field value.

func (RequestMatchInputValidationError) Key added in v0.11.1

Key function returns key value.

func (RequestMatchInputValidationError) Reason added in v0.11.1

Reason function returns reason value.

type RequestMatcher added in v0.11.1

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 added in v0.11.1

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

Deprecated: Use RequestMatcher.ProtoReflect.Descriptor instead.

func (*RequestMatcher) GetHost added in v0.11.1

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

func (*RequestMatcher) GetMethod added in v0.11.1

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

func (*RequestMatcher) GetPath added in v0.11.1

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

func (*RequestMatcher) GetProperties added in v0.11.1

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

func (*RequestMatcher) ProtoMessage added in v0.11.1

func (*RequestMatcher) ProtoMessage()

func (*RequestMatcher) ProtoReflect added in v0.11.1

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

func (*RequestMatcher) Reset added in v0.11.1

func (x *RequestMatcher) Reset()

func (*RequestMatcher) String added in v0.11.1

func (x *RequestMatcher) String() string

func (*RequestMatcher) Validate added in v0.11.1

func (m *RequestMatcher) Validate() error

Validate checks the field values on RequestMatcher with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RequestMatcher) ValidateAll added in v0.11.1

func (m *RequestMatcher) ValidateAll() error

ValidateAll checks the field values on RequestMatcher with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RequestMatcherMultiError, or nil if none found.

type RequestMatcherMultiError added in v0.11.1

type RequestMatcherMultiError []error

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

func (RequestMatcherMultiError) AllErrors added in v0.11.1

func (m RequestMatcherMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestMatcherMultiError) Error added in v0.11.1

func (m RequestMatcherMultiError) Error() string

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

type RequestMatcherValidationError added in v0.11.1

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

RequestMatcherValidationError is the validation error returned by RequestMatcher.Validate if the designated constraints aren't met.

func (RequestMatcherValidationError) Cause added in v0.11.1

Cause function returns cause value.

func (RequestMatcherValidationError) Error added in v0.11.1

Error satisfies the builtin error interface

func (RequestMatcherValidationError) ErrorName added in v0.11.1

func (e RequestMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (RequestMatcherValidationError) Field added in v0.11.1

Field function returns field value.

func (RequestMatcherValidationError) Key added in v0.11.1

Key function returns key value.

func (RequestMatcherValidationError) Reason added in v0.11.1

Reason function returns reason value.

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

func (*ServiceMatchInput) Validate

func (m *ServiceMatchInput) Validate() error

Validate checks the field values on ServiceMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServiceMatchInput) ValidateAll

func (m *ServiceMatchInput) ValidateAll() error

ValidateAll checks the field values on ServiceMatchInput with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServiceMatchInputMultiError, or nil if none found.

type ServiceMatchInputMultiError

type ServiceMatchInputMultiError []error

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

func (ServiceMatchInputMultiError) AllErrors

func (m ServiceMatchInputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServiceMatchInputMultiError) Error

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

type ServiceMatchInputValidationError

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

ServiceMatchInputValidationError is the validation error returned by ServiceMatchInput.Validate if the designated constraints aren't met.

func (ServiceMatchInputValidationError) Cause

Cause function returns cause value.

func (ServiceMatchInputValidationError) Error

Error satisfies the builtin error interface

func (ServiceMatchInputValidationError) ErrorName

ErrorName returns error name.

func (ServiceMatchInputValidationError) Field

Field function returns field value.

func (ServiceMatchInputValidationError) Key

Key function returns key value.

func (ServiceMatchInputValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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