package stack
import "github.com/docker/cli/cli/command/stack"
Index ¶
- func GetServices(dockerCli command.Cli, _ *pflag.FlagSet, opts options.Services) ([]swarmtypes.Service, error)
- func NewStackCommand(dockerCli command.Cli) *cobra.Command
- func RunDeploy(dockerCli command.Cli, _ *pflag.FlagSet, config *composetypes.Config, opts options.Deploy) error
- func RunList(dockerCli command.Cli, opts options.List) error
- func RunPs(dockerCli command.Cli, _ *pflag.FlagSet, opts options.PS) error
- func RunRemove(dockerCli command.Cli, _ *pflag.FlagSet, opts options.Remove) error
- func RunServices(dockerCli command.Cli, opts options.Services) error
Functions ¶
func GetServices ¶
func GetServices(dockerCli command.Cli, _ *pflag.FlagSet, opts options.Services) ([]swarmtypes.Service, error)
GetServices returns the services for the specified swarm cluster.
Deprecated: use swarm.GetServices instead.
func NewStackCommand ¶
NewStackCommand returns a cobra command for `stack` subcommands
func RunDeploy ¶
func RunDeploy(dockerCli command.Cli, _ *pflag.FlagSet, config *composetypes.Config, opts options.Deploy) error
RunDeploy performs a stack deploy against the specified swarm cluster.
Deprecated: use swarm.RunDeploy instead.
func RunList ¶
RunList performs a stack list against the specified swarm cluster
func RunPs ¶
RunPs performs a stack ps against the specified swarm cluster.
Deprecated: use swarm.RunPS instead.
func RunRemove ¶
RunRemove performs a stack remove against the specified swarm cluster.
Deprecated: use swarm.RunRemove instead.
func RunServices ¶
RunServices performs a stack services against the specified swarm cluster
Source Files ¶
cmd.go common.go config.go deploy.go list.go ps.go remove.go services.go
Directories ¶
Path | Synopsis |
---|---|
cli/command/stack/formatter | |
cli/command/stack/loader | |
cli/command/stack/options | |
cli/command/stack/swarm |
- Version
- v23.0.9+incompatible
- Published
- Dec 7, 2023
- Platform
- js/wasm
- Imports
- 21 packages
- Last checked
- 3 hours ago –
Tools for package owners.