volumedrivers

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup(name string) (volume.Driver, error)

func NewVolumeDriver

func NewVolumeDriver(name string, c client) volume.Driver

func Register

func Register(extension volume.Driver, name string) bool

func Unregister

func Unregister(name string) bool

Types

type VolumeDriver

type VolumeDriver interface {
	// Create a volume with the given name
	Create(name string) (err error)
	// Remove the volume with the given name
	Remove(name string) (err error)
	// Get the mountpoint of the given volume
	Path(name string) (mountpoint string, err error)
	// Mount the given volume and return the mountpoint
	Mount(name string) (mountpoint string, err error)
	// Unmount the given volume
	Unmount(name string) (err error)
}

Jump to

Keyboard shortcuts

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