package metadatav3
import "github.com/envoyproxy/go-control-plane/envoy/extensions/matching/input_matchers/metadata/v3"
Index ¶
- Variables
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (x *Metadata) GetInvert() bool
- func (x *Metadata) GetValue() *v3.ValueMatcher
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- func (m *Metadata) Validate() error
- func (m *Metadata) ValidateAll() error
- type MetadataMultiError
- type MetadataValidationError
Variables ¶
var File_envoy_extensions_matching_input_matchers_metadata_v3_metadata_proto protoreflect.FileDescriptor
Types ¶
type Metadata ¶
type Metadata struct { // The Metadata is matched if the value retrieved by metadata matching input is matched to this value. Value *v3.ValueMatcher `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // If true, the match result will be inverted. Invert bool `protobuf:"varint,4,opt,name=invert,proto3" json:"invert,omitempty"` // contains filtered or unexported fields }
Metadata matcher for metadata from http matching input data.
func (*Metadata) Descriptor ¶
Deprecated: Use Metadata.ProtoReflect.Descriptor instead.
func (*Metadata) GetInvert ¶
func (*Metadata) GetValue ¶
func (x *Metadata) GetValue() *v3.ValueMatcher
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
func (*Metadata) Reset ¶
func (x *Metadata) Reset()
func (*Metadata) String ¶
func (*Metadata) Validate ¶
Validate checks the field values on Metadata 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 (*Metadata) ValidateAll ¶
ValidateAll checks the field values on Metadata 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 MetadataMultiError, or nil if none found.
type MetadataMultiError ¶
type MetadataMultiError []error
MetadataMultiError is an error wrapping multiple validation errors returned by Metadata.ValidateAll() if the designated constraints aren't met.
func (MetadataMultiError) AllErrors ¶
func (m MetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MetadataMultiError) Error ¶
func (m MetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MetadataValidationError ¶
type MetadataValidationError struct {
// contains filtered or unexported fields
}
MetadataValidationError is the validation error returned by Metadata.Validate if the designated constraints aren't met.
func (MetadataValidationError) Cause ¶
func (e MetadataValidationError) Cause() error
Cause function returns cause value.
func (MetadataValidationError) Error ¶
func (e MetadataValidationError) Error() string
Error satisfies the builtin error interface
func (MetadataValidationError) ErrorName ¶
func (e MetadataValidationError) ErrorName() string
ErrorName returns error name.
func (MetadataValidationError) Field ¶
func (e MetadataValidationError) Field() string
Field function returns field value.
func (MetadataValidationError) Key ¶
func (e MetadataValidationError) Key() bool
Key function returns key value.
func (MetadataValidationError) Reason ¶
func (e MetadataValidationError) Reason() string
Reason function returns reason value.
Source Files ¶
metadata.pb.go metadata.pb.validate.go
- Version
- v1.32.4 (latest)
- Published
- Feb 3, 2025
- Platform
- linux/amd64
- Imports
- 19 packages
- Last checked
- 1 day ago –
Tools for package owners.