package volume
import "github.com/docker/docker/volume"
Index ¶
Constants ¶
const DefaultDriverName = "local"
Types ¶
type Driver ¶
type Driver interface { // Name returns the name of the volume driver. Name() string // Create makes a new volume with the given id. Create(string) (Volume, error) // Remove deletes the volume. Remove(Volume) error }
type Volume ¶
type Volume interface { // Name returns the name of the volume Name() string // DriverName returns the name of the driver which owns this volume. DriverName() string // Path returns the absolute path to the volume. Path() string // Mount mounts the volume and returns the absolute path to // where it can be consumed. Mount() (string, error) // Unmount unmounts the volume when it is no longer in use. Unmount() error }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
volume/drivers | |
volume/local |
Tools for package owners.