matcher

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 17 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")
)
View Source
var (
	ErrInvalidLengthNumber = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNumber   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthString = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowString   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthValue = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValue   = fmt.Errorf("proto: integer overflow")
)

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() *_type.DoubleRange

func (*DoubleMatcher) Marshal added in v0.5.0

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

func (*DoubleMatcher) MarshalTo added in v0.5.0

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

func (*DoubleMatcher) ProtoMessage

func (*DoubleMatcher) ProtoMessage()

func (*DoubleMatcher) Reset

func (m *DoubleMatcher) Reset()

func (*DoubleMatcher) Size added in v0.5.0

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

func (*DoubleMatcher) String

func (m *DoubleMatcher) String() string

func (*DoubleMatcher) Unmarshal added in v0.5.0

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

func (m *DoubleMatcher) XXX_DiscardUnknown()

func (*DoubleMatcher) XXX_Marshal added in v0.5.0

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

func (*DoubleMatcher) XXX_Merge added in v0.5.0

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

func (*DoubleMatcher) XXX_OneofFuncs added in v0.5.0

func (*DoubleMatcher) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*DoubleMatcher) XXX_Size added in v0.5.0

func (m *DoubleMatcher) XXX_Size() int

func (*DoubleMatcher) XXX_Unmarshal added in v0.5.0

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

type DoubleMatcherValidationError

type DoubleMatcherValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (DoubleMatcherValidationError) Error

Error satisfies the builtin error interface

type DoubleMatcher_Exact

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

func (*DoubleMatcher_Exact) MarshalTo added in v0.5.0

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

func (*DoubleMatcher_Exact) Size added in v0.5.0

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

type DoubleMatcher_Range

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

func (*DoubleMatcher_Range) MarshalTo added in v0.5.0

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

func (*DoubleMatcher_Range) Size added in v0.5.0

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

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

func (*ListMatcher) MarshalTo added in v0.5.0

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

func (*ListMatcher) ProtoMessage

func (*ListMatcher) ProtoMessage()

func (*ListMatcher) Reset

func (m *ListMatcher) Reset()

func (*ListMatcher) Size added in v0.5.0

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

func (*ListMatcher) String

func (m *ListMatcher) String() string

func (*ListMatcher) Unmarshal added in v0.5.0

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

func (m *ListMatcher) XXX_DiscardUnknown()

func (*ListMatcher) XXX_Marshal added in v0.5.0

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

func (*ListMatcher) XXX_Merge added in v0.5.0

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

func (*ListMatcher) XXX_OneofFuncs added in v0.5.0

func (*ListMatcher) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*ListMatcher) XXX_Size added in v0.5.0

func (m *ListMatcher) XXX_Size() int

func (*ListMatcher) XXX_Unmarshal added in v0.5.0

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

type ListMatcherValidationError

type ListMatcherValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (ListMatcherValidationError) Error

Error satisfies the builtin error interface

type ListMatcher_OneOf

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

func (*ListMatcher_OneOf) MarshalTo added in v0.5.0

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

func (*ListMatcher_OneOf) Size added in v0.5.0

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

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

func (*ListStringMatcher) MarshalTo added in v0.6.1

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

func (*ListStringMatcher) ProtoMessage

func (*ListStringMatcher) ProtoMessage()

func (*ListStringMatcher) Reset

func (m *ListStringMatcher) Reset()

func (*ListStringMatcher) Size added in v0.6.1

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

func (*ListStringMatcher) String

func (m *ListStringMatcher) String() string

func (*ListStringMatcher) Unmarshal added in v0.6.1

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

func (m *ListStringMatcher) XXX_DiscardUnknown()

func (*ListStringMatcher) XXX_Marshal added in v0.6.1

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

func (*ListStringMatcher) XXX_Merge added in v0.6.1

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

func (*ListStringMatcher) XXX_Size added in v0.6.1

func (m *ListStringMatcher) XXX_Size() int

func (*ListStringMatcher) XXX_Unmarshal added in v0.6.1

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

type ListStringMatcherValidationError

type ListStringMatcherValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (ListStringMatcherValidationError) Error

