Documentation
¶
Index ¶
- Variables
- type Label
- type Selector
- func (*Selector) Descriptor() ([]byte, []int)deprecated
- func (x *Selector) GetKey() string
- func (x *Selector) GetOp() SelectorOp
- func (x *Selector) GetValue() string
- func (*Selector) ProtoMessage()
- func (x *Selector) ProtoReflect() protoreflect.Message
- func (x *Selector) Reset()
- func (x *Selector) String() string
- type SelectorOp
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SelectorOp_name = map[int32]string{ 0: "EQ", 1: "NOT_EQ", 2: "IN", 3: "NOT_IN", 4: "EXIST", 5: "NOT_EXIST", } SelectorOp_value = map[string]int32{ "EQ": 0, "NOT_EQ": 1, "IN": 2, "NOT_IN": 3, "EXIST": 4, "NOT_EXIST": 5, } )
Enum value maps for SelectorOp.
Functions ¶
This section is empty.
Types ¶
type Label ¶
type Label struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value *string `protobuf:"bytes,2,opt,name=value,proto3,oneof" json:"value,omitempty"`
// contains filtered or unexported fields
}
Label defines a label as a key value pair
func (*Label) Descriptor
deprecated
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) ProtoReflect ¶
func (x *Label) ProtoReflect() protoreflect.Message
type Selector ¶
type Selector struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Op SelectorOp `protobuf:"varint,2,opt,name=op,proto3,enum=api.label.SelectorOp" json:"op,omitempty"`
Value *string `protobuf:"bytes,3,opt,name=value,proto3,oneof" json:"value,omitempty"`
// contains filtered or unexported fields
}
Selector defines a selector as a key value pair with an operation
func (*Selector) Descriptor
deprecated
func (*Selector) GetOp ¶
func (x *Selector) GetOp() SelectorOp
func (*Selector) ProtoMessage ¶
func (*Selector) ProtoMessage()
func (*Selector) ProtoReflect ¶
func (x *Selector) ProtoReflect() protoreflect.Message
type SelectorOp ¶
type SelectorOp int32
SelectorOp defines the operation to be used in a selector
const ( SelectorOp_EQ SelectorOp = 0 SelectorOp_NOT_EQ SelectorOp = 1 SelectorOp_IN SelectorOp = 2 SelectorOp_NOT_IN SelectorOp = 3 SelectorOp_EXIST SelectorOp = 4 SelectorOp_NOT_EXIST SelectorOp = 5 )
func (SelectorOp) Descriptor ¶
func (SelectorOp) Descriptor() protoreflect.EnumDescriptor
func (SelectorOp) Enum ¶
func (x SelectorOp) Enum() *SelectorOp
func (SelectorOp) EnumDescriptor
deprecated
func (SelectorOp) EnumDescriptor() ([]byte, []int)
Deprecated: Use SelectorOp.Descriptor instead.
func (SelectorOp) Number ¶
func (x SelectorOp) Number() protoreflect.EnumNumber
func (SelectorOp) String ¶
func (x SelectorOp) String() string
func (SelectorOp) Type ¶
func (SelectorOp) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.