"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "components/engine/vendor/github.com/containerd/containerd/images/archive/importer.go" between
docker-ce-19.03.2.tar.gz and docker-ce-19.03.3.tar.gz

About: Docker CE is a project to pack, ship and run any application as a lightweight container. Docker containers can run anywhere, on a laptop or at scale, in production, on VMs, bare metal, OpenStack clusters, public clouds and more. Community edition.

importer.go  (docker-ce-19.03.2):importer.go  (docker-ce-19.03.3)
skipping to change at line 200 skipping to change at line 200
} }
return writeManifest(ctx, store, idx, ocispec.MediaTypeImageIndex) return writeManifest(ctx, store, idx, ocispec.MediaTypeImageIndex)
} }
func onUntarJSON(r io.Reader, j interface{}) error { func onUntarJSON(r io.Reader, j interface{}) error {
b, err := ioutil.ReadAll(r) b, err := ioutil.ReadAll(r)
if err != nil { if err != nil {
return err return err
} }
if err := json.Unmarshal(b, j); err != nil { return json.Unmarshal(b, j)
return err
}
return nil
} }
func onUntarBlob(ctx context.Context, r io.Reader, store content.Ingester, size int64, ref string) (digest.Digest, error) { func onUntarBlob(ctx context.Context, r io.Reader, store content.Ingester, size int64, ref string) (digest.Digest, error) {
dgstr := digest.Canonical.Digester() dgstr := digest.Canonical.Digester()
if err := content.WriteBlob(ctx, store, ref, io.TeeReader(r, dgstr.Hash() ), ocispec.Descriptor{Size: size}); err != nil { if err := content.WriteBlob(ctx, store, ref, io.TeeReader(r, dgstr.Hash() ), ocispec.Descriptor{Size: size}); err != nil {
return "", err return "", err
} }
return dgstr.Digest(), nil return dgstr.Digest(), nil
 End of changes. 1 change blocks. 
4 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)