DockerCLI/cli/command
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
..
builder cli-plugins: alias an existing allowed command (only builder for now) 2019-04-19 01:26:45 +00:00
bundlefile Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
checkpoint formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
commands Merge pull request #1602 from thaJeztah/hide_experimental_deploy 2019-02-08 13:53:12 -08:00
config Fix annnotation on docker config create --template-driver 2019-03-21 16:19:06 +01:00
container Use single table for all ContainerImagePullPolicy tests 2019-05-06 14:16:26 -07:00
context Introduce .zip import for docker context 2019-05-29 12:58:45 -07:00
engine Remove e-mail from trial flow 2019-01-08 00:35:24 +01:00
formatter Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
idresolver Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
image vendor buildkit to f238f1e 2019-05-14 01:29:18 +00:00
inspect Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
manifest Add bash completion for `manifest` command family 2018-08-30 08:54:49 +02:00
network Refactor network parsing, add preliminary support for multiple networks 2019-04-03 16:42:57 +02:00
node Fix tests with missing mocks 2018-11-08 11:37:49 +01:00
plugin Update docker/docker to 827cb09f87964ed38b46502f22a585f2ed4a78e1 2019-03-19 22:21:51 +01:00
registry Add unit test coverage for token auth 2019-04-15 16:13:55 -07:00
secret Fix annotation on docker secret create --template-driver 2019-03-28 16:18:50 +01:00
service Switch to google/shlex 2019-04-13 17:51:15 +02:00
stack Regroup all kubernetes extra-fields under x-kubernetes 2019-04-12 15:46:11 +02:00
swarm Extract streams helpers from command package to their own package to remove a cyclic dependency from command to internal/containerizedengine 2019-01-28 14:36:00 +01:00
system Use underlying `NewKubernetesConfig` directly from compose-on-kubernetes. 2019-05-14 15:43:15 +01:00
task formatter package heavy refactoring 2018-10-23 17:05:44 +02:00
testdata Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
trust Fix tests with missing mocks 2018-11-08 11:37:49 +01:00
volume Fix labels copying value from environment variables 2019-03-19 03:01:57 +01:00
cli.go Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
cli_options.go Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
cli_options_test.go Unit test for WithContentTrustFromEnv 2019-01-29 11:26:40 +00:00
cli_test.go Cover the changes with unit test 2019-03-13 14:18:41 +01:00
context.go Cleanup context store interfaces 2019-04-18 15:49:36 +02:00
defaultcontextstore.go Push check for kubernetes requirement down into the endpoint 2019-05-20 13:28:11 +01:00
defaultcontextstore_test.go Dynamically register kubernetes context store endpoint type. 2019-05-20 13:28:11 +01:00
events_utils.go updated vendoring 2017-09-01 19:41:06 -04:00
orchestrator.go Fast Context Switch: commands 2019-01-10 22:25:43 +01:00
orchestrator_test.go Introduce docker context store 2019-01-04 17:06:51 +01:00
registry.go Simplify ElectAuthServer 2019-03-28 21:08:13 +00:00
registry_test.go Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
streams.go Extract streams helpers from command package to their own package to remove a cyclic dependency from command to internal/containerizedengine 2019-01-28 14:36:00 +01:00
trust.go Refactor content_trust cli/flags handling 2018-03-08 15:00:43 -05:00
utils.go cli-plugins: alias an existing allowed command (only builder for now) 2019-04-19 01:26:45 +00:00
utils_test.go cli-plugins: alias an existing allowed command (only builder for now) 2019-04-19 01:26:45 +00:00