summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-03-05 21:04:55 +0100
committerSebastiaan van Stijn <github@gone.nl>2022-04-28 22:39:12 +0200
commit18281c92fa9eb90824539674da3e0c04741e2c76 (patch)
tree24cfb4ea9130570bc0b2b1917d8a6b8bd108b98c /client
parent4caf68f4f60cddbe95f71b5a395e022ccc8cbf16 (diff)
downloaddocker-18281c92fa9eb90824539674da3e0c04741e2c76.tar.gz
api: rename volume.VolumeListOKBody to volume.ListResponse
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'client')
-rw-r--r--client/interface.go2
-rw-r--r--client/volume_list.go4
-rw-r--r--client/volume_list_test.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/client/interface.go b/client/interface.go
index 513a5bdeed..3502c43474 100644
--- a/client/interface.go
+++ b/client/interface.go
@@ -176,7 +176,7 @@ type VolumeAPIClient interface {
VolumeCreate(ctx context.Context, options volume.VolumeCreateBody) (volume.Volume, error)
VolumeInspect(ctx context.Context, volumeID string) (volume.Volume, error)
VolumeInspectWithRaw(ctx context.Context, volumeID string) (volume.Volume, []byte, error)
- VolumeList(ctx context.Context, filter filters.Args) (volume.VolumeListOKBody, error)
+ VolumeList(ctx context.Context, filter filters.Args) (volume.ListResponse, error)
VolumeRemove(ctx context.Context, volumeID string, force bool) error
VolumesPrune(ctx context.Context, pruneFilter filters.Args) (types.VolumesPruneReport, error)
}
diff --git a/client/volume_list.go b/client/volume_list.go
index 3ad8bf22a9..d8204f8db5 100644
--- a/client/volume_list.go
+++ b/client/volume_list.go
@@ -10,8 +10,8 @@ import (
)
// VolumeList returns the volumes configured in the docker host.
-func (cli *Client) VolumeList(ctx context.Context, filter filters.Args) (volume.VolumeListOKBody, error) {
- var volumes volume.VolumeListOKBody
+func (cli *Client) VolumeList(ctx context.Context, filter filters.Args) (volume.ListResponse, error) {
+ var volumes volume.ListResponse
query := url.Values{}
if filter.Len() > 0 {
diff --git a/client/volume_list_test.go b/client/volume_list_test.go
index 0d54f4a597..19a843be80 100644
--- a/client/volume_list_test.go
+++ b/client/volume_list_test.go
@@ -69,7 +69,7 @@ func TestVolumeList(t *testing.T) {
if actualFilters != listCase.expectedFilters {
return nil, fmt.Errorf("filters not set in URL query properly. Expected '%s', got %s", listCase.expectedFilters, actualFilters)
}
- content, err := json.Marshal(volume.VolumeListOKBody{
+ content, err := json.Marshal(volume.ListResponse{
Volumes: []*volume.Volume{
{
Name: "volume",