github.com/hustcat/docker@v1.3.3-0.20160314103604-901c67a8eeab/api/server/router/volume/backend.go (about) 1 package volume 2 3 import ( 4 // TODO return types need to be refactored into pkg 5 "github.com/docker/engine-api/types" 6 ) 7 8 // Backend is the methods that need to be implemented to provide 9 // volume specific functionality 10 type Backend interface { 11 Volumes(filter string) ([]*types.Volume, []string, error) 12 VolumeInspect(name string) (*types.Volume, error) 13 VolumeCreate(name, driverName string, 14 opts map[string]string) (*types.Volume, error) 15 VolumeRm(name string) error 16 }