graphdriver

package
v0.0.0-...-01e0b8e Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDriver string

	ErrNotSupported   = errors.New("driver not supported")
	ErrPrerequisites  = errors.New("prerequisites for driver not satisfied (wrong filesystem?)")
	ErrIncompatibleFS = fmt.Errorf("backing file system is unsupported for this graph driver")
)

Functions

func Register

func Register(name string, initFunc InitFunc) error

Types

type Driver

type Driver interface {
	Create(id, parent string) error
	Remove(id string) error
	Get(id, mountLabel string) (string, error)
	Put(id string) error
	Exists(id string) bool
	Status() [][2]string
	GetMetadata(id string) (map[string]string, error)
	Cleanup() error
}

Driver represent the interface a driver must fulfill.

func GetDriver

func GetDriver(name, home string, options []string) (Driver, error)

func New

func New(root string, options []string) (driver Driver, err error)

type InitFunc

type InitFunc func(root string, options []string) (Driver, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL