core

package
v0.0.0-...-bd7d70c Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StringMatchOp_name = map[int32]string{
		0: "Equal",
		1: "NotEqual",
		2: "RegexMatch",
		3: "RegexNotMatch",
	}
	StringMatchOp_value = map[string]int32{
		"Equal":         0,
		"NotEqual":      1,
		"RegexMatch":    2,
		"RegexNotMatch": 3,
	}
)

Enum value maps for StringMatchOp.

View Source
var (
	CollectionMatchOp_name = map[int32]string{
		0: "ContainsAllOf",
		1: "ContainsAnyOf",
	}
	CollectionMatchOp_value = map[string]int32{
		"ContainsAllOf": 0,
		"ContainsAnyOf": 1,
	}
)

Enum value maps for CollectionMatchOp.

View Source
var File_pkg_apis_core_core_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CollectionMatchOp

type CollectionMatchOp int32
const (
	// ContainsAllOf matches collections which contain all of the values specified in the query.
	CollectionMatchOp_ContainsAllOf CollectionMatchOp = 0
	// ContainsAllOf matches collections which contain any of the values specified in the query.
	CollectionMatchOp_ContainsAnyOf CollectionMatchOp = 1
)

func (CollectionMatchOp) Descriptor

func (CollectionMatchOp) Enum

func (CollectionMatchOp) EnumDescriptor deprecated

func (CollectionMatchOp) EnumDescriptor() ([]byte, []int)

Deprecated: Use CollectionMatchOp.Descriptor instead.

func (CollectionMatchOp) Number

func (CollectionMatchOp) String

func (x CollectionMatchOp) String() string

func (CollectionMatchOp) Type

type CollectionQuery

type CollectionQuery struct {
	Values  []string          `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	MatchOp CollectionMatchOp `protobuf:"varint,2,opt,name=match_op,json=matchOp,proto3,enum=core.CollectionMatchOp" json:"match_op,omitempty"`
	// contains filtered or unexported fields
}

func (*CollectionQuery) Descriptor deprecated

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

Deprecated: Use CollectionQuery.ProtoReflect.Descriptor instead.

func (*CollectionQuery) GetMatchOp

func (x *CollectionQuery) GetMatchOp() CollectionMatchOp

func (*CollectionQuery) GetValues

func (x *CollectionQuery) GetValues() []string

func (*CollectionQuery) Matches

func (q *CollectionQuery) Matches(c []string) (bool, error)

func (*CollectionQuery) ProtoMessage

func (*CollectionQuery) ProtoMessage()

func (*CollectionQuery) ProtoReflect

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

func (*CollectionQuery) Reset

func (x *CollectionQuery) Reset()

func (*CollectionQuery) String

func (x *CollectionQuery) String() string

type NamespacedName

type NamespacedName struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespacedName) Descriptor deprecated

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

Deprecated: Use NamespacedName.ProtoReflect.Descriptor instead.

func (*NamespacedName) GetName

func (x *NamespacedName) GetName() string

func (*NamespacedName) GetNamespace

func (x *NamespacedName) GetNamespace() string

func (*NamespacedName) ProtoMessage

func (*NamespacedName) ProtoMessage()

func (*NamespacedName) ProtoReflect

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

func (*NamespacedName) Reset

func (x *NamespacedName) Reset()

func (*NamespacedName) String

func (x *NamespacedName) String() string

type StringMatchOp

type StringMatchOp int32
const (
	StringMatchOp_Equal         StringMatchOp = 0
	StringMatchOp_NotEqual      StringMatchOp = 1
	StringMatchOp_RegexMatch    StringMatchOp = 2
	StringMatchOp_RegexNotMatch StringMatchOp = 3
)

func (StringMatchOp) Descriptor

func (StringMatchOp) Enum

func (x StringMatchOp) Enum() *StringMatchOp

func (StringMatchOp) EnumDescriptor deprecated

func (StringMatchOp) EnumDescriptor() ([]byte, []int)

Deprecated: Use StringMatchOp.Descriptor instead.

func (StringMatchOp) Number

func (StringMatchOp) String

func (x StringMatchOp) String() string

func (StringMatchOp) Type

type StringQuery

type StringQuery struct {
	Value   string        `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	MatchOp StringMatchOp `protobuf:"varint,2,opt,name=match_op,json=matchOp,proto3,enum=core.StringMatchOp" json:"match_op,omitempty"`
	// contains filtered or unexported fields
}

func (*StringQuery) Descriptor deprecated

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

Deprecated: Use StringQuery.ProtoReflect.Descriptor instead.

func (*StringQuery) GetMatchOp

func (x *StringQuery) GetMatchOp() StringMatchOp

func (*StringQuery) GetValue

func (x *StringQuery) GetValue() string

func (*StringQuery) Matches

func (q *StringQuery) Matches(s string) (bool, error)

func (*StringQuery) ProtoMessage

func (*StringQuery) ProtoMessage()

func (*StringQuery) ProtoReflect

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

func (*StringQuery) Reset

func (x *StringQuery) Reset()

func (*StringQuery) String

func (x *StringQuery) String() string

Jump to

Keyboard shortcuts

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