envoy_type_matcher_v3

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMetadata        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMetadata          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMetadata = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthNode        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNode          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNode = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthNumber        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNumber          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNumber = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPath        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPath          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPath = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthRegex        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRegex          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRegex = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthString        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowString          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupString = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStruct        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStruct          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStruct = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthValue        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValue          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValue = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type DoubleMatcher

type DoubleMatcher struct {
	// Types that are valid to be assigned to MatchPattern:
	//	*DoubleMatcher_Range
	//	*DoubleMatcher_Exact
	MatchPattern         isDoubleMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

Specifies the way to match a double value.

func (*DoubleMatcher) Descriptor

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

func (*DoubleMatcher) GetExact

func (m *DoubleMatcher) GetExact() float64

func (*DoubleMatcher) GetMatchPattern

func (m *DoubleMatcher) GetMatchPattern() isDoubleMatcher_MatchPattern

func (*DoubleMatcher) GetRange

func (m *DoubleMatcher) GetRange() *v3.DoubleRange

func (*DoubleMatcher) Marshal

func (m *DoubleMatcher) Marshal() (dAtA []byte, err error)

func (*DoubleMatcher) MarshalTo

func (m *DoubleMatcher) MarshalTo(dAtA []byte) (int, error)

func (*DoubleMatcher) MarshalToSizedBuffer

func (m *DoubleMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleMatcher) ProtoMessage

func (*DoubleMatcher) ProtoMessage()

func (*DoubleMatcher) Reset

func (m *DoubleMatcher) Reset()

func (*DoubleMatcher) Size

func (m *DoubleMatcher) Size() (n int)

func (*DoubleMatcher) String

func (m *DoubleMatcher) String() string

func (*DoubleMatcher) Unmarshal

func (m *DoubleMatcher) Unmarshal(dAtA []byte) error

func (*DoubleMatcher) Validate

func (m *DoubleMatcher) Validate() error

Validate checks the field values on DoubleMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*DoubleMatcher) XXX_DiscardUnknown

func (m *DoubleMatcher) XXX_DiscardUnknown()

func (*DoubleMatcher) XXX_Marshal

func (m *DoubleMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoubleMatcher) XXX_Merge

func (m *DoubleMatcher) XXX_Merge(src proto.Message)

func (*DoubleMatcher) XXX_OneofWrappers

func (*DoubleMatcher) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*DoubleMatcher) XXX_Size

func (m *DoubleMatcher) XXX_Size() int

func (*DoubleMatcher) XXX_Unmarshal

func (m *DoubleMatcher) XXX_Unmarshal(b []byte) error

type DoubleMatcherValidationError

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

DoubleMatcherValidationError is the validation error returned by DoubleMatcher.Validate if the designated constraints aren't met.

func (DoubleMatcherValidationError) Cause

Cause function returns cause value.

func (DoubleMatcherValidationError) Error

Error satisfies the builtin error interface

func (DoubleMatcherValidationError) ErrorName

func (e DoubleMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (DoubleMatcherValidationError) Field

Field function returns field value.

func (DoubleMatcherValidationError) Key

Key function returns key value.

func (DoubleMatcherValidationError) Reason

Reason function returns reason value.

type DoubleMatcher_Exact

type DoubleMatcher_Exact struct {
	Exact float64 `protobuf:"fixed64,2,opt,name=exact,proto3,oneof" json:"exact,omitempty"`
}

func (*DoubleMatcher_Exact) MarshalTo

func (m *DoubleMatcher_Exact) MarshalTo(dAtA []byte) (int, error)

func (*DoubleMatcher_Exact) MarshalToSizedBuffer

func (m *DoubleMatcher_Exact) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleMatcher_Exact) Size

func (m *DoubleMatcher_Exact) Size() (n int)

type DoubleMatcher_Range

type DoubleMatcher_Range struct {
	Range *v3.DoubleRange `protobuf:"bytes,1,opt,name=range,proto3,oneof" json:"range,omitempty"`
}

func (*DoubleMatcher_Range) MarshalTo

func (m *DoubleMatcher_Range) MarshalTo(dAtA []byte) (int, error)

func (*DoubleMatcher_Range) MarshalToSizedBuffer

func (m *DoubleMatcher_Range) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DoubleMatcher_Range) Size

func (m *DoubleMatcher_Range) Size() (n int)

type ListMatcher

type ListMatcher struct {
	// Types that are valid to be assigned to MatchPattern:
	//	*ListMatcher_OneOf
	MatchPattern         isListMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

Specifies the way to match a list value.

func (*ListMatcher) Descriptor

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

func (*ListMatcher) GetMatchPattern

func (m *ListMatcher) GetMatchPattern() isListMatcher_MatchPattern

func (*ListMatcher) GetOneOf

func (m *ListMatcher) GetOneOf() *ValueMatcher

func (*ListMatcher) Marshal

func (m *ListMatcher) Marshal() (dAtA []byte, err error)

func (*ListMatcher) MarshalTo

func (m *ListMatcher) MarshalTo(dAtA []byte) (int, error)

func (*ListMatcher) MarshalToSizedBuffer

func (m *ListMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListMatcher) ProtoMessage

func (*ListMatcher) ProtoMessage()

func (*ListMatcher) Reset

func (m *ListMatcher) Reset()

func (*ListMatcher) Size

func (m *ListMatcher) Size() (n int)

func (*ListMatcher) String

func (m *ListMatcher) String() string

func (*ListMatcher) Unmarshal

func (m *ListMatcher) Unmarshal(dAtA []byte) error

func (*ListMatcher) Validate

func (m *ListMatcher) Validate() error

Validate checks the field values on ListMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ListMatcher) XXX_DiscardUnknown

func (m *ListMatcher) XXX_DiscardUnknown()

func (*ListMatcher) XXX_Marshal

func (m *ListMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListMatcher) XXX_Merge

func (m *ListMatcher) XXX_Merge(src proto.Message)

func (*ListMatcher) XXX_OneofWrappers

func (*ListMatcher) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ListMatcher) XXX_Size

func (m *ListMatcher) XXX_Size() int

func (*ListMatcher) XXX_Unmarshal

func (m *ListMatcher) XXX_Unmarshal(b []byte) error

type ListMatcherValidationError

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

ListMatcherValidationError is the validation error returned by ListMatcher.Validate if the designated constraints aren't met.

func (ListMatcherValidationError) Cause

Cause function returns cause value.

func (ListMatcherValidationError) Error

Error satisfies the builtin error interface

func (ListMatcherValidationError) ErrorName

func (e ListMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (ListMatcherValidationError) Field

Field function returns field value.

func (ListMatcherValidationError) Key

Key function returns key value.

func (ListMatcherValidationError) Reason

Reason function returns reason value.

type ListMatcher_OneOf

type ListMatcher_OneOf struct {
	OneOf *ValueMatcher `protobuf:"bytes,1,opt,name=one_of,json=oneOf,proto3,oneof" json:"one_of,omitempty"`
}

func (*ListMatcher_OneOf) MarshalTo

func (m *ListMatcher_OneOf) MarshalTo(dAtA []byte) (int, error)

func (*ListMatcher_OneOf) MarshalToSizedBuffer

func (m *ListMatcher_OneOf) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListMatcher_OneOf) Size

