package stack
import "github.com/docker/cli/cli/command/stack"
Index ¶
- func GetServices(dockerCli command.Cli, flags *pflag.FlagSet, commonOrchestrator command.Orchestrator, opts options.Services) ([]swarmtypes.Service, error)
- func NewStackCommand(dockerCli command.Cli) *cobra.Command
- func RunDeploy(dockerCli command.Cli, flags *pflag.FlagSet, config *composetypes.Config, commonOrchestrator command.Orchestrator, opts options.Deploy) error
- func RunList(cmd *cobra.Command, dockerCli command.Cli, opts options.List, orchestrator command.Orchestrator) error
- func RunPs(dockerCli command.Cli, flags *pflag.FlagSet, commonOrchestrator command.Orchestrator, opts options.PS) error
- func RunRemove(dockerCli command.Cli, flags *pflag.FlagSet, commonOrchestrator command.Orchestrator, opts options.Remove) error
- func RunServices(dockerCli command.Cli, flags *pflag.FlagSet, commonOrchestrator command.Orchestrator, opts options.Services) error
Functions ¶
func GetServices ¶
func GetServices(dockerCli command.Cli, flags *pflag.FlagSet, commonOrchestrator command.Orchestrator, opts options.Services) ([]swarmtypes.Service, error)
GetServices returns the services for the specified orchestrator
func NewStackCommand ¶
NewStackCommand returns a cobra command for `stack` subcommands
func RunDeploy ¶
func RunDeploy(dockerCli command.Cli, flags *pflag.FlagSet, config *composetypes.Config, commonOrchestrator command.Orchestrator, opts options.Deploy) error
RunDeploy performs a stack deploy against the specified orchestrator
func RunList ¶
func RunList(cmd *cobra.Command, dockerCli command.Cli, opts options.List, orchestrator command.Orchestrator) error
RunList performs a stack list against the specified orchestrator
func RunPs ¶
func RunPs(dockerCli command.Cli, flags *pflag.FlagSet, commonOrchestrator command.Orchestrator, opts options.PS) error
RunPs performs a stack ps against the specified orchestrator
func RunRemove ¶
func RunRemove(dockerCli command.Cli, flags *pflag.FlagSet, commonOrchestrator command.Orchestrator, opts options.Remove) error
RunRemove performs a stack remove against the specified orchestrator
func RunServices ¶
func RunServices(dockerCli command.Cli, flags *pflag.FlagSet, commonOrchestrator command.Orchestrator, opts options.Services) error
RunServices performs a stack services against the specified orchestrator
Source Files ¶
cmd.go common.go deploy.go list.go ps.go remove.go services.go
Directories ¶
Path | Synopsis |
---|---|
cli/command/stack/formatter | |
cli/command/stack/kubernetes | |
cli/command/stack/loader | |
cli/command/stack/options | |
cli/command/stack/swarm |
- Version
- v20.10.0+incompatible
- Published
- Dec 7, 2020
- Platform
- windows/amd64
- Imports
- 19 packages
- Last checked
- 1 second ago –
Tools for package owners.