Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplacePrefixed ¶
func ReplacePrefixed(prefix string, originalLabels map[string]string, newLabels map[string]string) (labels map[string]string, updated bool)
ReplacePrefixed returns a copy of originalLabels after:
- removing all keys with the given prefix, or a subdomain of it;
- merging newLabels.
Inputs are not modified. The returned labels map is guaranteed to be non-nil. Updated is true if the elements of labels do not match the elements of originalLabels.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.