Error satisfies the builtin error interface

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:"-"`
}

MetadataMatcher provides a general interface to check if a given value is matched in :ref:`Metadata <envoy_api_msg_core.Metadata>`. It uses `filter` and `path` to retrieve the value from the Metadata and then check if it's matched to the specified value.

For example, for the following Metadata:

.. code-block:: yaml

filter_metadata:
  envoy.filters.http.rbac:
    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

filter: envoy.filters.http.rbac
path:
- key: a
- key: b
- key: c
value:
  string_match:
    prefix: pr

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

.. code-block:: yaml

filter: envoy.filters.http.rbac
path:
- key: a
- key: t
value:
  list_match:
    one_of:
      string_match:
        exact: m

An example use of MetadataMatcher is specifying additional metadata in envoy.filters.http.rbac to enforce access control based on dynamic metadata in a request. See :ref:`Permission <envoy_api_msg_config.rbac.v2alpha.Permission>` and :ref:`Principal <envoy_api_msg_config.rbac.v2alpha.Principal>`.

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

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

func (*MetadataMatcher) MarshalTo added in v0.5.0

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

func (*MetadataMatcher) ProtoMessage

func (*MetadataMatcher) ProtoMessage()

func (*MetadataMatcher) Reset

func (m *MetadataMatcher) Reset()

func (*MetadataMatcher) Size added in v0.5.0

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

func (*MetadataMatcher) String

func (m *MetadataMatcher) String() string

func (*MetadataMatcher) Unmarshal added in v0.5.0

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

func (m *MetadataMatcher) XXX_DiscardUnknown()

func (*MetadataMatcher) XXX_Marshal added in v0.5.0

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

func (*MetadataMatcher) XXX_Merge added in v0.5.0

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

func (*MetadataMatcher) XXX_Size added in v0.5.0

func (m *MetadataMatcher) XXX_Size() int

func (*MetadataMatcher) XXX_Unmarshal added in v0.5.0

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

type MetadataMatcherValidationError

type MetadataMatcherValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (MetadataMatcherValidationError) Error

Error satisfies the builtin error interface

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

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

func (*MetadataMatcher_PathSegment) MarshalTo added in v0.5.0

func (m *MetadataMatcher_PathSegment) MarshalTo(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 added in v0.5.0

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

func (*MetadataMatcher_PathSegment) String

func (m *MetadataMatcher_PathSegment) String() string

func (*MetadataMatcher_PathSegment) Unmarshal added in v0.5.0

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

func (m *MetadataMatcher_PathSegment) XXX_DiscardUnknown()

func (*MetadataMatcher_PathSegment) XXX_Marshal added in v0.5.0

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

func (*MetadataMatcher_PathSegment) XXX_Merge added in v0.5.0

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

func (*MetadataMatcher_PathSegment) XXX_OneofFuncs added in v0.5.0

func (*MetadataMatcher_PathSegment) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*MetadataMatcher_PathSegment) XXX_Size added in v0.5.0

func (m *MetadataMatcher_PathSegment) XXX_Size() int

func (*MetadataMatcher_PathSegment) XXX_Unmarshal added in v0.5.0

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

type MetadataMatcher_PathSegmentValidationError

type MetadataMatcher_PathSegmentValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (MetadataMatcher_PathSegmentValidationError) Error

Error satisfies the builtin error interface

type MetadataMatcher_PathSegment_Key

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

func (*MetadataMatcher_PathSegment_Key) MarshalTo added in v0.5.0

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

func (*MetadataMatcher_PathSegment_Key) Size added in v0.5.0

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

type StringMatcher

type StringMatcher struct {
	// Types that are valid to be assigned to MatchPattern:
	//	*StringMatcher_Exact
	//	*StringMatcher_Prefix
	//	*StringMatcher_Suffix
	//	*StringMatcher_Regex
	MatchPattern         isStringMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

Specifies the way to match a string.

func (*StringMatcher) Descriptor

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

func (*StringMatcher) GetExact

func (m *StringMatcher) GetExact() string

func (*StringMatcher) GetMatchPattern

func (m *StringMatcher) GetMatchPattern() isStringMatcher_MatchPattern

func (*StringMatcher) GetPrefix

func (m *StringMatcher) GetPrefix() string

func (*StringMatcher) GetRegex

func (m *StringMatcher) GetRegex() string

func (*StringMatcher) GetSuffix

func (m *StringMatcher) GetSuffix() string

func (*StringMatcher) Marshal added in v0.5.0

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

func (*StringMatcher) MarshalTo added in v0.5.0

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

func (*StringMatcher) ProtoMessage

func (*StringMatcher) ProtoMessage()

func (*StringMatcher) Reset

func (m *StringMatcher) Reset()

func (*StringMatcher) Size added in v0.5.0

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

func (*StringMatcher) String

func (m *StringMatcher) String() string

func (*StringMatcher) Unmarshal added in v0.5.0

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

func (m *StringMatcher) XXX_DiscardUnknown()

func (*StringMatcher) XXX_Marshal added in v0.5.0

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

func (*StringMatcher) XXX_Merge added in v0.5.0

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

func (*StringMatcher) XXX_OneofFuncs added in v0.5.0

func (*StringMatcher) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*StringMatcher) XXX_Size added in v0.5.0

func (m *StringMatcher) XXX_Size() int

func (*StringMatcher) XXX_Unmarshal added in v0.5.0

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

type StringMatcherValidationError

type StringMatcherValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (StringMatcherValidationError) Error

Error satisfies the builtin error interface

type StringMatcher_Exact

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

func (*StringMatcher_Exact) MarshalTo added in v0.5.0

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

func (*StringMatcher_Exact) Size added in v0.5.0

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

type StringMatcher_Prefix

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

func (*StringMatcher_Prefix) MarshalTo added in v0.5.0

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

func (*StringMatcher_Prefix) Size added in v0.5.0

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

type StringMatcher_Regex

type StringMatcher_Regex struct {
	Regex string `protobuf:"bytes,4,opt,name=regex,proto3,oneof"`
}

func (*StringMatcher_Regex) MarshalTo added in v0.5.0

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

func (*StringMatcher_Regex) Size added in v0.5.0

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

type StringMatcher_Suffix

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

func (*StringMatcher_Suffix) MarshalTo added in v0.5.0

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

func (*StringMatcher_Suffix) Size added in v0.5.0

func (m *StringMatcher_Suffix) 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.

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

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

func (*ValueMatcher) MarshalTo added in v0.5.0

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

func (*ValueMatcher) ProtoMessage

func (*ValueMatcher) ProtoMessage()

func (*ValueMatcher) Reset

func (m *ValueMatcher) Reset()

func (*ValueMatcher) Size added in v0.5.0

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

func (*ValueMatcher) String

func (m *ValueMatcher) String() string

func (*ValueMatcher) Unmarshal added in v0.5.0

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

func (m *ValueMatcher) XXX_DiscardUnknown()

func (*ValueMatcher) XXX_Marshal added in v0.5.0

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

func (*ValueMatcher) XXX_Merge added in v0.5.0

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

func (*ValueMatcher) XXX_OneofFuncs added in v0.5.0

func (*ValueMatcher) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*ValueMatcher) XXX_Size added in v0.5.0

func (m *ValueMatcher) XXX_Size() int

func (*ValueMatcher) XXX_Unmarshal added in v0.5.0

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

type ValueMatcherValidationError

type ValueMatcherValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (ValueMatcherValidationError) Error

Error satisfies the builtin error interface

type ValueMatcher_BoolMatch

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

func (*ValueMatcher_BoolMatch) MarshalTo added in v0.5.0

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

func (*ValueMatcher_BoolMatch) Size added in v0.5.0

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"`
}

