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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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