selector

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyAbsent

func KeyAbsent() string

KeyAbsent returns a string that can be used as a label or annotation value

func KeyPresent

func KeyPresent() string

KeyPresent returns a string that can be used as a label or annotation value

Types

type Selector

type Selector interface {
	Matches(labels map[string]string, annotations map[string]string) bool
	MatchesLabels(labels map[string]string) bool
	MatchesAnnotations(annotations map[string]string) bool
}

func NewSelector

func NewSelector(labels map[string]string, annotations map[string]string) (Selector, error)

NewSelector returns a new Selector that matches labels and annotations

Jump to

Keyboard shortcuts

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