util

package
v0.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunFleetctl

func RunFleetctl(args ...string) (string, string, error)

func RunFleetctlWithInput

func RunFleetctlWithInput(input string, args ...string) (string, string, error)

func TempUnit

func TempUnit(contents string) (string, error)

tempUnit creates a local unit file with the given contents, returning the name of the file

func WaitForNActiveUnits

func WaitForNActiveUnits(fleetctl fleetfunc, count int) (map[string]UnitState, error)

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

func WaitForNMachines(fleetctl fleetfunc, count int) ([]string, error)

Wait up to 10s to find the specified number of machines, retrying periodically.

Types

type UnitState

type UnitState struct {
	Name        string
	JobState    string
	ActiveState string
	Machine     string
}

Jump to

Keyboard shortcuts

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