func (m *ListMatcher_OneOf) Size() (n int)

type ListStringMatcher

type ListStringMatcher struct {
	Patterns             []*StringMatcher `protobuf:"bytes,1,rep,name=patterns,proto3" json:"patterns,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Specifies a list of ways to match a string.

func (*ListStringMatcher) Descriptor

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

func (*ListStringMatcher) GetPatterns

func (m *ListStringMatcher) GetPatterns() []*StringMatcher

func (*ListStringMatcher) Marshal

func (m *ListStringMatcher) Marshal() (dAtA []byte, err error)

func (*ListStringMatcher) MarshalTo

func (m *ListStringMatcher) MarshalTo(dAtA []byte) (int, error)

func (*ListStringMatcher) MarshalToSizedBuffer

func (m *ListStringMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListStringMatcher) ProtoMessage

func (*ListStringMatcher) ProtoMessage()

func (*ListStringMatcher) Reset

func (m *ListStringMatcher) Reset()

func (*ListStringMatcher) Size

func (m *ListStringMatcher) Size() (n int)

func (*ListStringMatcher) String

func (m *ListStringMatcher) String() string

func (*ListStringMatcher) Unmarshal

func (m *ListStringMatcher) Unmarshal(dAtA []byte) error

func (*ListStringMatcher) Validate

func (m *ListStringMatcher) Validate() error

Validate checks the field values on ListStringMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ListStringMatcher) XXX_DiscardUnknown

func (m *ListStringMatcher) XXX_DiscardUnknown()

func (*ListStringMatcher) XXX_Marshal

func (m *ListStringMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListStringMatcher) XXX_Merge

func (m *ListStringMatcher) XXX_Merge(src proto.Message)

func (*ListStringMatcher) XXX_Size

func (m *ListStringMatcher) XXX_Size() int

func (*ListStringMatcher) XXX_Unmarshal

func (m *ListStringMatcher) XXX_Unmarshal(b []byte) error

type ListStringMatcherValidationError

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

ListStringMatcherValidationError is the validation error returned by ListStringMatcher.Validate if the designated constraints aren't met.

func (ListStringMatcherValidationError) Cause

Cause function returns cause value.

func (ListStringMatcherValidationError) Error

Error satisfies the builtin error interface

func (ListStringMatcherValidationError) ErrorName

ErrorName returns error name.

func (ListStringMatcherValidationError) Field

Field function returns field value.

func (ListStringMatcherValidationError) Key

Key function returns key value.

func (ListStringMatcherValidationError) Reason

Reason function returns reason value.

type MetadataMatcher

type MetadataMatcher struct {
	// The filter name to retrieve the Struct from the Metadata.
	Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// The path to retrieve the Value from the Struct.
	Path []*MetadataMatcher_PathSegment `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"`
	// The MetadataMatcher is matched if the value retrieved by path is matched to this value.
	Value                *ValueMatcher `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

[#next-major-version: MetadataMatcher should use StructMatcher]

func (*MetadataMatcher) Descriptor

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

func (*MetadataMatcher) GetFilter

func (m *MetadataMatcher) GetFilter() string

func (*MetadataMatcher) GetPath

func (*MetadataMatcher) GetValue

func (m *MetadataMatcher) GetValue() *ValueMatcher

func (*MetadataMatcher) Marshal

func (m *MetadataMatcher) Marshal() (dAtA []byte, err error)

func (*MetadataMatcher) MarshalTo

func (m *MetadataMatcher) MarshalTo(dAtA []byte) (int, error)

func (*MetadataMatcher) MarshalToSizedBuffer

func (m *MetadataMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MetadataMatcher) ProtoMessage

func (*MetadataMatcher) ProtoMessage()

func (*MetadataMatcher) Reset

func (m *MetadataMatcher) Reset()

func (*MetadataMatcher) Size

func (m *MetadataMatcher) Size() (n int)

func (*MetadataMatcher) String

func (m *MetadataMatcher) String() string

func (*MetadataMatcher) Unmarshal

func (m *MetadataMatcher) Unmarshal(dAtA []byte) error

func (*MetadataMatcher) Validate

func (m *MetadataMatcher) Validate() error

Validate checks the field values on MetadataMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*MetadataMatcher) XXX_DiscardUnknown

func (m *MetadataMatcher) XXX_DiscardUnknown()

func (*MetadataMatcher) XXX_Marshal

func (m *MetadataMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MetadataMatcher) XXX_Merge

func (m *MetadataMatcher) XXX_Merge(src proto.Message)

func (*MetadataMatcher) XXX_Size

func (m *MetadataMatcher) XXX_Size() int

func (*MetadataMatcher) XXX_Unmarshal

func (m *MetadataMatcher) XXX_Unmarshal(b []byte) error

type MetadataMatcherValidationError

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

MetadataMatcherValidationError is the validation error returned by MetadataMatcher.Validate if the designated constraints aren't met.

func (MetadataMatcherValidationError) Cause

Cause function returns cause value.

func (MetadataMatcherValidationError) Error

Error satisfies the builtin error interface

func (MetadataMatcherValidationError) ErrorName

func (e MetadataMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (MetadataMatcherValidationError) Field

Field function returns field value.

func (MetadataMatcherValidationError) Key

Key function returns key value.

func (MetadataMatcherValidationError) Reason

Reason function returns reason value.

type MetadataMatcher_PathSegment

type MetadataMatcher_PathSegment struct {
	// Types that are valid to be assigned to Segment:
	//	*MetadataMatcher_PathSegment_Key
	Segment              isMetadataMatcher_PathSegment_Segment `protobuf_oneof:"segment"`
	XXX_NoUnkeyedLiteral struct{}                              `json:"-"`
	XXX_unrecognized     []byte                                `json:"-"`
	XXX_sizecache        int32                                 `json:"-"`
}

Specifies the segment in a path to retrieve value from Metadata. Note: Currently it's not supported to retrieve a value from a list in Metadata. This means that if the segment key refers to a list, it has to be the last segment in a path.

func (*MetadataMatcher_PathSegment) Descriptor

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

func (*MetadataMatcher_PathSegment) GetKey

func (m *MetadataMatcher_PathSegment) GetKey() string

func (*MetadataMatcher_PathSegment) GetSegment

func (m *MetadataMatcher_PathSegment) GetSegment() isMetadataMatcher_PathSegment_Segment

func (*MetadataMatcher_PathSegment) Marshal

func (m *MetadataMatcher_PathSegment) Marshal() (dAtA []byte, err error)

func (*MetadataMatcher_PathSegment) MarshalTo

func (m *MetadataMatcher_PathSegment) MarshalTo(dAtA []byte) (int, error)

func (*MetadataMatcher_PathSegment) MarshalToSizedBuffer

func (m *MetadataMatcher_PathSegment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MetadataMatcher_PathSegment) ProtoMessage

func (*MetadataMatcher_PathSegment) ProtoMessage()

func (*MetadataMatcher_PathSegment) Reset

func (m *MetadataMatcher_PathSegment) Reset()

func (*MetadataMatcher_PathSegment) Size

func (m *MetadataMatcher_PathSegment) Size() (n int)

func (*MetadataMatcher_PathSegment) String

func (m *MetadataMatcher_PathSegment) String() string

func (*MetadataMatcher_PathSegment) Unmarshal

func (m *MetadataMatcher_PathSegment) Unmarshal(dAtA []byte) error

func (*MetadataMatcher_PathSegment) Validate

func (m *MetadataMatcher_PathSegment) Validate() error

Validate checks the field values on MetadataMatcher_PathSegment with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*MetadataMatcher_PathSegment) XXX_DiscardUnknown

func (m *MetadataMatcher_PathSegment) XXX_DiscardUnknown()

func (*MetadataMatcher_PathSegment) XXX_Marshal

func (m *MetadataMatcher_PathSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MetadataMatcher_PathSegment) XXX_Merge

func (m *MetadataMatcher_PathSegment) XXX_Merge(src proto.Message)

func (*MetadataMatcher_PathSegment) XXX_OneofWrappers

func (*MetadataMatcher_PathSegment) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*MetadataMatcher_PathSegment) XXX_Size

func (m *MetadataMatcher_PathSegment) XXX_Size() int

func (*MetadataMatcher_PathSegment) XXX_Unmarshal

func (m *MetadataMatcher_PathSegment) XXX_Unmarshal(b []byte) error

type MetadataMatcher_PathSegmentValidationError

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

MetadataMatcher_PathSegmentValidationError is the validation error returned by MetadataMatcher_PathSegment.Validate if the designated constraints aren't met.

func (MetadataMatcher_PathSegmentValidationError) Cause

Cause function returns cause value.

func (MetadataMatcher_PathSegmentValidationError) Error

Error satisfies the builtin error interface

func (MetadataMatcher_PathSegmentValidationError) ErrorName

ErrorName returns error name.

func (MetadataMatcher_PathSegmentValidationError) Field

Field function returns field value.

func (MetadataMatcher_PathSegmentValidationError) Key

Key function returns key value.

func (MetadataMatcher_PathSegmentValidationError) Reason

Reason function returns reason value.

type MetadataMatcher_PathSegment_Key

type MetadataMatcher_PathSegment_Key struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3,oneof" json:"key,omitempty"`
}

