Documentation ¶
Index ¶
- Constants
- func CreateNetworkIfNotExists(ctx context.Context, remote *client.Client, name string) error
- func DeployService(ctx context.Context, out io.Writer, docker *client.Client, name, image string, ...) error
- func DialSSH(sshClient *ssh.Client) (*client.Client, error)
- func ExecContainer(ctx context.Context, remote *client.Client, containerID string, cmd []string) error
- func FindService(ctx context.Context, remote *client.Client, name string) (*swarm.Service, error)
- func InitSwarm(ctx context.Context, remote *client.Client, host string) error
- func InstallDocker(c *ssh.Client) error
- func IsDockerInstalled(c *ssh.Client) bool
- func IsSwarmInactive(ctx context.Context, remote *client.Client) (bool, error)
- func ListTasks(ctx context.Context, remote *client.Client, serviceID string) ([]swarm.Task, error)
- func NetworkExists(ctx context.Context, remote *client.Client, name string) (bool, error)
- func WaitForService(ctx context.Context, out io.Writer, docker *client.Client, serviceID string) error
Constants ¶
View Source
const ( SwarmLabel = "dockboy-swarm" DockboyInternalNetwork = "dockboy-internal" DockboyPublicNetwork = "dockboy-public" )
Variables ¶
This section is empty.
Functions ¶
func DeployService ¶
func ExecContainer ¶
func FindService ¶
func InstallDocker ¶
func IsDockerInstalled ¶
func IsSwarmInactive ¶
func NetworkExists ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.