mirror of
https://github.com/genuinetools/reg.git
synced 2024-05-20 03:58:32 -04:00
fix gofmt
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
720e7deac5
commit
285085cc56
|
@ -1,6 +1,8 @@
|
|||
package registry
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
|
||||
|
@ -8,8 +10,6 @@ import (
|
|||
"github.com/docker/distribution/manifest/manifestlist"
|
||||
"github.com/docker/distribution/manifest/schema1"
|
||||
"github.com/docker/distribution/manifest/schema2"
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// Manifest returns the manifest for a specific repository:tag.
|
||||
|
@ -87,7 +87,6 @@ func (r *Registry) ManifestV1(repository, ref string) (schema1.SignedManifest, e
|
|||
return m, nil
|
||||
}
|
||||
|
||||
|
||||
func (r *Registry) PutManifest(repository, reference string, manifest distribution.Manifest) error {
|
||||
url := r.url("/v2/%s/manifests/%s", repository, reference)
|
||||
r.Logf("registry.manifest.put url=%s repository=%s reference=%s", url, repository, reference)
|
||||
|
@ -109,4 +108,4 @@ func (r *Registry) PutManifest(repository, reference string, manifest distributi
|
|||
defer resp.Body.Close()
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue