aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/docker/docker/client/distribution_inspect.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/docker/docker/client/distribution_inspect.go')
-rw-r--r--vendor/github.com/docker/docker/client/distribution_inspect.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/vendor/github.com/docker/docker/client/distribution_inspect.go b/vendor/github.com/docker/docker/client/distribution_inspect.go
index aa5bc6a6c..7245bbeed 100644
--- a/vendor/github.com/docker/docker/client/distribution_inspect.go
+++ b/vendor/github.com/docker/docker/client/distribution_inspect.go
@@ -1,17 +1,20 @@
-package client
+package client // import "github.com/docker/docker/client"
import (
+ "context"
"encoding/json"
"net/url"
registrytypes "github.com/docker/docker/api/types/registry"
- "golang.org/x/net/context"
)
// DistributionInspect returns the image digest with full Manifest
func (cli *Client) DistributionInspect(ctx context.Context, image, encodedRegistryAuth string) (registrytypes.DistributionInspect, error) {
// Contact the registry to retrieve digest and platform information
var distributionInspect registrytypes.DistributionInspect
+ if image == "" {
+ return distributionInspect, objectNotFoundError{object: "distribution", id: image}
+ }
if err := cli.NewVersionError("1.30", "distribution inspect"); err != nil {
return distributionInspect, err