summaryrefslogtreecommitdiff
path: root/vendor/github.com/fsouza/go-dockerclient/plugin.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-05-04 13:23:33 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-05-05 04:41:06 -0400
commited159f864dc8e2cd79d98fb46a28f1413dc1a7fb (patch)
tree612c1c0010014522962866c47bc570d9860770be /vendor/github.com/fsouza/go-dockerclient/plugin.go
parentbdaac4b2b6573d0954c58da9968536017160b1ed (diff)
downloadpodman-ed159f864dc8e2cd79d98fb46a28f1413dc1a7fb.tar.gz
podman-ed159f864dc8e2cd79d98fb46a28f1413dc1a7fb.tar.bz2
podman-ed159f864dc8e2cd79d98fb46a28f1413dc1a7fb.zip
Vendor in containers/buildah@v1.26.1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/fsouza/go-dockerclient/plugin.go')
-rw-r--r--vendor/github.com/fsouza/go-dockerclient/plugin.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/fsouza/go-dockerclient/plugin.go b/vendor/github.com/fsouza/go-dockerclient/plugin.go
index be45607b9..7951e3627 100644
--- a/vendor/github.com/fsouza/go-dockerclient/plugin.go
+++ b/vendor/github.com/fsouza/go-dockerclient/plugin.go
@@ -8,7 +8,7 @@ import (
"context"
"encoding/json"
"errors"
- "io/ioutil"
+ "io"
"net/http"
)
@@ -53,7 +53,7 @@ func (c *Client) InstallPlugins(opts InstallPluginOptions) error {
defer resp.Body.Close()
// PullPlugin streams back the progress of the pull, we must consume the whole body
// otherwise the pull will be canceled on the engine.
- if _, err := ioutil.ReadAll(resp.Body); err != nil {
+ if _, err := io.ReadAll(resp.Body); err != nil {
return err
}
return nil
@@ -297,7 +297,7 @@ func (c *Client) RemovePlugin(opts RemovePluginOptions) (*PluginDetail, error) {
return nil, err
}
defer resp.Body.Close()
- body, err := ioutil.ReadAll(resp.Body)
+ body, err := io.ReadAll(resp.Body)
if err != nil {
return nil, err
}
@@ -386,7 +386,7 @@ func (c *Client) CreatePlugin(opts CreatePluginOptions) (string, error) {
return "", err
}
defer resp.Body.Close()
- containerNameBytes, err := ioutil.ReadAll(resp.Body)
+ containerNameBytes, err := io.ReadAll(resp.Body)
if err != nil {
return "", err
}