labels

package
v2.34.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Labels

type Labels interface {
	Get(key string) (value string, exists bool)
	SortedKeys() []string
	Copy() PlainMap
}

Labels describe labels map, where each label have a key and value.

This is an interface so that callers are not forced to always convert to the map.

type PlainMap

type PlainMap map[string]string

PlainMap implements Labels for a plain map.

Nil map is ok.

func (PlainMap) Copy

func (m PlainMap) Copy() PlainMap

Copy implements FlowLabels.

func (PlainMap) Get

func (m PlainMap) Get(key string) (string, bool)

Get implements FlowLabels.

func (PlainMap) SortedKeys

func (m PlainMap) SortedKeys() []string

SortedKeys implements FlowLabels.

Jump to

Keyboard shortcuts

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