dockerswarm

package
v0.0.0-...-0910900 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package dockerswarm provides function for docker swarm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSwarmManager

func NewSwarmManager(managerIP string) cloudsolution.CloudManagerInterface

NewSwarmManager returns a dockerswarm manager

Types

type DockerSwarm

type DockerSwarm struct {
	// contains filtered or unexported fields
}

DockerSwarm keeps joinToken and managerIP of the system

func (DockerSwarm) ChangeState

func (ds DockerSwarm) ChangeState(wantedState ymlparser.State) cloudsolution.CloudManagerInterface

ChangeState changes the state of the system

func (DockerSwarm) CheckState

func (ds DockerSwarm) CheckState() bool

CheckState compares the actual state and the state we have deployed.

func (DockerSwarm) GetActiveState

func (ds DockerSwarm) GetActiveState() ymlparser.State

GetActiveState gets the current state of the cloud

func (DockerSwarm) GetLastDeployedState

func (ds DockerSwarm) GetLastDeployedState() ymlparser.State

GetLastDeployedState returns the State that we believe is currently running in cloud

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL