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
Click to show internal directories.
Click to hide internal directories.