distribution/docs
Stephen J Day b6270d9c14 Handle empty blob files more appropriately
Several API tests were added to ensure correct acceptance of zero-size and
empty tar files. This led to several changes in the storage backend around the
guarantees of remote file reading, which backs the layer and layer upload type.

In support of these changes, zero-length and empty checks have been added to
the digest package. These provide a sanity check against upstream tarsum
changes. The fileReader has been modified to be more robust when reading and
seeking on zero-length or non-existent files. The file no longer needs to exist
for the reader to be created. Seeks can now move beyond the end of the file,
causing reads to issue an io.EOF. This eliminates errors during certain race
conditions for reading files which should be detected by stat calls. As a part
of this, a few error types were factored out and the read buffer size was
increased to something more reasonable.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-02-02 13:01:49 -08:00
..
api_test.go Handle empty blob files more appropriately 2015-02-02 13:01:49 -08:00
app.go Merge pull request #89 from jlhawn/version_header 2015-01-20 13:42:12 -08:00
app_test.go Update the registry app to use the new storage interfaces 2015-01-16 18:33:28 -08:00
context.go Update the registry app to use the new storage interfaces 2015-01-16 18:33:28 -08:00
helpers.go Move registry package out of repo root 2015-01-06 10:40:22 -08:00
hmac.go Refactor handling of hmac state packing 2015-01-09 14:50:39 -08:00
hmac_test.go Refactor handling of hmac state packing 2015-01-09 14:50:39 -08:00
images.go Update the registry app to use the new storage interfaces 2015-01-16 18:33:28 -08:00
layer.go Update the registry app to use the new storage interfaces 2015-01-16 18:33:28 -08:00
layerupload.go Handle empty blob files more appropriately 2015-02-02 13:01:49 -08:00
tags.go Update the registry app to use the new storage interfaces 2015-01-16 18:33:28 -08:00
util.go Move registry package out of repo root 2015-01-06 10:40:22 -08:00