Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #49 from RussellRollins/dependency-update
Browse files Browse the repository at this point in the history
Updates docker-registry-client to use opencontainers/go-digest.
  • Loading branch information
ojacobson authored Oct 19, 2017
2 parents 95467b6 + f929875 commit fd2fe80
Show file tree
Hide file tree
Showing 297 changed files with 142,242 additions and 1,226 deletions.
56 changes: 30 additions & 26 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion registry/layer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"

"github.com/docker/distribution"
"github.com/docker/distribution/digest"
digest "github.com/opencontainers/go-digest"
)

func (registry *Registry) DownloadLayer(repository string, digest digest.Digest) (io.ReadCloser, error) {
Expand Down
4 changes: 2 additions & 2 deletions registry/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"io/ioutil"
"net/http"

"github.com/docker/distribution/digest"
manifestV1 "github.com/docker/distribution/manifest/schema1"
manifestV2 "github.com/docker/distribution/manifest/schema2"
digest "github.com/opencontainers/go-digest"
)

func (registry *Registry) Manifest(repository, reference string) (*manifestV1.SignedManifest, error) {
Expand Down Expand Up @@ -80,7 +80,7 @@ func (registry *Registry) ManifestDigest(repository, reference string) (digest.D
if err != nil {
return "", err
}
return digest.ParseDigest(resp.Header.Get("Docker-Content-Digest"))
return digest.Parse(resp.Header.Get("Docker-Content-Digest"))
}

func (registry *Registry) DeleteManifest(repository string, digest digest.Digest) error {
Expand Down
35 changes: 35 additions & 0 deletions vendor/github.com/docker/distribution/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions vendor/github.com/docker/distribution/BUILDING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fd2fe80

Please sign in to comment.