{"modulePath":"github.com/docker/CLI","version":"v28.5.2+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package swarm\n\n## Constants\n\n```go\nconst (\n\tResolveImageAlways  = \"always\"\n\tResolveImageChanged = \"changed\"\n\tResolveImageNever   = \"never\"\n)\n```\nResolve image constants\n\n## Functions\n\n```go\nfunc GetServices(ctx context.Context, dockerCLI command.Cli, opts options.Services) ([]swarm.Service, error)\n```\nGetServices is the swarm implementation of listing stack services\n\nDeprecated: this function was for internal use and will be removed in the next release.\n\n```go\nfunc GetStacks(ctx context.Context, apiClient client.ServiceAPIClient) ([]*formatter.Stack, error)\n```\nGetStacks lists the swarm stacks.\n\nDeprecated: this function was for internal use and will be removed in the next release.\n\n```go\nfunc RunDeploy(ctx context.Context, dockerCLI command.Cli, flags *pflag.FlagSet, opts *options.Deploy, cfg *composetypes.Config) error\n```\nRunDeploy is the swarm implementation of docker stack deploy\n\nDeprecated: this function was for internal use and will be removed in the next release.\n\n```go\nfunc RunPS(ctx context.Context, dockerCLI command.Cli, opts options.PS) error\n```\nRunPS is the swarm implementation of docker stack ps\n\nDeprecated: this function was for internal use and will be removed in the next release.\n\n```go\nfunc RunRemove(ctx context.Context, dockerCli command.Cli, opts options.Remove) error\n```\nRunRemove is the swarm implementation of docker stack remove\n\nDeprecated: this function was for internal use and will be removed in the next release.\n\n","path":"github.com/docker/CLI/cli/command/stack/swarm","name":"swarm","synopsis":"","isRedistributable":true}
