Documentation ¶
Index ¶
- Constants
- func HasAnyLabel(set, subset map[string]string) bool
- func HasAnyLabelKey(set, subset map[string]string) bool
- func HasLabelKeys(set, subset map[string]string) bool
- func HasLabels(set, subset map[string]string) bool
- func LabelsFromString(str string) (map[string]string, error)
- func LabelsToString(labels map[string]string) string
- func MergeLabels(old map[string]string, new map[string]string) map[string]string
Constants ¶
View Source
const (
NoLabel = "NoLabel"
)
Variables ¶
This section is empty.
Functions ¶
func HasAnyLabel ¶
HasAnyLabel returns true if atleast of kv pair of subset exists in set.
func HasAnyLabelKey ¶
HasAnyLabel returns true if atleast one key from subset exists in set.
func HasLabelKeys ¶
HasLabelKeys returns true if subset keys exist in set
func LabelsFromString ¶
LabelsFromString "key1=value1,key2,key3=value3" to a key-value map.
func LabelsToString ¶
LabeToString convert key-value map to "key1=value1,key2,key3=value3"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.