store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2016 License: Apache-2.0 Imports: 8 Imported by: 12

Documentation

Index

Constants

View Source
const BUNDLES_DIR_NAME = "bundles"
View Source
const CACHE_DIR_NAME = "cache"
View Source
const LOCKS_DIR_NAME = "locks"
View Source
const VOLUMES_DIR_NAME = "volumes"

Variables

Functions

This section is empty.

Types

type Bundle

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

func NewBundle

func NewBundle(path string) *Bundle

func (*Bundle) Path

func (bdl *Bundle) Path() string

func (*Bundle) RootFSPath

func (bdl *Bundle) RootFSPath() string

type Bundler

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

func NewBundler

func NewBundler(snapshotDriver SnapshotDriver, storePath string) *Bundler

func (*Bundler) Create

func (b *Bundler) Create(logger lager.Logger, id string, 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 Configurer

type Configurer struct {
}

func NewConfigurer

func NewConfigurer() *Configurer

func (*Configurer) Ensure

func (c *Configurer) Ensure(logger lager.Logger, storePath string) 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