backend.go 477 B

123456789101112131415
  1. package volume
  2. import (
  3. // TODO return types need to be refactored into pkg
  4. "github.com/docker/engine-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) error
  13. }