backend.go 572 B

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