Documentation ¶
Index ¶
- func ActiveToSingleStates(active map[string][]UnitState) (map[string]UnitState, error)
- 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 ActiveToSingleStates ¶ added in v0.8.0
ActiveToSingleStates takes a map of active states (such as that returned by WaitForNActiveUnits) and ensures that each unit has at most a single active state. It returns a mapping of unit name to a single UnitState.
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 15s, exiting when N units are found to be in an active state. It returns a map of unit name to a list of active UnitStates for that unit
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.