summaryrefslogtreecommitdiff
path: root/api/server
diff options
context:
space:
mode:
authorSebastiaan van Stijn <thaJeztah@users.noreply.github.com>2022-04-26 23:46:49 +0200
committerGitHub <noreply@github.com>2022-04-26 23:46:49 +0200
commit787257f76790c4b82bddfc866185ebc64a9ef357 (patch)
treef5c5aa04e7054b27e871a9391511a13e68ba1252 /api/server
parent9184f0b5e40cd94fdb96d8fe42f74f028aa17b9a (diff)
parent176f66df9ca5cdc9466661428f0a3ac33cd1ab1b (diff)
downloaddocker-787257f76790c4b82bddfc866185ebc64a9ef357.tar.gz
Merge pull request #43332 from thaJeztah/api_swagger_move_definitions
api: swagger: use explicit definitions for some response types, and move examples per-field
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)
}