DockerCLI/cli/context/store
Goksu Toprak 90f256aeab
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>
(cherry picked from commit 291e86289b)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-05-29 23:09:20 +03:00
..
doc.go Context Switch: documentation alignment 2019-01-21 09:24:12 +01:00
io_utils.go Introduce .zip import for docker context 2019-05-29 23:09:20 +03:00
io_utils_test.go Introduce .zip import for docker context 2019-05-29 23:09:20 +03:00
metadata_test.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
metadatastore.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
store.go Introduce .zip import for docker context 2019-05-29 23:09:20 +03:00
store_test.go Introduce .zip import for docker context 2019-05-29 23:09:20 +03:00
storeconfig.go Add a helper to iterate over all endpoint types in a context store 2019-05-24 15:55:24 +02:00
storeconfig_test.go Add context store config options and expose context commands 2019-01-29 11:19:54 +01:00
tlsstore.go Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
tlsstore_test.go Introduce docker context store 2019-01-04 17:06:51 +01:00