Documentation ¶
Index ¶
- Constants
- func ActiveToSingleStates(active map[string][]UnitState) (map[string]UnitState, error)
- func BuildCloudConfig(dst io.Writer, ip, etcdEndpoint, etcdKeyPrefix string) error
- func CopyFile(newFile, oldFile string) error
- func GenNewFleetService(newFile, oldFile, newVal, oldVal string) error
- func NewMachineID() string
- func RunFleetctl(args ...string) (string, string, error)
- func RunFleetctlWithInput(input string, args ...string) (string, string, error)
- func TempUnit(contents string) (string, error)
- func WaitForState(stateCheckFunc func() bool) (time.Duration, error)
- type UnitFileState
- type UnitState
Constants ¶
View Source
const (
FleetTTL = "3s"
)
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 BuildCloudConfig ¶ added in v0.10.0
func GenNewFleetService ¶ added in v0.13.0
GenNewFleetService() is a helper for generating a temporary fleet service that reads from oldFile, replaces oldVal with newVal, and stores the result to newFile.
func NewMachineID ¶ added in v0.13.0
func NewMachineID() string
func RunFleetctlWithInput ¶
Types ¶
type UnitFileState ¶ added in v0.12.0
func ParseUnitFileStates ¶ added in v0.12.0
func ParseUnitFileStates(units []string) (states []UnitFileState)
Click to show internal directories.
Click to hide internal directories.