matcherv3

package
v0.0.0-...-5360bea Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 20 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

func (*HostMatchInput) Validate

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

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

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

func (m HostMatchInputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HostMatchInputMultiError) Error

func (m HostMatchInputMultiError) Error() string

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

type HostMatchInputValidationError

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

Cause function returns cause value.

func (HostMatchInputValidationError) Error

Error satisfies the builtin error interface

func (HostMatchInputValidationError) ErrorName

func (e HostMatchInputValidationError) ErrorName() string

ErrorName returns error name.

func (HostMatchInputValidationError) Field

Field function returns field value.

func (HostMatchInputValidationError) Key

Key function returns key value.

func (HostMatchInputValidationError) Reason

Reason function returns reason value.

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
}

[#not-implemented-hide:] 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

func (*KeyValueMatchEntry) Validate

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

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

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

func (m KeyValueMatchEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (KeyValueMatchEntryMultiError) Error

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

type KeyValueMatchEntryValidationError

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

Cause function returns cause value.

func (KeyValueMatchEntryValidationError) Error

Error satisfies the builtin error interface

func (KeyValueMatchEntryValidationError) ErrorName

ErrorName returns error name.

func (KeyValueMatchEntryValidationError) Field

Field function returns field value.

func (KeyValueMatchEntryValidationError) Key

Key function returns key value.

func (KeyValueMatchEntryValidationError) Reason

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

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

func (*PathMatchInput) Validate

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

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

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

func (m PathMatchInputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PathMatchInputMultiError) Error

func (m PathMatchInputMultiError) Error() string

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

type PathMatchInputValidationError

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

Cause function returns cause value.

func (PathMatchInputValidationError) Error

Error satisfies the builtin error interface

func (PathMatchInputValidationError) ErrorName

func (e PathMatchInputValidationError) ErrorName() string

ErrorName returns error name.

func (PathMatchInputValidationError) Field

Field function returns field value.

func (PathMatchInputValidationError) Key

Key function returns key value.

func (PathMatchInputValidationError) Reason

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

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

[#not-implemented-hide:] 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

func (*RequestMatchInput) Validate

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

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

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

func (m RequestMatchInputMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestMatchInputMultiError) Error

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

type RequestMatchInputValidationError

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

Cause function returns cause value.

func (RequestMatchInputValidationError) Error

Error satisfies the builtin error interface

func (RequestMatchInputValidationError) ErrorName

ErrorName returns error name.

func (RequestMatchInputValidationError) Field

Field function returns field value.

func (RequestMatchInputValidationError) Key

Key function returns key value.

func (RequestMatchInputValidationError) Reason

Reason function returns reason value.

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
}

[#not-implemented-hide:] 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

func (*RequestMatcher) Validate

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

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

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

func (m RequestMatcherMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestMatcherMultiError) Error

func (m RequestMatcherMultiError) Error() string

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

type RequestMatcherValidationError

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

Cause function returns cause value.

func (RequestMatcherValidationError) Error

Error satisfies the builtin error interface

func (RequestMatcherValidationError) ErrorName

func (e RequestMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (RequestMatcherValidationError) Field

Field function returns field value.

func (RequestMatcherValidationError) Key

Key function returns key value.

func (RequestMatcherValidationError) Reason

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