func (*MetadataMatcher_PathSegment_Key) MarshalTo

func (m *MetadataMatcher_PathSegment_Key) MarshalTo(dAtA []byte) (int, error)

func (*MetadataMatcher_PathSegment_Key) MarshalToSizedBuffer

func (m *MetadataMatcher_PathSegment_Key) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MetadataMatcher_PathSegment_Key) Size

func (m *MetadataMatcher_PathSegment_Key) Size() (n int)

type NodeMatcher

type NodeMatcher struct {
	// Specifies match criteria on the node id.
	NodeId *StringMatcher `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// Specifies match criteria on the node metadata.
	NodeMetadatas        []*StructMatcher `protobuf:"bytes,2,rep,name=node_metadatas,json=nodeMetadatas,proto3" json:"node_metadatas,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Specifies the way to match a Node. The match follows AND semantics.

func (*NodeMatcher) Descriptor

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

func (*NodeMatcher) GetNodeId

func (m *NodeMatcher) GetNodeId() *StringMatcher

func (*NodeMatcher) GetNodeMetadatas

func (m *NodeMatcher) GetNodeMetadatas() []*StructMatcher

func (*NodeMatcher) Marshal

func (m *NodeMatcher) Marshal() (dAtA []byte, err error)

func (*NodeMatcher) MarshalTo

func (m *NodeMatcher) MarshalTo(dAtA []byte) (int, error)

func (*NodeMatcher) MarshalToSizedBuffer

func (m *NodeMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NodeMatcher) ProtoMessage

func (*NodeMatcher) ProtoMessage()

func (*NodeMatcher) Reset

func (m *NodeMatcher) Reset()

func (*NodeMatcher) Size

func (m *NodeMatcher) Size() (n int)

func (*NodeMatcher) String

func (m *NodeMatcher) String() string

func (*NodeMatcher) Unmarshal

func (m *NodeMatcher) Unmarshal(dAtA []byte) error

func (*NodeMatcher) Validate

func (m *NodeMatcher) Validate() error

Validate checks the field values on NodeMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*NodeMatcher) XXX_DiscardUnknown

func (m *NodeMatcher) XXX_DiscardUnknown()

func (*NodeMatcher) XXX_Marshal

func (m *NodeMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeMatcher) XXX_Merge

func (m *NodeMatcher) XXX_Merge(src proto.Message)

func (*NodeMatcher) XXX_Size

func (m *NodeMatcher) XXX_Size() int

func (*NodeMatcher) XXX_Unmarshal

func (m *NodeMatcher) XXX_Unmarshal(b []byte) error

type NodeMatcherValidationError

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

NodeMatcherValidationError is the validation error returned by NodeMatcher.Validate if the designated constraints aren't met.

func (NodeMatcherValidationError) Cause

Cause function returns cause value.

func (NodeMatcherValidationError) Error

Error satisfies the builtin error interface

func (NodeMatcherValidationError) ErrorName

