Documentation ¶
Index ¶
- func RunFleetctl(args ...string) (string, string, error)
- func RunFleetctlWithInput(input string, args ...string) (string, string, error)
- func TempUnit(contents string) (string, error)
- func WaitForNActiveUnits(fleetctl fleetfunc, count int) (map[string]UnitState, error)
- func WaitForNMachines(fleetctl fleetfunc, count int) ([]string, error)
- type UnitState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunFleetctlWithInput ¶
func TempUnit ¶
tempUnit creates a local unit file with the given contents, returning the name of the file
func WaitForNActiveUnits ¶
WaitForNActiveUnits polls fleet for up to 10s, exiting when N units are found to be in an active state. It returns a map of active units to their target machines.
func WaitForNMachines ¶
Wait up to 10s to find the specified number of machines, retrying periodically.
Types ¶
Click to show internal directories.
Click to hide internal directories.