label

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_label_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" json:"value,omitempty"`
	// contains filtered or unexported fields
}

label - container for name/value content

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

func (*Label) Validate

func (this *Label) Validate() error

type Metadata

type Metadata struct {
	Labels []*Label `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

Metadata - type for integrate to other objects

func BlankMetadata

func BlankMetadata() *Metadata

func (*Metadata) AddLabel

func (m *Metadata) AddLabel(newLabel *Label) error

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetLabelByKey

func (m *Metadata) GetLabelByKey(key string) *Label

func (*Metadata) GetLabels

func (x *Metadata) GetLabels() []*Label

func (*Metadata) GetLabelsByKey

func (m *Metadata) GetLabelsByKey(key string) []*Label

func (*Metadata) MatchLabel

func (m *Metadata) MatchLabel(expectLabel *Label) bool

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) RemoveLabel

func (m *Metadata) RemoveLabel(expectLabel *Label) bool

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

func (*Metadata) Validate

func (this *Metadata) Validate() error

Jump to

Keyboard shortcuts

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