Documentation

Index

Constants

This section is empty.

Variables

View Source
var OpenFile = os.OpenFile

Functions

This section is empty.

Types

type ImageCloner

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

func NewImageCloner

func NewImageCloner(imageDriver ImageDriver, storePath string) *ImageCloner

func (*ImageCloner) Create

func (b *ImageCloner) Create(logger lager.Logger, spec groot.ImageSpec) (groot.ImageInfo, error)

func (*ImageCloner) Destroy

func (b *ImageCloner) Destroy(logger lager.Logger, id string) error

func (*ImageCloner) Exists

func (b *ImageCloner) Exists(id string) (bool, error)

func (*ImageCloner) ImageIDs

func (b *ImageCloner) ImageIDs(logger lager.Logger) ([]string, error)

func (*ImageCloner) Stats

func (b *ImageCloner) Stats(logger lager.Logger, id string) (groot.VolumeStats, error)

type ImageDriver

type ImageDriver interface {
	CreateImage(logger lager.Logger, spec ImageDriverSpec) (groot.MountInfo, error)
	DestroyImage(logger lager.Logger, path string) error
	FetchStats(logger lager.Logger, path string) (groot.VolumeStats, error)
}

type ImageDriverSpec

type ImageDriverSpec struct {
	BaseVolumeIDs      []string
	Mount              bool
	ImagePath          string
	DiskLimit          int64
	ExclusiveDiskLimit bool
}

Source Files

Directories

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