summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/volume_inspect_test.go4
-rw-r--r--client/volume_list.go6
2 files changed, 5 insertions, 5 deletions
diff --git a/client/volume_inspect_test.go b/client/volume_inspect_test.go
index 70b82729b8..be88f5f103 100644
--- a/client/volume_inspect_test.go
+++ b/client/volume_inspect_test.go
@@ -76,7 +76,7 @@ func TestVolumeInspect(t *testing.T) {
}),
}
- volume, err := client.VolumeInspect(context.Background(), "volume_id")
+ vol, err := client.VolumeInspect(context.Background(), "volume_id")
assert.NilError(t, err)
- assert.Check(t, is.DeepEqual(expected, volume))
+ assert.Check(t, is.DeepEqual(expected, vol))
}
diff --git a/client/volume_list.go b/client/volume_list.go
index 942498dde2..3ad8bf22a9 100644
--- a/client/volume_list.go
+++ b/client/volume_list.go
@@ -6,12 +6,12 @@ import (
"net/url"
"github.com/docker/docker/api/types/filters"
- volumetypes "github.com/docker/docker/api/types/volume"
+ "github.com/docker/docker/api/types/volume"
)
// VolumeList returns the volumes configured in the docker host.
-func (cli *Client) VolumeList(ctx context.Context, filter filters.Args) (volumetypes.VolumeListOKBody, error) {
- var volumes volumetypes.VolumeListOKBody
+func (cli *Client) VolumeList(ctx context.Context, filter filters.Args) (volume.VolumeListOKBody, error) {
+ var volumes volume.VolumeListOKBody
query := url.Values{}
if filter.Len() > 0 {