garbage_collector

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheDriver

type CacheDriver interface {
	Clean(logger lager.Logger) error
}

type DependencyManager

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

type GarbageCollector

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

func NewGC

func NewGC(cacheDriver CacheDriver, volumeDriver VolumeDriver, imageCloner ImageCloner, dependencyManager DependencyManager) *GarbageCollector

func (*GarbageCollector) Collect

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

type ImageCloner added in v0.4.0

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

type StoreMeasurer

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

func NewStoreMeasurer

func NewStoreMeasurer(storePath string) *StoreMeasurer

func (*StoreMeasurer) MeasureStore

func (s *StoreMeasurer) MeasureStore(logger lager.Logger) (int64, error)

type VolumeDriver

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

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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