2015-11-02 16:26:45 -08: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 16:26:45 -08: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 16:26:45 -08:00
|
|
|
VolumeInspect(name string) (*types.Volume, error)
|
|
|
|
VolumeCreate(name, driverName string,
|
|
|
|
opts map[string]string) (*types.Volume, error)
|
|
|
|
VolumeRm(name string) error
|
|
|
|
}
|