Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read ¶
Read reads a JSON file containing a map of string -> candidate. If the file cannot be read or deserialized, it returns an empty map.
func Update ¶
Update updates the LastReboot field for all the candidates named in the nodes slice and sets the Status to NotObserved. If a candidate did not previously exist, it creates a new one.
func UpdateStatus ¶
UpdateStatus updates the history according to the list of nodes to be rebooted on the current run. If a node was in NotObserved status, it will be updated to either ObservedOffline, if it's still in the candidates slice, or ObservedOnline if it's not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.