DockerCLI/cli/command/stack/swarm
Vincent Demeester 0f9d24f78d
Refactor `stack` command/package
- Handle `bundlefile` directly in the `top-level`
  command. `bundlefile` is still experimental and will be deprecated
  in future version — this should make be easier to remove it.
- Validate the `stack` name in all cases (i.e. whatever the
  orchestrator is used)
- Load the composefile ahead of choosing the orchestrator. This
  removes some slight duplication.
- Makes `RunDeploy` easier to use from outside packages (like
  `docker/app`) with a preloaded configuration.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2018-06-26 14:07:26 +02:00
..
testdata Refactor stack command 2017-12-26 11:45:56 +01:00
client_test.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
common.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
deploy.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
deploy_bundlefile.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
deploy_bundlefile_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
deploy_composefile.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
deploy_composefile_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
deploy_test.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
list.go Support 'all' in orchestrator flag for docker stack ls 2018-05-15 15:38:41 +02:00
ps.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
remove.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00
services.go Refactor `stack` command/package 2018-06-26 14:07:26 +02:00