github.com/vieux/docker@v0.6.3-0.20161004191708-e097c2a938c7/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/docker/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, opts, labels map[string]string) (*types.Volume, error) 14 VolumeRm(name string, force bool) error 15 VolumesPrune(config *types.VolumesPruneConfig) (*types.VolumesPruneReport, error) 16 }