Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lookup ¶
Lookup returns the driver associated with the given name. If a driver with the given name has not been registered it checks if there is a VolumeDriver plugin available with the given name.
func NewVolumeDriver ¶
NewVolumeDriver returns a driver has the given name mapped on the given client.
func Register ¶
Register associates the given driver to the given name, checking if the name is already associated
func Unregister ¶
Unregister dissociates the name from it's driver, if the association exists.
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) }
VolumeDriver defines the available functions that volume plugins must implement.
Click to show internal directories.
Click to hide internal directories.