labels

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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