cleaner

package
v0.0.0-...-6c5b0a6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRetainer

func NewRetainer() *retainer

Types

type CheckFunc

type CheckFunc func(id layercake.ID) bool

func (CheckFunc) Check

func (fn CheckFunc) Check(id layercake.ID) bool

type Checker

type Checker interface {
	Check(id layercake.ID) bool
}

type OvenCleaner

type OvenCleaner struct {
	GraphCleanupThreshold Threshold
	// contains filtered or unexported fields
}

func NewOvenCleaner

func NewOvenCleaner(retainCheck Checker, graphCleanupThreshold Threshold) *OvenCleaner

func (*OvenCleaner) GC

func (g *OvenCleaner) GC(log lager.Logger, cake layercake.Cake) error

type RetainChecker

type RetainChecker interface {
	layercake.Retainer
	Checker
}

type Threshold

type Threshold interface {
	Exceeded(log lager.Logger, cake layercake.Cake) bool
}

func NewThreshold

func NewThreshold(limit int64) Threshold

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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