github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/api/server/router/volume/backend.go (about)

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