foreman

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMachineRoles

func GetMachineRoles(machines []machine.Machine) []machine.Machine

GetMachineRoles uses the minion map to find the associated minion with the machine, according to the foreman's last update cycle. The role of the minion is then added to the machine.Machine struct, and the updated slice is returned.

func Init

func Init(conn db.Conn)

Init the first time the foreman operates on a new namespace. It queries the currently running VMs for their previously assigned roles, and writes them to the database.

func RunOnce

func RunOnce(conn db.Conn)

RunOnce should be called regularly to allow the foreman to update minion cfg.

Types

This section is empty.

Jump to

Keyboard shortcuts

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