garbage_collector

package
v0.21.0 Latest Latest
Warning

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

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

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) error

func (*GarbageCollector) MarkUnused added in v0.19.0

func (g *GarbageCollector) MarkUnused(logger lager.Logger, keepImages []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
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