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

Commit

Permalink
Accept any manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
tt committed Oct 3, 2018
1 parent 2ffea69 commit d3817d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions registry/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"io/ioutil"
"net/http"

"github.com/docker/distribution"
"github.com/docker/distribution/manifest/schema1"
"github.com/docker/distribution/manifest/schema2"
digest "github.com/opencontainers/go-digest"
Expand Down Expand Up @@ -101,11 +102,11 @@ func (registry *Registry) DeleteManifest(repository string, digest digest.Digest
return nil
}

func (registry *Registry) PutManifest(repository, reference string, signedManifest *schema1.SignedManifest) error {
func (registry *Registry) PutManifest(repository, reference string, manifest distribution.Manifest) error {
url := registry.url("/v2/%s/manifests/%s", repository, reference)
registry.Logf("registry.manifest.put url=%s repository=%s reference=%s", url, repository, reference)

mediaType, payload, err := signedManifest.Payload()
mediaType, payload, err := manifest.Payload()
if err != nil {
return err
}
Expand Down

0 comments on commit d3817d4

Please sign in to comment.