filter

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pods

func Pods(pods []v1.Pod, filter Filter) []v1.Pod

Types

type And

type And []Filter

func (And) Matches

func (filters And) Matches(pod v1.Pod) bool

type Filter

type Filter interface {
	Matches(pod v1.Pod) bool
}

type Label

type Label struct {
	Name     string
	Operator selection.Operator
	Value    string
}

func (Label) Matches

func (label Label) Matches(pod v1.Pod) bool

type Or

type Or []Filter

func (Or) Matches

func (filters Or) Matches(pod v1.Pod) bool

Jump to

Keyboard shortcuts

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