func (e NodeMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (NodeMatcherValidationError) Field

Field function returns field value.

func (NodeMatcherValidationError) Key

Key function returns key value.

func (NodeMatcherValidationError) Reason

Reason function returns reason value.

type PathMatcher

type PathMatcher struct {
	// Types that are valid to be assigned to Rule:
	//	*PathMatcher_Path
	Rule                 isPathMatcher_Rule `protobuf_oneof:"rule"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Specifies the way to match a path on HTTP request.

func (*PathMatcher) Descriptor

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

func (*PathMatcher) GetPath

func (m *PathMatcher) GetPath() *StringMatcher

func (*PathMatcher) GetRule

func (m *PathMatcher) GetRule() isPathMatcher_Rule

func (*PathMatcher) Marshal

func (m *PathMatcher) Marshal() (dAtA []byte, err error)

func (*PathMatcher) MarshalTo

func (m *PathMatcher) MarshalTo(dAtA []byte) (int, error)

func (*PathMatcher) MarshalToSizedBuffer

func (m *PathMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PathMatcher) ProtoMessage

func (*PathMatcher) ProtoMessage()

func (*PathMatcher) Reset

func (m *PathMatcher) Reset()

func (*PathMatcher) Size

func (m *PathMatcher) Size() (n int)

func (*PathMatcher) String

func (m *PathMatcher) String() string

func (*PathMatcher) Unmarshal

func (m *PathMatcher) Unmarshal(dAtA []byte) error

func (*PathMatcher) Validate

func (m *PathMatcher) Validate() error

Validate checks the field values on PathMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*PathMatcher) XXX_DiscardUnknown

func (m *PathMatcher) XXX_DiscardUnknown()

func (*PathMatcher) XXX_Marshal

func (m *PathMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PathMatcher) XXX_Merge

func (m *PathMatcher) XXX_Merge(src proto.Message)

func (*PathMatcher) XXX_OneofWrappers

func (*PathMatcher) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*PathMatcher) XXX_Size

func (m *PathMatcher) XXX_Size() int

func (*PathMatcher) XXX_Unmarshal

func (m *PathMatcher) XXX_Unmarshal(b []byte) error

type PathMatcherValidationError

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

PathMatcherValidationError is the validation error returned by PathMatcher.Validate if the designated constraints aren't met.

func (PathMatcherValidationError) Cause

Cause function returns cause value.

func (PathMatcherValidationError) Error

Error satisfies the builtin error interface

func (PathMatcherValidationError) ErrorName

func (e PathMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (PathMatcherValidationError) Field

Field function returns field value.

func (PathMatcherValidationError) Key

Key function returns key value.

func (PathMatcherValidationError) Reason

Reason function returns reason value.

type PathMatcher_Path

type PathMatcher_Path struct {
	Path *StringMatcher `protobuf:"bytes,1,opt,name=path,proto3,oneof" json:"path,omitempty"`
}

func (*PathMatcher_Path) MarshalTo

func (m *PathMatcher_Path) MarshalTo(dAtA []byte) (int, error)

func (*PathMatcher_Path) MarshalToSizedBuffer

func (m *PathMatcher_Path) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PathMatcher_Path) Size

func (m *PathMatcher_Path) Size() (n int)

type RegexMatchAndSubstitute

type RegexMatchAndSubstitute struct {
	// The regular expression used to find portions of a string (hereafter called
	// the "subject string") that should be replaced. When a new string is
	// produced during the substitution operation, the new string is initially
	// the same as the subject string, but then all matches in the subject string
	// are replaced by the substitution string. If replacing all matches isn't
	// desired, regular expression anchors can be used to ensure a single match,
	// so as to replace just one occurrence of a pattern. Capture groups can be
	// used in the pattern to extract portions of the subject string, and then
	// referenced in the substitution string.
	Pattern *RegexMatcher `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
	// The string that should be substituted into matching portions of the
	// subject string during a substitution operation to produce a new string.
	// Capture groups in the pattern can be referenced in the substitution
	// string. Note, however, that the syntax for referring to capture groups is
	// defined by the chosen regular expression engine. Google's `RE2
	// <https://github.com/google/re2>`_ regular expression engine uses a
	// backslash followed by the capture group number to denote a numbered
	// capture group. E.g., “\1“ refers to capture group 1, and “\2“ refers
	// to capture group 2.
	Substitution         string   `protobuf:"bytes,2,opt,name=substitution,proto3" json:"substitution,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Describes how to match a string and then produce a new string using a regular expression and a substitution string.

func (*RegexMatchAndSubstitute) Descriptor

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

func (*RegexMatchAndSubstitute) GetPattern

func (m *RegexMatchAndSubstitute) GetPattern() *RegexMatcher

func (*RegexMatchAndSubstitute) GetSubstitution

func (m *RegexMatchAndSubstitute) GetSubstitution() string

func (*RegexMatchAndSubstitute) Marshal

func (m *RegexMatchAndSubstitute) Marshal() (dAtA []byte, err error)

func (*RegexMatchAndSubstitute) MarshalTo

func (m *RegexMatchAndSubstitute) MarshalTo(dAtA []byte) (int, error)

func (*RegexMatchAndSubstitute) MarshalToSizedBuffer

func (m *RegexMatchAndSubstitute) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegexMatchAndSubstitute) ProtoMessage

func (*RegexMatchAndSubstitute) ProtoMessage()

func (*RegexMatchAndSubstitute) Reset

func (m *RegexMatchAndSubstitute) Reset()

func (*RegexMatchAndSubstitute) Size

func (m *RegexMatchAndSubstitute) Size() (n int)

func (*RegexMatchAndSubstitute) String

func (m *RegexMatchAndSubstitute) String() string

func (*RegexMatchAndSubstitute) Unmarshal

func (m *RegexMatchAndSubstitute) Unmarshal(dAtA []byte) error

func (*RegexMatchAndSubstitute) Validate

func (m *RegexMatchAndSubstitute) Validate() error

Validate checks the field values on RegexMatchAndSubstitute with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*RegexMatchAndSubstitute) XXX_DiscardUnknown

func (m *RegexMatchAndSubstitute) XXX_DiscardUnknown()

func (*RegexMatchAndSubstitute) XXX_Marshal

func (m *RegexMatchAndSubstitute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegexMatchAndSubstitute) XXX_Merge

func (m *RegexMatchAndSubstitute) XXX_Merge(src proto.Message)

func (*RegexMatchAndSubstitute) XXX_Size

func (m *RegexMatchAndSubstitute) XXX_Size() int

func (*RegexMatchAndSubstitute) XXX_Unmarshal

func (m *RegexMatchAndSubstitute) XXX_Unmarshal(b []byte) error

type RegexMatchAndSubstituteValidationError

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

RegexMatchAndSubstituteValidationError is the validation error returned by RegexMatchAndSubstitute.Validate if the designated constraints aren't met.

func (RegexMatchAndSubstituteValidationError) Cause

Cause function returns cause value.

func (RegexMatchAndSubstituteValidationError) Error

Error satisfies the builtin error interface

func (RegexMatchAndSubstituteValidationError) ErrorName

ErrorName returns error name.

func (RegexMatchAndSubstituteValidationError) Field

Field function returns field value.

func (RegexMatchAndSubstituteValidationError) Key

Key function returns key value.

func (RegexMatchAndSubstituteValidationError) Reason

Reason function returns reason value.

type RegexMatcher

type RegexMatcher struct {
	// Types that are valid to be assigned to EngineType:
	//	*RegexMatcher_GoogleRe2
	EngineType isRegexMatcher_EngineType `protobuf_oneof:"engine_type"`
	// The regex match string. The string must be supported by the configured engine.
	Regex                string   `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A regex matcher designed for safety when used with untrusted input.

func (*RegexMatcher) Descriptor

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

func (*RegexMatcher) GetEngineType

func (m *RegexMatcher) GetEngineType() isRegexMatcher_EngineType

func (*RegexMatcher) GetGoogleRe2

func (m *RegexMatcher) GetGoogleRe2() *RegexMatcher_GoogleRE2

func (*RegexMatcher) GetRegex

func (m *RegexMatcher) GetRegex() string

func (*RegexMatcher) Marshal

func (m *RegexMatcher) Marshal() (dAtA []byte, err error)

func (*RegexMatcher) MarshalTo

func (m *RegexMatcher) MarshalTo(dAtA []byte) (int, error)

func (*RegexMatcher) MarshalToSizedBuffer

func (m *RegexMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegexMatcher) ProtoMessage

func (*RegexMatcher) ProtoMessage()

func (*RegexMatcher) Reset

func (m *RegexMatcher) Reset()

func (*RegexMatcher) Size

func (m *RegexMatcher) Size() (n int)

func (*RegexMatcher) String

func (m *RegexMatcher) String() string

func (*RegexMatcher) Unmarshal

func (m *RegexMatcher) Unmarshal(dAtA []byte) error

func (*RegexMatcher) Validate

func (m *RegexMatcher) Validate() error

Validate checks the field values on RegexMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*RegexMatcher) XXX_DiscardUnknown

func (m *RegexMatcher) XXX_DiscardUnknown()

func (*RegexMatcher) XXX_Marshal

func (m *RegexMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegexMatcher) XXX_Merge

func (m *RegexMatcher) XXX_Merge(src proto.Message)

func (*RegexMatcher) XXX_OneofWrappers

func (*RegexMatcher) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*RegexMatcher) XXX_Size

