DockerCLI/cli-plugins/manager
Ian Campbell 891b3d953e cli-plugins: use `docker system dial-stdio` to call the daemon
This means that plugins can use whatever methods the monolithic CLI supports,
which is good for consistency.

This relies on `os.Args[0]` being something which can be executed again to
reach the same binary, since it is propagated (via an envvar) to the plugin for
this purpose. This essentially requires that the current working directory and
path are not modified by the monolithic CLI before it launches the plugin nor
by the plugin before it initializes the client. This should be the case.

Previously the fake apiclient used by `TestExperimentalCLI` was not being used,
since `cli.Initialize` was unconditionally overwriting it with a real one
(talking to a real daemon during unit testing, it seems). This wasn't expected
nor desirable and no longer happens with the new arrangements, exposing the
fact that no `pingFunc` is provided, leading to a panic. Add a `pingFunc` to
the fake client to avoid this.

Signed-off-by: Ian Campbell <ijc@docker.com>
2019-02-18 11:53:37 +00:00
..
candidate.go Add support for running a CLI plugin 2019-01-30 13:44:04 +00:00
candidate_test.go Integrate CLI plugins into `docker info` 2019-01-30 13:45:26 +00:00
cobra.go Ensure that plugins are only listed once in help outputs. 2019-01-30 13:55:42 +00:00
error.go Integrate CLI plugins into `docker info` 2019-01-30 13:45:26 +00:00
error_test.go Integrate CLI plugins into `docker info` 2019-01-30 13:45:26 +00:00
manager.go cli-plugins: use `docker system dial-stdio` to call the daemon 2019-02-18 11:53:37 +00:00
manager_test.go Ensure plugins default search path obeys `--config` 2019-01-30 13:45:26 +00:00
manager_unix.go Add support for running a CLI plugin 2019-01-30 13:44:04 +00:00
manager_windows.go Add support for running a CLI plugin 2019-01-30 13:44:04 +00:00
metadata.go Documentation on writing a plugin 2019-01-30 13:45:26 +00:00
plugin.go Refactor code which deals with Windows' `.exe` suffix 2019-01-30 13:45:26 +00:00
suffix_unix.go Refactor code which deals with Windows' `.exe` suffix 2019-01-30 13:45:26 +00:00
suffix_windows.go Check for `.exe` case insensitively 2019-01-30 13:45:26 +00:00