labels

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	K8sPodNamespace = "k8s:io.kubernetes.pod.namespace"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Labels

type Labels map[string]string

func (Labels) Cmp

func (l Labels) Cmp(a Labels) bool

Cmp checks if the labels are different. Returns true if they are.

type Selector

type Selector interface {
	Match(labels Labels) bool
}

func SelectorFromLabelSelector

func SelectorFromLabelSelector(ls *slimv1.LabelSelector) (Selector, error)

type SelectorAllOrNothing added in v1.7.0

type SelectorAllOrNothing struct {
	// contains filtered or unexported fields
}

func (SelectorAllOrNothing) Match added in v1.7.0

func (s SelectorAllOrNothing) Match(_ Labels) bool

type SelectorWithValues added in v1.7.0

type SelectorWithValues struct {
	// contains filtered or unexported fields
}

func (SelectorWithValues) Match added in v1.7.0

func (s SelectorWithValues) Match(labels Labels) bool

Jump to

Keyboard shortcuts

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