mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
registry: Removed checksumPayload from exported fields
Docker-DCO-1.1-Signed-off-by: Sam Alba <sam@docker.com> (github: samalba) Upstream-commit: 522c0765f11569feb1dbc7facfbb802e0f1fb84e Component: engine
This commit is contained in:
@@ -389,7 +389,7 @@ func (r *Registry) PushImageChecksumRegistry(imgData *ImgData, registry string,
|
||||
}
|
||||
setTokenAuth(req, token)
|
||||
req.Header.Set("X-Docker-Checksum", imgData.Checksum)
|
||||
req.Header.Set("X-Docker-Checksum-Payload", imgData.ChecksumPayload)
|
||||
req.Header.Set("X-Docker-Checksum-Payload", imgData.checksumPayload)
|
||||
|
||||
res, err := doWithCookies(r.client, req)
|
||||
if err != nil {
|
||||
@@ -679,8 +679,8 @@ type RepositoryData struct {
|
||||
type ImgData struct {
|
||||
ID string `json:"id"`
|
||||
Checksum string `json:"checksum,omitempty"`
|
||||
ChecksumPayload string `json:"checksum,omitempty"`
|
||||
Tag string `json:",omitempty"`
|
||||
checksumPayload string
|
||||
}
|
||||
|
||||
type Registry struct {
|
||||
|
||||
@@ -1509,7 +1509,7 @@ func (srv *Server) pushImage(r *registry.Registry, out io.Writer, remote, imgID,
|
||||
return "", err
|
||||
}
|
||||
imgData.Checksum = checksum
|
||||
imgData.ChecksumPayload = checksumPayload
|
||||
imgData.checksumPayload = checksumPayload
|
||||
// Send the checksum
|
||||
if err := r.PushImageChecksumRegistry(imgData, ep, token); err != nil {
|
||||
return "", err
|
||||
|
||||
Reference in New Issue
Block a user