bundler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Bundler

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

func NewBundler

func NewBundler(snapshotDriver SnapshotDriver, storePath string) *Bundler

func (*Bundler) BundleIDs

func (b *Bundler) BundleIDs(logger lager.Logger) ([]string, error)

func (*Bundler) Create

func (b *Bundler) Create(logger lager.Logger, spec groot.BundleSpec) (groot.Bundle, error)

func (*Bundler) Destroy

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

func (*Bundler) Exists

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

func (*Bundler) Metrics

func (b *Bundler) Metrics(logger lager.Logger, id string) (groot.VolumeMetrics, 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
	FetchMetrics(logger lager.Logger, path string) (groot.VolumeMetrics, 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