filters

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

Filter provides a filter for jobs

func Jobs

func Jobs(list *batchv1.JobList) *Filter

Jobs providers a filter for jobs

func (*Filter) Latest

func (j *Filter) Latest() (*batchv1.Job, bool)

Latest returns the latest job

func (*Filter) List

func (j *Filter) List() (*batchv1.JobList, bool)

List returns the filtered list

func (*Filter) String

func (j *Filter) String() string

String returns a string representation of the filter

func (*Filter) WithGeneration

func (j *Filter) WithGeneration(generation string) *Filter

WithGeneration sets the generation for the filter

func (*Filter) WithLabel

func (j *Filter) WithLabel(name, value string) *Filter

WithLabel filters on the labels

func (*Filter) WithName

func (j *Filter) WithName(name string) *Filter

WithName filters on the configuration name

func (*Filter) WithNamespace

func (j *Filter) WithNamespace(namespace string) *Filter

WithNamespace filters on the configuration namespace

func (*Filter) WithStage

func (j *Filter) WithStage(stage string) *Filter

WithStage sets the stage for the filter

func (*Filter) WithUID

func (j *Filter) WithUID(uid string) *Filter

WithUID filters on the configuration uid

Jump to

Keyboard shortcuts

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