labels

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 2 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 []selectorOp

func SelectorFromLabelSelector

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

func (Selector) Match

func (s Selector) Match(labels Labels) bool

Jump to

Keyboard shortcuts

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