moby--moby/pkg/tarsum
Josh Hawn 213e3d1166 Add Tarsum Calculation during v2 Pull operation
While the v2 pull operation is writing the body of the layer blob to disk
it now computes the tarsum checksum of the archive before extracting it to
the backend storage driver. If the checksum does not match that from the
image manifest an error is raised.

Also adds more debug logging to the pull operation and fixes existing test
cases which were failing. Adds a reverse lookup constructor to the tarsum
package so that you can get a tarsum object using a checksum label.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-01-15 14:05:05 -08:00
..
testdata
MAINTAINERS pkg/tarsum: add maintainers & add missing s 2014-11-26 00:44:16 +02:00
builder_context.go Have .dockerignore support Dockerfile/.dockerignore 2015-01-06 10:57:48 -08:00
fileinfosums.go
fileinfosums_test.go
tarsum.go Add Tarsum Calculation during v2 Pull operation 2015-01-15 14:05:05 -08:00
tarsum_spec.md tarsum: updates for jamtur01 comments 2014-11-24 23:18:48 -05:00
tarsum_test.go Correctly close generated benchmark archives 2014-12-03 22:26:06 -08:00
versioning.go Add Tarsum Calculation during v2 Pull operation 2015-01-15 14:05:05 -08:00
versioning_test.go
writercloser.go