moby--moby/pkg
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
..
archive Have .dockerignore support Dockerfile/.dockerignore 2015-01-06 10:57:48 -08:00
broadcastwriter
chrootarchive Have .dockerignore support Dockerfile/.dockerignore 2015-01-06 10:57:48 -08:00
devicemapper devmapper: Use device id as specified by caller 2014-12-03 13:06:43 -05:00
fileutils
graphdb pkg/graphdb: use transactions for transactions 2014-12-19 13:57:21 +02:00
httputils
ioutils
iptables Create tests for pkg/iptables 2014-12-21 12:57:32 +10:00
jsonlog
listenbuffer
mflag correct the flag comments 2015-01-13 15:40:24 +08:00
mount Fix output format where no variable specified in mount pkg 2014-12-03 19:02:51 -08:00
namesgenerator Merge pull request #10029 from soulshake/add-cecilia-payne-gaposchkin 2015-01-12 17:31:19 -08:00
networkfs Update container resolv.conf when host network changes /etc/resolv.conf 2015-01-08 14:15:13 -05:00
parsers add ability to publish range of ports 2015-01-02 23:21:26 +00:00
pools
promise
proxy
reexec add pkg/chrootarchive and use it on the daemon 2014-11-25 01:03:40 +02:00
signal Removed race condition 2014-12-06 22:52:19 +08:00
stdcopy
symlink update copyrights to 2015 2015-01-12 22:47:36 +00:00
sysinfo
system pkg/system: fix cleanup in tests 2014-11-20 19:33:15 +02:00
systemd
tailfile
tarsum Add Tarsum Calculation during v2 Pull operation 2015-01-15 14:05:05 -08:00
term Use termios via CGO only on Linux 2014-11-25 20:49:01 +09:00
testutils
timeutils
truncindex Log when truncindex.Get returns >1 container 2014-12-13 17:43:05 +00:00
units pkg/units: fix size_test.go compilation 2014-12-19 18:38:12 +02:00
urlutil Move git and url checks into pkg 2014-11-24 18:10:37 -05:00
version
README.md

README.md

pkg/ is a collection of utility packages used by the Docker project without being specific to its internals.

Utility packages are kept separate from the docker core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Docker organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!