Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromMap ¶
FromMap converts a map[string][]string to a slice of *labelv1.Label. Each key-value pair in the input map is transformed into a label with the key as the name and the corresponding slice of strings as values.
func ToMap ¶
ToMap converts a slice of *labelv1.Label to a map[string][]string. Each label in the input slice contributes to the resulting map by adding its name as the key and appending its values to the corresponding slice of strings in the map. If there are multiple labels with the same key, their values will be concatenated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.