package swarm
import "github.com/docker/cli/cli/command/stack/swarm"
Index ¶
- Constants
- func GetServices(ctx context.Context, dockerCli command.Cli, opts options.Services) ([]swarm.Service, error)
- func GetStacks(ctx context.Context, apiClient client.ServiceAPIClient) ([]*formatter.Stack, error)
- func RunDeploy(ctx context.Context, dockerCLI command.Cli, flags *pflag.FlagSet, opts *options.Deploy, cfg *composetypes.Config) error
- func RunPS(ctx context.Context, dockerCli command.Cli, opts options.PS) error
- func RunRemove(ctx context.Context, dockerCli command.Cli, opts options.Remove) error
Constants ¶
const ( ResolveImageAlways = "always" ResolveImageChanged = "changed" ResolveImageNever = "never" )
Resolve image constants
Functions ¶
func GetServices ¶
func GetServices(ctx context.Context, dockerCli command.Cli, opts options.Services) ([]swarm.Service, error)
GetServices is the swarm implementation of listing stack services
func GetStacks ¶
GetStacks lists the swarm stacks.
func RunDeploy ¶
func RunDeploy(ctx context.Context, dockerCLI command.Cli, flags *pflag.FlagSet, opts *options.Deploy, cfg *composetypes.Config) error
RunDeploy is the swarm implementation of docker stack deploy
func RunPS ¶
RunPS is the swarm implementation of docker stack ps
func RunRemove ¶
RunRemove is the swarm implementation of docker stack remove
Source Files ¶
common.go deploy.go deploy_composefile.go list.go ps.go remove.go services.go
- Version
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 23 packages
- Last checked
- 4 hours ago –
Tools for package owners.