Documentation

Index

Constants

View Source
const (
	ImageDirName     = "images"
	VolumesDirName   = "volumes"
	LocksDirName     = "locks"
	MetaDirName      = "meta"
	TempDirName      = "tmp"
	DefaultStorePath = "/var/lib/grootfs"
)

Variables

Functions

This section is empty.

Types

type StoreMeasurer

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

func NewStoreMeasurer

func NewStoreMeasurer(storePath string, volumeDriver VolumeDriver) *StoreMeasurer

func (*StoreMeasurer) CacheUsage

func (s *StoreMeasurer) CacheUsage(logger lager.Logger, unusedVolumes []string) int64

func (*StoreMeasurer) Usage

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

type VolumeDriver

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

Directories

Path Synopsis
namespaced/namespacedfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
garbage_collectorfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
image_clonerfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
managerfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.