image_cloner

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: 12 Imported by: 7

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 added in v0.5.0

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

type ImageDriver added in v0.11.0

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 added in v0.11.0

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

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