Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIPrefix = "/json/v1" MachineDescriptionRelativeURL = "/machine/description/{id:.+}" MachineEventRelativeURL = "/machine/event/" PowerCycleCompleteRelativeURL = "/powercycle/complete/{id:.+}" PowerCycleListRelativeURL = "/powercycle/list" PowerCycleStateUpdateRelativeURL = "/powercycle/state/update" SSEMachineDescriptionUpdatedRelativeURL = "/machine/sse/description/updated" MachineDescriptionURL = APIPrefix + MachineDescriptionRelativeURL MachineEventURL = APIPrefix + MachineEventRelativeURL PowerCycleCompleteURL = APIPrefix + PowerCycleCompleteRelativeURL PowerCycleListURL = APIPrefix + PowerCycleListRelativeURL PowerCycleStateUpdateURL = APIPrefix + PowerCycleStateUpdateRelativeURL SSEMachineDescriptionUpdatedURL = APIPrefix + SSEMachineDescriptionUpdatedRelativeURL )
URL paths.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListMachinesResponse ¶
type ListMachinesResponse []machine.Description
ListMachinesResponse is the full list of all known machines.
type ListPowerCycleResponse ¶
type ListPowerCycleResponse []string
ListPowerCycleResponse is the list of machine ids that need powercycling.
func ToListPowerCycleResponse ¶
func ToListPowerCycleResponse(machineIDs []string) ListPowerCycleResponse
ToListPowerCycleResponse converts the response from store.ListPowerCycle to a ListPowerCycleResponse.
type PowerCycleStateForMachine ¶
type PowerCycleStateForMachine struct { MachineID string PowerCycleState machine.PowerCycleState }
type SetAttachedDevice ¶
type SetAttachedDevice struct {
AttachedDevice machine.AttachedDevice
}
type SetNoteRequest ¶
type SetNoteRequest struct {
Message string
}
type SupplyChromeOSRequest ¶
type SupplyChromeOSRequest struct { SSHUserIP string SuppliedDimensions machine.SwarmingDimensions }
type UpdatePowerCycleStateRequest ¶
type UpdatePowerCycleStateRequest struct {
Machines []PowerCycleStateForMachine
}
Click to show internal directories.
Click to hide internal directories.