func (m *RegexMatcher) XXX_Size() int

func (*RegexMatcher) XXX_Unmarshal

func (m *RegexMatcher) XXX_Unmarshal(b []byte) error

type RegexMatcherValidationError

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

RegexMatcherValidationError is the validation error returned by RegexMatcher.Validate if the designated constraints aren't met.

func (RegexMatcherValidationError) Cause

Cause function returns cause value.

func (RegexMatcherValidationError) Error

Error satisfies the builtin error interface

func (RegexMatcherValidationError) ErrorName

func (e RegexMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (RegexMatcherValidationError) Field

Field function returns field value.

func (RegexMatcherValidationError) Key

Key function returns key value.

func (RegexMatcherValidationError) Reason

Reason function returns reason value.

type RegexMatcher_GoogleRE2

type RegexMatcher_GoogleRE2 struct {
	// This field controls the RE2 "program size" which is a rough estimate of how complex a
	// compiled regex is to evaluate. A regex that has a program size greater than the configured
	// value will fail to compile. In this case, the configured max program size can be increased
	// or the regex can be simplified. If not specified, the default is 100.
	MaxProgramSize       *types.UInt32Value `protobuf:"bytes,1,opt,name=max_program_size,json=maxProgramSize,proto3" json:"max_program_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Google's `RE2 <https://github.com/google/re2>`_ regex engine. The regex string must adhere to the documented `syntax <https://github.com/google/re2/wiki/Syntax>`_. The engine is designed to complete execution in linear time as well as limit the amount of memory used.

func (*RegexMatcher_GoogleRE2) Descriptor

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

func (*RegexMatcher_GoogleRE2) GetMaxProgramSize

func (m *RegexMatcher_GoogleRE2) GetMaxProgramSize() *types.UInt32Value

func (*RegexMatcher_GoogleRE2) Marshal

func (m *RegexMatcher_GoogleRE2) Marshal() (dAtA []byte, err error)

func (*RegexMatcher_GoogleRE2) MarshalTo

func (m *RegexMatcher_GoogleRE2) MarshalTo(dAtA []byte) (int, error)

func (*RegexMatcher_GoogleRE2) MarshalToSizedBuffer

func (m *RegexMatcher_GoogleRE2) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegexMatcher_GoogleRE2) ProtoMessage

func (*RegexMatcher_GoogleRE2) ProtoMessage()

func (*RegexMatcher_GoogleRE2) Reset

func (m *RegexMatcher_GoogleRE2) Reset()

func (*RegexMatcher_GoogleRE2) Size

func (m *RegexMatcher_GoogleRE2) Size() (n int)

func (*RegexMatcher_GoogleRE2) String

func (m *RegexMatcher_GoogleRE2) String() string

func (*RegexMatcher_GoogleRE2) Unmarshal

func (m *RegexMatcher_GoogleRE2) Unmarshal(dAtA []byte) error

func (*RegexMatcher_GoogleRE2) Validate

func (m *RegexMatcher_GoogleRE2) Validate() error

Validate checks the field values on RegexMatcher_GoogleRE2 with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*RegexMatcher_GoogleRE2) XXX_DiscardUnknown

func (m *RegexMatcher_GoogleRE2) XXX_DiscardUnknown()

func (*RegexMatcher_GoogleRE2) XXX_Marshal

func (m *RegexMatcher_GoogleRE2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RegexMatcher_GoogleRE2) XXX_Merge

func (m *RegexMatcher_GoogleRE2) XXX_Merge(src proto.Message)

func (*RegexMatcher_GoogleRE2) XXX_Size

func (m *RegexMatcher_GoogleRE2) XXX_Size() int

func (*RegexMatcher_GoogleRE2) XXX_Unmarshal

func (m *RegexMatcher_GoogleRE2) XXX_Unmarshal(b []byte) error

type RegexMatcher_GoogleRE2ValidationError

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

RegexMatcher_GoogleRE2ValidationError is the validation error returned by RegexMatcher_GoogleRE2.Validate if the designated constraints aren't met.

func (RegexMatcher_GoogleRE2ValidationError) Cause

Cause function returns cause value.

func (RegexMatcher_GoogleRE2ValidationError) Error

Error satisfies the builtin error interface

func (RegexMatcher_GoogleRE2ValidationError) ErrorName

ErrorName returns error name.

func (RegexMatcher_GoogleRE2ValidationError) Field

Field function returns field value.

func (RegexMatcher_GoogleRE2ValidationError) Key

Key function returns key value.

func (RegexMatcher_GoogleRE2ValidationError) Reason

Reason function returns reason value.

type RegexMatcher_GoogleRe2

type RegexMatcher_GoogleRe2 struct {
	GoogleRe2 *RegexMatcher_GoogleRE2 `protobuf:"bytes,1,opt,name=google_re2,json=googleRe2,proto3,oneof" json:"google_re2,omitempty"`
}

func (*RegexMatcher_GoogleRe2) MarshalTo

func (m *RegexMatcher_GoogleRe2) MarshalTo(dAtA []byte) (int, error)

func (*RegexMatcher_GoogleRe2) MarshalToSizedBuffer

func (m *RegexMatcher_GoogleRe2) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RegexMatcher_GoogleRe2) Size

func (m *RegexMatcher_GoogleRe2) Size() (n int)

type StringMatcher

