DockerCLI/cli/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
..
docker Revert "add a 10s timeout to the client object." 2019-05-17 10:35:01 +01:00
kubernetes Push check for kubernetes requirement down into the endpoint 2019-05-20 13:28:11 +01:00
store Introduce .zip import for docker context 2019-05-29 12:58:45 -07:00
endpoint.go Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
tlsdata.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00