package swarm

import "github.com/docker/cli/cli/command/stack/swarm"

Index

Constants

const (
	ResolveImageAlways  = "always"
	ResolveImageChanged = "changed"
	ResolveImageNever   = "never"
)

Resolve image constants

Functions

func GetServices

func GetServices(dockerCli command.Cli, opts options.Services) ([]swarm.Service, error)

GetServices is the swarm implementation of listing stack services

func GetStacks

func GetStacks(dockerCli command.Cli) ([]*formatter.Stack, error)

GetStacks lists the swarm stacks.

func RunDeploy

func RunDeploy(dockerCli command.Cli, opts options.Deploy, cfg *composetypes.Config) error

RunDeploy is the swarm implementation of docker stack deploy

func RunPS

func RunPS(dockerCli command.Cli, opts options.PS) error

RunPS is the swarm implementation of docker stack ps

func RunRemove

func RunRemove(dockerCli command.Cli, opts options.Remove) error

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
v23.0.14+incompatible
Published
Sep 5, 2024
Platform
js/wasm
Imports
20 packages
Last checked
3 hours ago

Tools for package owners.