package volumedrivers

import "github.com/dotcloud/docker/volume/drivers"

Index

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)
}

Source Files

adapter.go api.go extpoint.go proxy.go

Version
v1.8.0-rc3
Published
Aug 7, 2015
Platform
linux/amd64
Imports
5 packages
Last checked
15 minutes ago

Tools for package owners.