backend.go 611 B

1234567891011121314151617
  1. package volume
  2. import (
  3. // TODO return types need to be refactored into pkg
  4. "github.com/docker/docker/api/types"
  5. "github.com/docker/docker/api/types/filters"
  6. )
  7. // Backend is the methods that need to be implemented to provide
  8. // volume specific functionality
  9. type Backend interface {
  10. Volumes(filter string) ([]*types.Volume, []string, error)
  11. VolumeInspect(name string) (*types.Volume, error)
  12. VolumeCreate(name, driverName string, opts, labels map[string]string) (*types.Volume, error)
  13. VolumeRm(name string, force bool) error
  14. VolumesPrune(pruneFilters filters.Args) (*types.VolumesPruneReport, error)
  15. }