DockerCLI/cli/command/context
Goksu Toprak 291e86289b Introduce .zip import for docker context
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>
2019-05-29 12:58:45 -07:00
..
testdata Make default context behaves like a real context: 2019-03-18 11:45:46 +01:00
cmd.go Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
create.go context: produce consistent output on `context create`. 2019-05-13 16:42:03 +01:00
create_test.go context: produce consistent output on `context create`. 2019-05-13 16:42:03 +01:00
export-import_test.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
export.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
import.go Introduce .zip import for docker context 2019-05-29 12:58:45 -07:00
inspect.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
inspect_test.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
list.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
list_test.go add --from option to context create 2019-04-02 13:41:47 +01:00
options.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
remove.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
remove_test.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
update.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
update_test.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
use.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
use_test.go Add context store config options and expose context commands 2019-01-29 11:19:54 +01:00