github.com/cookieai-jar/moby@v17.12.1-ce-rc2+incompatible/api/server/router/volume/backend.go (about) 1 package volume 2 3 import ( 4 "golang.org/x/net/context" 5 6 // TODO return types need to be refactored into pkg 7 "github.com/docker/docker/api/types" 8 "github.com/docker/docker/api/types/filters" 9 ) 10 11 // Backend is the methods that need to be implemented to provide 12 // volume specific functionality 13 type Backend interface { 14 Volumes(filter string) ([]*types.Volume, []string, error) 15 VolumeInspect(name string) (*types.Volume, error) 16 VolumeCreate(name, driverName string, opts, labels map[string]string) (*types.Volume, error) 17 VolumeRm(name string, force bool) error 18 VolumesPrune(ctx context.Context, pruneFilters filters.Args) (*types.VolumesPruneReport, error) 19 }