type StringMatcher struct {
	// Types that are valid to be assigned to MatchPattern:
	//	*StringMatcher_Exact
	//	*StringMatcher_Prefix
	//	*StringMatcher_Suffix
	//	*StringMatcher_SafeRegex
	MatchPattern isStringMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
	// If true, indicates the exact/prefix/suffix matching should be case insensitive. This has no
	// effect for the safe_regex match.
	// For example, the matcher *data* will match both input string *Data* and *data* if set to true.
	IgnoreCase           bool     `protobuf:"varint,6,opt,name=ignore_case,json=ignoreCase,proto3" json:"ignore_case,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Specifies the way to match a string. [#next-free-field: 7]

func (*StringMatcher) Descriptor

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

func (*StringMatcher) GetExact

func (m *StringMatcher) GetExact() string

func (*StringMatcher) GetIgnoreCase

func (m *StringMatcher) GetIgnoreCase() bool

func (*StringMatcher) GetMatchPattern

func (m *StringMatcher) GetMatchPattern() isStringMatcher_MatchPattern

func (*StringMatcher) GetPrefix

func (m *StringMatcher) GetPrefix() string

func (*StringMatcher) GetSafeRegex

func (m *StringMatcher) GetSafeRegex() *RegexMatcher

func (*StringMatcher) GetSuffix

func (m *StringMatcher) GetSuffix() string

func (*StringMatcher) Marshal

func (m *StringMatcher) Marshal() (dAtA []byte, err error)

func (*StringMatcher) MarshalTo

func (m *StringMatcher) MarshalTo(dAtA []byte) (int, error)

func (*StringMatcher) MarshalToSizedBuffer

func (m *StringMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringMatcher) ProtoMessage

func (*StringMatcher) ProtoMessage()

func (*StringMatcher) Reset

func (m *StringMatcher) Reset()

func (*StringMatcher) Size

func (m *StringMatcher) Size() (n int)

func (*StringMatcher) String

func (m *StringMatcher) String() string

func (*StringMatcher) Unmarshal

func (m *StringMatcher) Unmarshal(dAtA []byte) error

func (*StringMatcher) Validate

func (m *StringMatcher) Validate() error

Validate checks the field values on StringMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*StringMatcher) XXX_DiscardUnknown

func (m *StringMatcher) XXX_DiscardUnknown()

func (*StringMatcher) XXX_Marshal

func (m *StringMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringMatcher) XXX_Merge

func (m *StringMatcher) XXX_Merge(src proto.Message)

func (*StringMatcher) XXX_OneofWrappers

func (*StringMatcher) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*StringMatcher) XXX_Size

func (m *StringMatcher) XXX_Size() int

func (*StringMatcher) XXX_Unmarshal

func (m *StringMatcher) XXX_Unmarshal(b []byte) error

type StringMatcherValidationError

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

StringMatcherValidationError is the validation error returned by StringMatcher.Validate if the designated constraints aren't met.

func (StringMatcherValidationError) Cause

Cause function returns cause value.

func (StringMatcherValidationError) Error

Error satisfies the builtin error interface

func (StringMatcherValidationError) ErrorName

func (e StringMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (StringMatcherValidationError) Field

Field function returns field value.

func (StringMatcherValidationError) Key

Key function returns key value.

func (StringMatcherValidationError) Reason

Reason function returns reason value.

type StringMatcher_Exact

type StringMatcher_Exact struct {
	Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof" json:"exact,omitempty"`
}

func (*StringMatcher_Exact) MarshalTo

func (m *StringMatcher_Exact) MarshalTo(dAtA []byte) (int, error)

func (*StringMatcher_Exact) MarshalToSizedBuffer

func (m *StringMatcher_Exact) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringMatcher_Exact) Size

func (m *StringMatcher_Exact) Size() (n int)

type StringMatcher_Prefix

type StringMatcher_Prefix struct {
	Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof" json:"prefix,omitempty"`
}

func (*StringMatcher_Prefix) MarshalTo

func (m *StringMatcher_Prefix) MarshalTo(dAtA []byte) (int, error)

func (*StringMatcher_Prefix) MarshalToSizedBuffer

func (m *StringMatcher_Prefix) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringMatcher_Prefix) Size

func (m *StringMatcher_Prefix) Size() (n int)

type StringMatcher_SafeRegex

type StringMatcher_SafeRegex struct {
	SafeRegex *RegexMatcher `protobuf:"bytes,5,opt,name=safe_regex,json=safeRegex,proto3,oneof" json:"safe_regex,omitempty"`
}

func (*StringMatcher_SafeRegex) MarshalTo

func (m *StringMatcher_SafeRegex) MarshalTo(dAtA []byte) (int, error)

func (*StringMatcher_SafeRegex) MarshalToSizedBuffer

func (m *StringMatcher_SafeRegex) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringMatcher_SafeRegex) Size

func (m *StringMatcher_SafeRegex) Size() (n int)

type StringMatcher_Suffix

type StringMatcher_Suffix struct {
	Suffix string `protobuf:"bytes,3,opt,name=suffix,proto3,oneof" json:"suffix,omitempty"`
}

func (*StringMatcher_Suffix) MarshalTo

func (m *StringMatcher_Suffix) MarshalTo(dAtA []byte) (int, error)

func (*StringMatcher_Suffix) MarshalToSizedBuffer

func (m *StringMatcher_Suffix) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringMatcher_Suffix) Size

func (m *StringMatcher_Suffix) Size() (n int)

type StructMatcher

type StructMatcher struct {
	// The path to retrieve the Value from the Struct.
	Path []*StructMatcher_PathSegment `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"`
	// The StructMatcher is matched if the value retrieved by path is matched to this value.
	Value                *ValueMatcher `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

StructMatcher provides a general interface to check if a given value is matched in google.protobuf.Struct. It uses `path` to retrieve the value from the struct and then check if it's matched to the specified value.

For example, for the following Struct:

.. code-block:: yaml

fields:
  a:
    struct_value:
      fields:
        b:
          struct_value:
            fields:
              c:
                string_value: pro
        t:
          list_value:
            values:
              - string_value: m
              - string_value: n

The following MetadataMatcher is matched as the path [a, b, c] will retrieve a string value "pro" from the Metadata which is matched to the specified prefix match.

.. code-block:: yaml

path:
- key: a
- key: b
- key: c
value:
  string_match:
    prefix: pr

The following StructMatcher is matched as the code will match one of the string values in the list at the path [a, t].

.. code-block:: yaml

path:
- key: a
- key: t
value:
  list_match:
    one_of:
      string_match:
        exact: m

An example use of StructMatcher is to match metadata in envoy.v*.core.Node.

func (*StructMatcher) Descriptor

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

func (*StructMatcher) GetPath

func (m *StructMatcher) GetPath() []*StructMatcher_PathSegment

func (*StructMatcher) GetValue

func (m *StructMatcher) GetValue() *ValueMatcher

func (*StructMatcher) Marshal

func (m *StructMatcher) Marshal() (dAtA []byte, err error)

func (*StructMatcher) MarshalTo

func (m *StructMatcher) MarshalTo(dAtA []byte) (int, error)

func (*StructMatcher) MarshalToSizedBuffer

func (m *StructMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StructMatcher) ProtoMessage

func (*StructMatcher) ProtoMessage()

func (*StructMatcher) Reset

func (m *StructMatcher) Reset()

func (*StructMatcher) Size

func (m *StructMatcher) Size() (n int)

func (*StructMatcher) String

func (m *StructMatcher) String() string

func (*StructMatcher) Unmarshal

func (m *StructMatcher) Unmarshal(dAtA []byte) error

func (*StructMatcher) Validate

func (m *StructMatcher) Validate() error

Validate checks the field values on StructMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*StructMatcher) XXX_DiscardUnknown

func (m *StructMatcher) XXX_DiscardUnknown()

func (*StructMatcher) XXX_Marshal

func (m *StructMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StructMatcher) XXX_Merge

func (m *StructMatcher) XXX_Merge(src proto.Message)

func (*StructMatcher) XXX_Size

func (m *StructMatcher) XXX_Size() int

func (*StructMatcher) XXX_Unmarshal

func (m *StructMatcher) XXX_Unmarshal(b []byte) error

type StructMatcherValidationError

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

StructMatcherValidationError is the validation error returned by StructMatcher.Validate if the designated constraints aren't met.

func (StructMatcherValidationError) Cause

Cause function returns cause value.

func (StructMatcherValidationError) Error

Error satisfies the builtin error interface

func (StructMatcherValidationError) ErrorName

func (e StructMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (StructMatcherValidationError) Field

Field function returns field value.

func (StructMatcherValidationError) Key

Key function returns key value.

func (StructMatcherValidationError) Reason

Reason function returns reason value.

type StructMatcher_PathSegment

type StructMatcher_PathSegment struct {
	// Types that are valid to be assigned to Segment:
	//	*StructMatcher_PathSegment_Key
	Segment              isStructMatcher_PathSegment_Segment `protobuf_oneof:"segment"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

Specifies the segment in a path to retrieve value from Struct.

func (*StructMatcher_PathSegment) Descriptor

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

func (*StructMatcher_PathSegment) GetKey

func (m *StructMatcher_PathSegment) GetKey() string

func (*StructMatcher_PathSegment) GetSegment

func (m *StructMatcher_PathSegment) GetSegment() isStructMatcher_PathSegment_Segment

func (*StructMatcher_PathSegment) Marshal

func (m *StructMatcher_PathSegment) Marshal() (dAtA []byte, err error)

func (*StructMatcher_PathSegment) MarshalTo

func (m *StructMatcher_PathSegment) MarshalTo(dAtA []byte) (int, error)

func (*StructMatcher_PathSegment) MarshalToSizedBuffer

func (m *StructMatcher_PathSegment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StructMatcher_PathSegment) ProtoMessage

func (*StructMatcher_PathSegment) ProtoMessage()

func (*StructMatcher_PathSegment) Reset

func (m *StructMatcher_PathSegment) Reset()

func (*StructMatcher_PathSegment) Size

func (m *StructMatcher_PathSegment) Size() (n int)

func (*StructMatcher_PathSegment) String

func (m *StructMatcher_PathSegment) String() string

func (*StructMatcher_PathSegment) Unmarshal

func (m *StructMatcher_PathSegment) Unmarshal(dAtA []byte) error

func (*StructMatcher_PathSegment) Validate

func (m *StructMatcher_PathSegment) Validate() error

Validate checks the field values on StructMatcher_PathSegment with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*StructMatcher_PathSegment) XXX_DiscardUnknown

