garbagecollection

package
v0.0.0-...-c377703 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NullUID = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GC

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

func New

func New(kubecli kubernetes.Interface, mxJobClient k8sutil.MxJobClient, ns string) *GC

func (*GC) CollectJob

func (gc *GC) CollectJob(job string, jobUID types.UID)

CollectJob collects resources that matches job label, but does not belong to the job with given jobUID

func (*GC) FullyCollect

func (gc *GC) FullyCollect() error

FullyCollect collects resources that were created before, but does not belong to any current running clusters.

Jump to

Keyboard shortcuts

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