mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
81fa9feb0c
Signed by all authors: Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com> Signed-off-by: David Calavera <david.calavera@gmail.com> Signed-off-by: Jeff Lindsay <progrium@gmail.com> Signed-off-by: Alexander Morozov <lk4d4@docker.com> Signed-off-by: Luke Marsden <luke@clusterhq.com> Signed-off-by: David Calavera <david.calavera@gmail.com>
20 lines
508 B
Go
20 lines
508 B
Go
package volumedrivers
|
|
|
|
import "github.com/docker/docker/volume"
|
|
|
|
type client interface {
|
|
Call(string, interface{}, interface{}) error
|
|
}
|
|
|
|
func NewVolumeDriver(name string, c client) volume.Driver {
|
|
proxy := &volumeDriverProxy{c}
|
|
return &volumeDriverAdapter{name, proxy}
|
|
}
|
|
|
|
type VolumeDriver interface {
|
|
Create(name string) (err error)
|
|
Remove(name string) (err error)
|
|
Path(name string) (mountpoint string, err error)
|
|
Mount(name string) (mountpoint string, err error)
|
|
Unmount(name string) (err error)
|
|
}
|