filters

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: GPL-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) IsRunning added in v0.4.11

func (j *Filter) IsRunning() int

IsRunning returns the number of running 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