summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-03-05 10:51:34 +0100
committerSebastiaan van Stijn <github@gone.nl>2022-04-28 22:39:04 +0200
commit3cae9fef16936e1c987443b6f2545c491f9a1019 (patch)
tree5915bdb47fa9d5bc8f1f323f2a9fb8e61d017e7e /client
parent72938574568461ee5e544459a779c5fd4ac14103 (diff)
downloaddocker-3cae9fef16936e1c987443b6f2545c491f9a1019.tar.gz
imports: remove "volumetypes" aliases for api/types/volume
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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 {