labels

package
v5.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package labels provides utility functions for working with Kubernetes-style label maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UniqueValues

func UniqueValues[T any](items []T, key string, getLabels func(T) map[string]string) []string

UniqueValues extracts the unique non-empty values for a given key from a slice of labeled items. The getLabels function extracts the label map from each item.

Types

This section is empty.

Jump to

Keyboard shortcuts

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