vacuum

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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, client kubernetes.Interface, ns string) *Vacuum

New creates a new *Vacuum.

func (*Vacuum) Run

func (v *Vacuum) Run() (int, error)

Run executes the vacuum, destroying resources that are expired.

It returns the number of builds deleted.

Jump to

Keyboard shortcuts

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