Documentation ¶
Overview ¶
Package labels provides utilities to work with Kubernetes labels.
Index ¶
- func CloneAndAddLabel(labels map[string]string, labelKey string, labelValue uint32) map[string]string
- func CloneAndRemoveLabel(labels map[string]string, labelKey string) map[string]string
- func CloneSelectorAndAddLabel(selector *unversioned.LabelSelector, labelKey string, labelValue uint32) *unversioned.LabelSelector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneAndAddLabel ¶
func CloneAndAddLabel(labels map[string]string, labelKey string, labelValue uint32) map[string]string
Clones the given map and returns a new map with the given key and value added. Returns the given map, if labelKey is empty.
func CloneAndRemoveLabel ¶ added in v1.1.4
CloneAndRemoveLabel clones the given map and returns a new map with the given key removed. Returns the given map, if labelKey is empty.
func CloneSelectorAndAddLabel ¶ added in v1.1.4
func CloneSelectorAndAddLabel(selector *unversioned.LabelSelector, labelKey string, labelValue uint32) *unversioned.LabelSelector
Clones the given selector and returns a new selector with the given key and value added. Returns the given selector, if labelKey is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.