mirror of https://github.com/docker/cli.git
291e86289b
Adds capabilities to import a .zip file with importZip. Detects the content type of source by checking bytes & DetectContentType. Adds LimitedReader reader, a fork of io.LimitedReader, was needed for better error messaging instead of just getting back EOF. We are using limited reader to avoid very big files causing memory issues. Adds a new file size limit for context imports, this limit is used for the main file for .zip & .tar and individual compressed files for .zip. Added TestImportZip that will check the import content type Then will assert no err on Importing .zip file Signed-off-by: Goksu Toprak <goksu.toprak@docker.com> |
||
---|---|---|
.. | ||
testdata | ||
cmd.go | ||
create.go | ||
create_test.go | ||
export-import_test.go | ||
export.go | ||
import.go | ||
inspect.go | ||
inspect_test.go | ||
list.go | ||
list_test.go | ||
options.go | ||
remove.go | ||
remove_test.go | ||
update.go | ||
update_test.go | ||
use.go | ||
use_test.go |