package matchingv3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/common/matching/v3"

Index

Variables

var File_envoy_extensions_common_matching_v3_extension_matcher_proto protoreflect.FileDescriptor

Types

type ExtensionWithMatcher

type ExtensionWithMatcher struct {

	// The associated matcher. This is deprecated in favor of xds_matcher.
	//
	// Deprecated: Do not use.
	Matcher *v3.Matcher `protobuf:"bytes,1,opt,name=matcher,proto3" json:"matcher,omitempty"`
	// The associated matcher.
	XdsMatcher *v31.Matcher `protobuf:"bytes,3,opt,name=xds_matcher,json=xdsMatcher,proto3" json:"xds_matcher,omitempty"`
	// The underlying extension config.
	ExtensionConfig *v32.TypedExtensionConfig `protobuf:"bytes,2,opt,name=extension_config,json=extensionConfig,proto3" json:"extension_config,omitempty"`
	// contains filtered or unexported fields
}

Wrapper around an existing extension that provides an associated matcher. This allows decorating an existing extension with a matcher, which can be used to match against relevant protocol data.

func (*ExtensionWithMatcher) Descriptor

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

Deprecated: Use ExtensionWithMatcher.ProtoReflect.Descriptor instead.

func (*ExtensionWithMatcher) GetExtensionConfig

func (x *ExtensionWithMatcher) GetExtensionConfig() *v32.TypedExtensionConfig

func (*ExtensionWithMatcher) GetMatcher

func (x *ExtensionWithMatcher) GetMatcher() *v3.Matcher

Deprecated: Do not use.

func (*ExtensionWithMatcher) GetXdsMatcher

func (x *ExtensionWithMatcher) GetXdsMatcher() *v31.Matcher

func (*ExtensionWithMatcher) ProtoMessage

func (*ExtensionWithMatcher) ProtoMessage()

func (*ExtensionWithMatcher) ProtoReflect

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

func (*ExtensionWithMatcher) Reset

func (x *ExtensionWithMatcher) Reset()

func (*ExtensionWithMatcher) String

func (x *ExtensionWithMatcher) String() string

func (*ExtensionWithMatcher) Validate

func (m *ExtensionWithMatcher) Validate() error

Validate checks the field values on ExtensionWithMatcher 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 (*ExtensionWithMatcher) ValidateAll

func (m *ExtensionWithMatcher) ValidateAll() error

ValidateAll checks the field values on ExtensionWithMatcher 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 ExtensionWithMatcherMultiError, or nil if none found.

type ExtensionWithMatcherMultiError

type ExtensionWithMatcherMultiError []error

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

func (ExtensionWithMatcherMultiError) AllErrors

func (m ExtensionWithMatcherMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExtensionWithMatcherMultiError) Error

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

type ExtensionWithMatcherValidationError

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

ExtensionWithMatcherValidationError is the validation error returned by ExtensionWithMatcher.Validate if the designated constraints aren't met.

func (ExtensionWithMatcherValidationError) Cause

Cause function returns cause value.

func (ExtensionWithMatcherValidationError) Error

Error satisfies the builtin error interface

func (ExtensionWithMatcherValidationError) ErrorName

ErrorName returns error name.

func (ExtensionWithMatcherValidationError) Field

Field function returns field value.

func (ExtensionWithMatcherValidationError) Key

Key function returns key value.

func (ExtensionWithMatcherValidationError) Reason

Reason function returns reason value.

Source Files

extension_matcher.pb.go extension_matcher.pb.validate.go

Version
v0.11.1
Published
May 28, 2023
Platform
darwin/amd64
Imports
23 packages
Last checked
1 hour ago

Tools for package owners.