image_cloner

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2017 License: Apache-2.0 Imports: 10 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ImageCloner

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

func NewImageCloner

func NewImageCloner(snapshotDriver SnapshotDriver, storePath string) *ImageCloner

func (*ImageCloner) Create

func (b *ImageCloner) Create(logger lager.Logger, spec groot.ImageSpec) (groot.Image, 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 SnapshotDriver

type SnapshotDriver interface {
	Snapshot(logger lager.Logger, fromPath, toPath string) error
	ApplyDiskLimit(logger lager.Logger, path string, diskLimit int64, exclusive bool) error
	FetchStats(logger lager.Logger, path string) (groot.VolumeStats, error)
	Destroy(logger lager.Logger, path string) error
}

Directories

Path Synopsis
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