pkg/archive
Andy Goldstein 5e3e0f129e Fix invalid argument error on push
With 32ba6ab from #9261, TempArchive now closes the underlying file and
cleans it up as soon as the file's contents have been read. When pushing
an image, PushImageLayerRegistry attempts to call Close() on the layer,
which is a TempArchive that has already been closed. In this situation,
Close() returns an "invalid argument" error.

Add a Close method to TempArchive that does a no-op if the underlying
file has already been closed.

Signed-off-by: Andy Goldstein <agoldste@redhat.com>
2014-12-03 16:12:24 -05:00
..
testdata Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
archive.go Fix invalid argument error on push 2014-12-03 16:12:24 -05:00
archive_test.go Fix invalid argument error on push 2014-12-03 16:12:24 -05:00
archive_unix.go Refactor pkg/archive with a platform-independent stat struct 2014-11-14 18:20:54 -08:00
archive_windows.go Refactor pkg/archive with a platform-independent stat struct 2014-11-14 18:20:54 -08:00
changes.go Refactor pkg/archive with a platform-independent stat struct 2014-11-14 18:20:54 -08:00
changes_test.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
diff.go Change path breakout detection logic in archive package 2014-11-28 09:44:47 -08:00
diff_test.go archive: add breakout tests 2014-11-25 01:03:41 +02:00
example_changes.go archive: example app for diffing directories 2014-10-29 14:52:59 -04:00
MAINTAINERS Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
README.md Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
time_linux.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
time_unsupported.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00
utils_test.go archive: add breakout tests 2014-11-25 01:03:41 +02:00
wrap.go Move archive package into pkg/archive 2014-09-29 23:23:36 -07:00

This code provides helper functions for dealing with archive files.