Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rusenask committed Mar 3, 2018
1 parent 10feb56 commit 96418f6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 119 deletions.
9 changes: 0 additions & 9 deletions glide.yaml

This file was deleted.

108 changes: 0 additions & 108 deletions registry/layer.go

This file was deleted.

5 changes: 3 additions & 2 deletions registry/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
manifestV1 "github.com/docker/distribution/manifest/schema1"
manifestV2 "github.com/docker/distribution/manifest/schema2"

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

func (registry *Registry) Manifest(repository, reference string) (*manifestV1.SignedManifest, error) {
Expand Down Expand Up @@ -70,11 +70,12 @@ func (registry *Registry) ManifestV2(repository, reference string) (*manifestV2.
return deserialized, nil
}

// ManifestDigest - get manifest digest
func (registry *Registry) ManifestDigest(repository, reference string) (digest.Digest, error) {
url := registry.url("/v2/%s/manifests/%s", repository, reference)
registry.Logf("registry.manifest.head url=%s repository=%s reference=%s", url, repository, reference)

req, err := http.NewRequest("HEAD", url, nil)
req, err := http.NewRequest("GET", url, nil)
if err != nil {
return "", err
}
Expand Down
1 change: 1 addition & 0 deletions registry/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type tagsResponse struct {
Tags []string `json:"tags"`
}

// Tags returns repository tags, ie: latest, 1.0.0, 2.0.0, etc..
func (registry *Registry) Tags(repository string) (tags []string, err error) {
url := registry.url("/v2/%s/tags/list", repository)

Expand Down

0 comments on commit 96418f6

Please sign in to comment.