supervisor

package
v0.0.0-...-5168a6d Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Config is a pointer need to be set to the main configuration
	Config *config.ConfigurationInfo
	// IsSupervisor indicates if this machine is the supervisor
	IsSupervisor = false
)

Functions

func Run

func Run()

Run checks for a supervisor and becomes supervisor when needed

func Test_checkForDeadMachines

func Test_checkForDeadMachines(t *testing.T)

func Test_checkForDeadMachines_withUnits

func Test_checkForDeadMachines_withUnits(t *testing.T)

func Test_foundNewMachine

func Test_foundNewMachine(t *testing.T)

func Test_isSupervisorAlive

func Test_isSupervisorAlive(t *testing.T)

func Test_voteForSupervisor_AfterVoteDelete

func Test_voteForSupervisor_AfterVoteDelete(t *testing.T)

func Test_voteForSupervisor_FirstVote

func Test_voteForSupervisor_FirstVote(t *testing.T)

func Test_voteForSupervisor_SecondVote

func Test_voteForSupervisor_SecondVote(t *testing.T)

func Test_watchToBecomeSupervisorAndWin

func Test_watchToBecomeSupervisorAndWin(t *testing.T)

func Test_winningVote

func Test_winningVote(t *testing.T)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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