Documentation
¶
Overview ¶
Package crosfleet contains utilities for interfacing with crosfleet command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CrosfleetLeasedDUTs ¶
CrosfleetLeasedDUTs will run the crosfleet cli and return a slice of strings for all DUTs that are actively leased by crosfleet. Will return an error if crosfleet cli is not installed or there is a problem parsing JSON output from crosfleet.
func DUTLeaseTimeRemainingSeconds ¶
DUTLeaseTimeRemainingSeconds uses the given context calls crosfleet and then calculates the remaining time on the lease for the DUT identified by hostname. Returns and int with time remaining (or 0 if lease has ended), and nil error if successful, otherwise returns 0 and an error if remaining lease time could not be determined.
Types ¶
This section is empty.