image_cloner

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2017 License: Apache-2.0 Imports: 11 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(imageDriver ImageDriver, 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 ImageDriver added in v0.11.0

type ImageDriver interface {
	CreateImage(logger lager.Logger, spec ImageDriverSpec) 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
	ImagePath          string
	DiskLimit          int64
	ExclusiveDiskLimit bool
}

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