Documentation ¶
Index ¶
- Variables
- type ImageCloner
- func (b *ImageCloner) Create(logger lager.Logger, spec groot.ImageSpec) (groot.Image, error)
- func (b *ImageCloner) Destroy(logger lager.Logger, id string) error
- func (b *ImageCloner) Exists(id string) (bool, error)
- func (b *ImageCloner) ImageIDs(logger lager.Logger) ([]string, error)
- func (b *ImageCloner) Stats(logger lager.Logger, id string) (groot.VolumeStats, error)
- type SnapshotDriver
Constants ¶
This section is empty.
Variables ¶
View Source
var OF = os.OpenFile
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) 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 |
Click to show internal directories.
Click to hide internal directories.