garbage_collector

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyManager

type DependencyManager interface {
	Dependencies(id string) ([]string, error)
}

type GarbageCollector

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

func NewGC

func NewGC(volumeDriver VolumeDriver, imageCloner ImageCloner, dependencyManager DependencyManager, baseImage string) *GarbageCollector

func (*GarbageCollector) Collect

func (g *GarbageCollector) Collect(logger lager.Logger) error

func (*GarbageCollector) MarkUnused added in v0.19.0

func (g *GarbageCollector) MarkUnused(logger lager.Logger, unusedVolumes []string) error

func (*GarbageCollector) UnusedVolumes added in v0.26.0

func (g *GarbageCollector) UnusedVolumes(logger lager.Logger) ([]string, error)

type ImageCloner added in v0.4.0

type ImageCloner interface {
	ImageIDs(logger lager.Logger) ([]string, error)
}

type VolumeDriver

type VolumeDriver interface {
	VolumePath(logger lager.Logger, id string) (string, error)
	MoveVolume(logger lager.Logger, from, to string) error
	DestroyVolume(logger lager.Logger, id string) error
	Volumes(logger lager.Logger) ([]string, error)
}

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