2015-11-02 19:26:45 -05:00
|
|
|
package volume
|
|
|
|
|
|
|
|
import (
|
|
|
|
// TODO return types need to be refactored into pkg
|
2016-01-04 19:05:26 -05:00
|
|
|
"github.com/docker/engine-api/types"
|
2015-11-02 19:26:45 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
// Backend is the methods that need to be implemented to provide
|
|
|
|
// volume specific functionality
|
|
|
|
type Backend interface {
|
2015-09-23 16:29:14 -04:00
|
|
|
Volumes(filter string) ([]*types.Volume, []string, error)
|
2015-11-02 19:26:45 -05:00
|
|
|
VolumeInspect(name string) (*types.Volume, error)
|
2016-03-16 17:52:34 -04:00
|
|
|
VolumeCreate(name, driverName string, opts, labels map[string]string) (*types.Volume, error)
|
2015-11-02 19:26:45 -05:00
|
|
|
VolumeRm(name string) error
|
|
|
|
}
|