types

package
v0.0.0-...-34cbb95 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpireTaskRequest

type ExpireTaskRequest struct {
	TaskID int64 `json:"task"`
}

ExpireTaskRequest is the request used by the expire task endpoint.

type ExtendTaskRequest

type ExtendTaskRequest struct {
	TaskID      int64 `json:"task"`
	DurationHrs int   `json:"duration"`
}

ExtendTaskRequest is the request used by the extend task endpoint.

type PoolDetails

type PoolDetails struct {
	OsTypes         map[string]int            `json:"os_types"`
	OsToDeviceTypes map[string]map[string]int `json:"os_to_device_types"`
}

PoolDetails contains map of OS types to the count of bots in each OS type. Eg: {"Android": 84, "ChromOS": 4, ...} Also contains map of OS types to Device types to the count of bots in each device type. Eg: {"Android" : {"P30": 4, "Pixel4XL": 8, ...}}

type Task

type Task struct {
	Requester               string    `json:"requester"`
	OsType                  string    `json:"osType"`
	DeviceType              string    `json:"deviceType"`
	InitialDurationHrs      string    `json:"duration"`
	Created                 time.Time `json:"created"`
	LeaseStartTime          time.Time `json:"leaseStartTime"`
	LeaseEndTime            time.Time `json:"leaseEndTime"`
	Description             string    `json:"description"`
	Done                    bool      `json:"done"`
	WarningSent             bool      `json:"warningSent"`
	EmailThreadingReference string    `json:"emailThreadingReference"`

	TaskIdForIsolates string `json:"taskIdForIsolates"`
	SwarmingPool      string `json:"pool"`
	SwarmingBotId     string `json:"botId"`
	SwarmingServer    string `json:"swarmingServer"`
	SwarmingTaskId    string `json:"swarmingTaskId"`
	SwarmingTaskState string `json:"swarmingTaskState"`

	DatastoreId int64 `json:"datastoreId"`

	// Left for backwards compatibility but no longer used.
	Architecture  string `json:"architecture"`
	SetupDebugger bool   `json:"setupDebugger"`
}

Task represents a leasing task.

Directories

Path Synopsis
Program to generate TypeScript definition files for Golang structs that are serialized to JSON for the web UI.
Program to generate TypeScript definition files for Golang structs that are serialized to JSON for the web UI.

Jump to

Keyboard shortcuts

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