func (m *StructMatcher_PathSegment) XXX_DiscardUnknown()

func (*StructMatcher_PathSegment) XXX_Marshal

func (m *StructMatcher_PathSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StructMatcher_PathSegment) XXX_Merge

func (m *StructMatcher_PathSegment) XXX_Merge(src proto.Message)

func (*StructMatcher_PathSegment) XXX_OneofWrappers

func (*StructMatcher_PathSegment) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*StructMatcher_PathSegment) XXX_Size

func (m *StructMatcher_PathSegment) XXX_Size() int

func (*StructMatcher_PathSegment) XXX_Unmarshal

func (m *StructMatcher_PathSegment) XXX_Unmarshal(b []byte) error

type StructMatcher_PathSegmentValidationError

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

StructMatcher_PathSegmentValidationError is the validation error returned by StructMatcher_PathSegment.Validate if the designated constraints aren't met.

func (StructMatcher_PathSegmentValidationError) Cause

Cause function returns cause value.

func (StructMatcher_PathSegmentValidationError) Error

Error satisfies the builtin error interface

func (StructMatcher_PathSegmentValidationError) ErrorName

ErrorName returns error name.

func (StructMatcher_PathSegmentValidationError) Field

Field function returns field value.

func (StructMatcher_PathSegmentValidationError) Key

Key function returns key value.

func (StructMatcher_PathSegmentValidationError) Reason

Reason function returns reason value.

type StructMatcher_PathSegment_Key

type StructMatcher_PathSegment_Key struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3,oneof" json:"key,omitempty"`
}

func (*StructMatcher_PathSegment_Key) MarshalTo

func (m *StructMatcher_PathSegment_Key) MarshalTo(dAtA []byte) (int, error)

func (*StructMatcher_PathSegment_Key) MarshalToSizedBuffer

func (m *StructMatcher_PathSegment_Key) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StructMatcher_PathSegment_Key) Size

func (m *StructMatcher_PathSegment_Key) Size() (n int)

type ValueMatcher

type ValueMatcher struct {
	// Specifies how to match a value.
	//
	// Types that are valid to be assigned to MatchPattern:
	//	*ValueMatcher_NullMatch_
	//	*ValueMatcher_DoubleMatch
	//	*ValueMatcher_StringMatch
	//	*ValueMatcher_BoolMatch
	//	*ValueMatcher_PresentMatch
	//	*ValueMatcher_ListMatch
	MatchPattern         isValueMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

Specifies the way to match a ProtobufWkt::Value. Primitive values and ListValue are supported. StructValue is not supported and is always not matched. [#next-free-field: 7]

func (*ValueMatcher) Descriptor

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

func (*ValueMatcher) GetBoolMatch

func (m *ValueMatcher) GetBoolMatch() bool

func (*ValueMatcher) GetDoubleMatch

func (m *ValueMatcher) GetDoubleMatch() *DoubleMatcher

func (*ValueMatcher) GetListMatch

func (m *ValueMatcher) GetListMatch() *ListMatcher

func (*ValueMatcher) GetMatchPattern

func (m *ValueMatcher) GetMatchPattern() isValueMatcher_MatchPattern

func (*ValueMatcher) GetNullMatch

func (m *ValueMatcher) GetNullMatch() *ValueMatcher_NullMatch

func (*ValueMatcher) GetPresentMatch

func (m *ValueMatcher) GetPresentMatch() bool

func (*ValueMatcher) GetStringMatch

func (m *ValueMatcher) GetStringMatch() *StringMatcher

func (*ValueMatcher) Marshal

func (m *ValueMatcher) Marshal() (dAtA []byte, err error)

func (*ValueMatcher) MarshalTo

func (m *ValueMatcher) MarshalTo(dAtA []byte) (int, error)

func (*ValueMatcher) MarshalToSizedBuffer

func (m *ValueMatcher) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValueMatcher) ProtoMessage

func (*ValueMatcher) ProtoMessage()

func (*ValueMatcher) Reset

func (m *ValueMatcher) Reset()

func (*ValueMatcher) Size

func (m *ValueMatcher) Size() (n int)

func (*ValueMatcher) String

func (m *ValueMatcher) String() string

func (*ValueMatcher) Unmarshal

func (m *ValueMatcher) Unmarshal(dAtA []byte) error

func (*ValueMatcher) Validate

func (m *ValueMatcher) Validate() error

Validate checks the field values on ValueMatcher with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ValueMatcher) XXX_DiscardUnknown

func (m *ValueMatcher) XXX_DiscardUnknown()

func (*ValueMatcher) XXX_Marshal

func (m *ValueMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValueMatcher) XXX_Merge

func (m *ValueMatcher) XXX_Merge(src proto.Message)

func (*ValueMatcher) XXX_OneofWrappers

func (*ValueMatcher) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ValueMatcher) XXX_Size

func (m *ValueMatcher) XXX_Size() int

func (*ValueMatcher) XXX_Unmarshal

func (m *ValueMatcher) XXX_Unmarshal(b []byte) error

type ValueMatcherValidationError

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

ValueMatcherValidationError is the validation error returned by ValueMatcher.Validate if the designated constraints aren't met.

func (ValueMatcherValidationError) Cause

