vacuum

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const NoMaxBuilds = -1

NoMaxBuilds indicates that there is no maximum number of builds.

Variables

View Source
var NoMaxAge = time.Time{}

NoMaxAge indicates that there is no maximum age.

Functions

This section is empty.

Types

type ByCreation

type ByCreation []v1.Secret

ByCreation sorts secrets by their creation timestamp.

func (ByCreation) Len

func (b ByCreation) Len() int

Len returns the length of the secrets slice.

func (ByCreation) Less

func (b ByCreation) Less(i, j int) bool

Less tests that i is less than j.

func (ByCreation) Swap

func (b ByCreation) Swap(i, j int)

Swap swaps the position of two indices.

type Vacuum

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

Vacuum describes a vacuum for cleaning up expired builds and jobs.

func New

func New(age time.Time, max int, skipRunningBuilds bool, client kubernetes.Interface, ns string) *Vacuum

New creates a new *Vacuum.

func (*Vacuum) Run

func (v *Vacuum) Run() error

Run executes the vacuum, destroying resources that are expired.

Jump to

Keyboard shortcuts

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