1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/integration
Alexander Larsson f198ee525a Properly close archives
All archive that are created from somewhere generally have to be closed, because
at some point there is a file or a pipe or something that backs them. So, we
make archive.Archive a ReadCloser. However, code consuming archives does not
typically close them so we add an archive.ArchiveReader and use that when we're
only reading.

We then change all the Tar/Archive places to create ReadClosers, and to properly
close them everywhere.

As an added bonus we can use ReadCloserWrapper rather than EofReader in several places,
which is good as EofReader doesn't always work right. For instance, many compression
schemes like gzip knows it is EOF before having read the EOF from the stream, so the
EofCloser never sees an EOF.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
2014-02-14 13:46:17 +01:00
..
api_test.go Move the canonical run configuration objects to a sub-package 2014-02-11 20:18:46 -08:00
auth_test.go Prevent Tests from creating users on Prod Index 2014-01-29 17:18:11 -08:00
buildfile_test.go Merge pull request #3524 from tianon/supplementary-groups 2014-02-10 14:42:14 -08:00
commands_test.go Move docker rmi to a job 2014-01-24 14:55:11 -08:00
container_test.go Move the canonical run configuration objects to a sub-package 2014-02-11 20:18:46 -08:00
graph_test.go Fix the tests, too 2014-02-11 19:10:23 -07:00
iptables_test.go Move utility package 'iptables' to pkg/iptables 2014-01-06 15:41:24 -08:00
runtime_test.go Move the canonical run configuration objects to a sub-package 2014-02-11 20:18:46 -08:00
server_test.go Move the canonical run configuration objects to a sub-package 2014-02-11 20:18:46 -08:00
sorter_test.go remove some mkServerFromEngine 2014-01-31 03:34:50 +00:00
utils_test.go Properly close archives 2014-02-14 13:46:17 +01:00
z_final_test.go