Cause function returns cause value.

func (ValueMatcherValidationError) Error

Error satisfies the builtin error interface

func (ValueMatcherValidationError) ErrorName

func (e ValueMatcherValidationError) ErrorName() string

ErrorName returns error name.

func (ValueMatcherValidationError) Field

Field function returns field value.

func (ValueMatcherValidationError) Key

Key function returns key value.

func (ValueMatcherValidationError) Reason

Reason function returns reason value.

type ValueMatcher_BoolMatch

type ValueMatcher_BoolMatch struct {
	BoolMatch bool `protobuf:"varint,4,opt,name=bool_match,json=boolMatch,proto3,oneof" json:"bool_match,omitempty"`
}

func (*ValueMatcher_BoolMatch) MarshalTo

func (m *ValueMatcher_BoolMatch) MarshalTo(dAtA []byte) (int, error)

func (*ValueMatcher_BoolMatch) MarshalToSizedBuffer

func (m *ValueMatcher_BoolMatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValueMatcher_BoolMatch) Size

func (m *ValueMatcher_BoolMatch) Size() (n int)

type ValueMatcher_DoubleMatch

type ValueMatcher_DoubleMatch struct {
	DoubleMatch *DoubleMatcher `protobuf:"bytes,2,opt,name=double_match,json=doubleMatch,proto3,oneof" json:"double_match,omitempty"`
}

func (*ValueMatcher_DoubleMatch) MarshalTo

func (m *ValueMatcher_DoubleMatch) MarshalTo(dAtA []byte) (int, error)

func (*ValueMatcher_DoubleMatch) MarshalToSizedBuffer

func (m *ValueMatcher_DoubleMatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValueMatcher_DoubleMatch) Size

func (m *ValueMatcher_DoubleMatch) Size() (n int)

type ValueMatcher_ListMatch

type ValueMatcher_ListMatch struct {
	ListMatch *ListMatcher `protobuf:"bytes,6,opt,name=list_match,json=listMatch,proto3,oneof" json:"list_match,omitempty"`
}

func (*ValueMatcher_ListMatch) MarshalTo

func (m *ValueMatcher_ListMatch) MarshalTo(dAtA []byte) (int, error)

func (*ValueMatcher_ListMatch) MarshalToSizedBuffer

func (m *ValueMatcher_ListMatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValueMatcher_ListMatch) Size

func (m *ValueMatcher_ListMatch) Size() (n int)

type ValueMatcher_NullMatch

type ValueMatcher_NullMatch struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

NullMatch is an empty message to specify a null value.

func (*ValueMatcher_NullMatch) Descriptor

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

func (*ValueMatcher_NullMatch) Marshal

func (m *ValueMatcher_NullMatch) Marshal() (dAtA []byte, err error)

func (*ValueMatcher_NullMatch) MarshalTo

func (m *ValueMatcher_NullMatch) MarshalTo(dAtA []byte) (int, error)

func (*ValueMatcher_NullMatch) MarshalToSizedBuffer

func (m *ValueMatcher_NullMatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValueMatcher_NullMatch) ProtoMessage

func (*ValueMatcher_NullMatch) ProtoMessage()

func (*ValueMatcher_NullMatch) Reset

func (m *ValueMatcher_NullMatch) Reset()

func (*ValueMatcher_NullMatch) Size

func (m *ValueMatcher_NullMatch) Size() (n int)

func (*ValueMatcher_NullMatch) String

func (m *ValueMatcher_NullMatch) String() string

func (*ValueMatcher_NullMatch) Unmarshal

func (m *ValueMatcher_NullMatch) Unmarshal(dAtA []byte) error

func (*ValueMatcher_NullMatch) Validate

func (m *ValueMatcher_NullMatch) Validate() error

Validate checks the field values on ValueMatcher_NullMatch with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ValueMatcher_NullMatch) XXX_DiscardUnknown

func (m *ValueMatcher_NullMatch) XXX_DiscardUnknown()

func (*ValueMatcher_NullMatch) XXX_Marshal

func (m *ValueMatcher_NullMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ValueMatcher_NullMatch) XXX_Merge

func (m *ValueMatcher_NullMatch) XXX_Merge(src proto.Message)

func (*ValueMatcher_NullMatch) XXX_Size

func (m *ValueMatcher_NullMatch) XXX_Size() int

func (*ValueMatcher_NullMatch) XXX_Unmarshal

func (m *ValueMatcher_NullMatch) XXX_Unmarshal(b []byte) error

type ValueMatcher_NullMatchValidationError

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

ValueMatcher_NullMatchValidationError is the validation error returned by ValueMatcher_NullMatch.Validate if the designated constraints aren't met.

func (ValueMatcher_NullMatchValidationError) Cause

Cause function returns cause value.

func (ValueMatcher_NullMatchValidationError) Error

Error satisfies the builtin error interface

func (ValueMatcher_NullMatchValidationError) ErrorName

ErrorName returns error name.

func (ValueMatcher_NullMatchValidationError) Field

Field function returns field value.

func (ValueMatcher_NullMatchValidationError) Key

Key function returns key value.

func (ValueMatcher_NullMatchValidationError) Reason

Reason function returns reason value.

type ValueMatcher_NullMatch_

type ValueMatcher_NullMatch_ struct {
	NullMatch *ValueMatcher_NullMatch `protobuf:"bytes,1,opt,name=null_match,json=nullMatch,proto3,oneof" json:"null_match,omitempty"`
}

func (*ValueMatcher_NullMatch_) MarshalTo

func (m *ValueMatcher_NullMatch_) MarshalTo(dAtA []byte) (int, error)

func (*ValueMatcher_NullMatch_) MarshalToSizedBuffer

func (m *ValueMatcher_NullMatch_) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValueMatcher_NullMatch_) Size

func (m *ValueMatcher_NullMatch_) Size() (n int)

type ValueMatcher_PresentMatch

type ValueMatcher_PresentMatch struct {
	PresentMatch bool `protobuf:"varint,5,opt,name=present_match,json=presentMatch,proto3,oneof" json:"present_match,omitempty"`
}

func (*ValueMatcher_PresentMatch) MarshalTo

func (m *ValueMatcher_PresentMatch) MarshalTo(dAtA []byte) (int, error)

func (*ValueMatcher_PresentMatch) MarshalToSizedBuffer

func (m *ValueMatcher_PresentMatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValueMatcher_PresentMatch) Size

func (m *ValueMatcher_PresentMatch) Size() (n int)

type ValueMatcher_StringMatch

type ValueMatcher_StringMatch struct {
	StringMatch *StringMatcher `protobuf:"bytes,3,opt,name=string_match,json=stringMatch,proto3,oneof" json:"string_match,omitempty"`
}

func (*ValueMatcher_StringMatch) MarshalTo

func (m *ValueMatcher_StringMatch) MarshalTo(dAtA []byte) (int, error)

func (*ValueMatcher_StringMatch) MarshalToSizedBuffer

func (m *ValueMatcher_StringMatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValueMatcher_StringMatch) Size

func (m *ValueMatcher_StringMatch) Size() (n int)

Jump to

Keyboard shortcuts

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