rpc

package
v0.0.0-...-de58349 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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