selector

package
v0.0.0-...-aa771b6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type And

type And []Selector

And is a group of selectors which matches if all of them match

func (And) Matches

func (and And) Matches(labels labels.Labels) bool

Matches returns true if all selectors return true, otherwise false

type Or

type Or []Selector

Or is a group of selectors which matches if any one of them matches

func (Or) Matches

func (or Or) Matches(labels labels.Labels) bool

Matches returns true if any selector returns true, otherwise false

type Selector

type Selector interface {
	Matches(labels.Labels) bool
}

Selector selects labels

func Not

func Not(s Selector) Selector

Not returns a reverse of selector

Jump to

Keyboard shortcuts

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