github.com/circular-dark/docker@v1.7.0/volume/drivers/api.go (about) 1 package volumedrivers 2 3 import "github.com/docker/docker/volume" 4 5 type client interface { 6 Call(string, interface{}, interface{}) error 7 } 8 9 func NewVolumeDriver(name string, c client) volume.Driver { 10 proxy := &volumeDriverProxy{c} 11 return &volumeDriverAdapter{name, proxy} 12 } 13 14 type VolumeDriver interface { 15 Create(name string) (err error) 16 Remove(name string) (err error) 17 Path(name string) (mountpoint string, err error) 18 Mount(name string) (mountpoint string, err error) 19 Unmount(name string) (err error) 20 }