ptypes

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 5 Imported by: 17

Documentation

Index

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.

View Source
var File_v1_shared_ptypes_label_proto protoreflect.FileDescriptor

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) Descriptor() ([]byte, []int)

Deprecated: Use Label.ProtoReflect.Descriptor instead.

func (*Label) GetKey

func (x *Label) GetKey() string

func (*Label) GetValue

func (x *Label) GetValue() string

func (*Label) ProtoMessage

func (*Label) ProtoMessage()

func (*Label) ProtoReflect

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

func (*Label) Reset

func (x *Label) Reset()

func (*Label) String

func (x *Label) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Selector.ProtoReflect.Descriptor instead.

func (*Selector) GetKey

func (x *Selector) GetKey() string

func (*Selector) GetOp

func (x *Selector) GetOp() SelectorOp

func (*Selector) GetValue

func (x *Selector) GetValue() string

func (*Selector) ProtoMessage

func (*Selector) ProtoMessage()

func (*Selector) ProtoReflect

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

func (*Selector) Reset

func (x *Selector) Reset()

func (*Selector) String

func (x *Selector) String() string

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

Jump to

Keyboard shortcuts

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