func (*ValueMatcher_DoubleMatch) MarshalTo added in v0.5.0

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

func (*ValueMatcher_DoubleMatch) Size added in v0.5.0

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"`
}

func (*ValueMatcher_ListMatch) MarshalTo added in v0.5.0

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

func (*ValueMatcher_ListMatch) Size added in v0.5.0

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

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

func (*ValueMatcher_NullMatch) MarshalTo added in v0.5.0

func (m *ValueMatcher_NullMatch) MarshalTo(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 added in v0.5.0

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

func (*ValueMatcher_NullMatch) String

func (m *ValueMatcher_NullMatch) String() string

func (*ValueMatcher_NullMatch) Unmarshal added in v0.5.0

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

func (m *ValueMatcher_NullMatch) XXX_DiscardUnknown()

func (*ValueMatcher_NullMatch) XXX_Marshal added in v0.5.0

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

func (*ValueMatcher_NullMatch) XXX_Merge added in v0.5.0

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

func (*ValueMatcher_NullMatch) XXX_Size added in v0.5.0

func (m *ValueMatcher_NullMatch) XXX_Size() int

func (*ValueMatcher_NullMatch) XXX_Unmarshal added in v0.5.0

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

type ValueMatcher_NullMatchValidationError

type ValueMatcher_NullMatchValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (ValueMatcher_NullMatchValidationError) Error

Error satisfies the builtin error interface

type ValueMatcher_NullMatch_

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

func (*ValueMatcher_NullMatch_) MarshalTo added in v0.5.0

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

func (*ValueMatcher_NullMatch_) Size added in v0.5.0

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"`
}

func (*ValueMatcher_PresentMatch) MarshalTo added in v0.5.0

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

func (*ValueMatcher_PresentMatch) Size added in v0.5.0

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"`
}

func (*ValueMatcher_StringMatch) MarshalTo added in v0.5.0

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

func (*ValueMatcher_StringMatch) Size added in v0.5.0

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