summaryrefslogtreecommitdiff
path: root/api/server
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-03-18 16:33:43 +0100
committerSebastiaan van Stijn <github@gone.nl>2022-04-21 19:50:59 +0200
commit176f66df9ca5cdc9466661428f0a3ac33cd1ab1b (patch)
tree48fc4bbe7e15dffdaf540a1754aea570305eac0f /api/server
parent54386f0c8f61796ff64f09b0e45b43c0a367c142 (diff)
downloaddocker-176f66df9ca5cdc9466661428f0a3ac33cd1ab1b.tar.gz
api/types: replace uses of deprecated types.Volume with volume.Volume
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'api/server')
-rw-r--r--api/server/router/volume/backend.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/api/server/router/volume/backend.go b/api/server/router/volume/backend.go
index 31558c1789..a2f445ebf4 100644
--- a/api/server/router/volume/backend.go
+++ b/api/server/router/volume/backend.go
@@ -7,14 +7,15 @@ import (
// TODO return types need to be refactored into pkg
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/filters"
+ "github.com/docker/docker/api/types/volume"
)
// Backend is the methods that need to be implemented to provide
// volume specific functionality
type Backend interface {
- List(ctx context.Context, filter filters.Args) ([]*types.Volume, []string, error)
- Get(ctx context.Context, name string, opts ...opts.GetOption) (*types.Volume, error)
- Create(ctx context.Context, name, driverName string, opts ...opts.CreateOption) (*types.Volume, error)
+ List(ctx context.Context, filter filters.Args) ([]*volume.Volume, []string, error)
+ Get(ctx context.Context, name string, opts ...opts.GetOption) (*volume.Volume, error)
+ Create(ctx context.Context, name, driverName string, opts ...opts.CreateOption) (*volume.Volume, error)
Remove(ctx context.Context, name string, opts ...opts.RemoveOption) error
Prune(ctx context.Context, pruneFilters filters.Args) (*types.VolumesPruneReport, error)
}