v1

package
v0.0.0-...-c560e42 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: Apache-2.0, BSD-2-Clause, ISC, + 1 more Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const EnvConfigImageDirectoriesVar = "@image_dirs"

Prefix for specifying image directory ID while creating CVD with CreateCVDRequest.EnvConfig.

Variables

This section is empty.

Functions

This section is empty.

Types

type CVD

type CVD struct {
	// [Output Only] The group name the instance belongs to.
	Group string `json:"group"`
	// [Output Only] Identifier within a group.
	Name string `json:"name"`
	// [Output Only]
	Status string `json:"status"`
	// [Output Only]
	Displays []string `json:"displays"`
	// [Output Only]
	WebRTCDeviceID string `json:"webrtc_device_id"`
	// [Output Only]
	ADBSerial string `json:"adb_serial"`
	// [Output Only]
	ADBPort uint32 `json:"adb_port"`
}

func (*CVD) ID

func (c *CVD) ID() string

Identifier within the whole fleet. Format: "{group}/{name}".

type CreateCVDRequest

type CreateCVDRequest struct {
	// Environment canonical configuration.
	// Structure: https://android.googlesource.com/device/google/cuttlefish/+/8bbd3b9cd815f756f332791d45c4f492b663e493/host/commands/cvd/parser/README.md
	// Example: https://cs.android.com/android/platform/superproject/main/+/main:device/google/cuttlefish/host/cvd_test_configs/main_phone-main_watch.json;drc=b2e8f4f014abb7f9cb56c0ae199334aacb04542d
	// NOTE: Using this as a black box for now as its content is unstable. Use the test configs pointed
	// above as reference to build your config object.
	EnvConfig map[string]interface{} `json:"env_config"`
}

Use `X-Cutf-Host-Orchestrator-BuildAPI-Creds` http header to pass the Build API credentials.

type CreateCVDResponse

type CreateCVDResponse struct {
	CVDs []*CVD `json:"cvds"`
}

type CreateImageDirectoryResponse

type CreateImageDirectoryResponse struct {
	// [Output Only] Identifier of created image directory.
	ID string `json:"id"`
}

type CreateSnapshotRequest

type CreateSnapshotRequest struct {
	// [Optional]
	// Value must match regex: "^([a-z0-9\\-]+)$".
	SnapshotID string `json:"snapshot_id,omitempty"`
}

type CreateSnapshotResponse

type CreateSnapshotResponse struct {
	SnapshotID string `json:"snapshot_id"`
}

type Display

type Display struct {
	DPI           []int       `json:"dpi"`
	Mode          DisplayMode `json:"mode"`
	RefreshRateHZ int         `json:"refresh_rate_hz"`
}

type DisplayAddRequest

type DisplayAddRequest struct {
	Width         int `json:"width"`
	Height        int `json:"height"`
	DPI           int `json:"dpi,omitempty"`
	RefreshRateHZ int `json:"refresh_rate_hz,omitempty"`
}

type DisplayAddResponse

type DisplayAddResponse = struct {
	DisplayNumber int `json:"display_number"`
}

type DisplayListResponse

type DisplayListResponse struct {
	Displays map[int]Display `json:"displays"`
}

type DisplayMode

type DisplayMode struct {
	Windowed []int `json:"windowed"`
}

type DisplayRemoveResponse

type DisplayRemoveResponse = EmptyResponse

type DisplayScreenshotRequest

type DisplayScreenshotRequest struct {
	DisplayNumber int `json:"display_number,omitempty"`
}

type DisplayScreenshotResponse

type DisplayScreenshotResponse struct {
	ScreenshotBytesBase64 string `json:"screenshot_bytes"`
	ScreenshotMimeType    string `json:"screenshot_mime_type"`
}

type EmptyResponse

type EmptyResponse struct{}

type ImageDirectory

type ImageDirectory struct {
	ID string `json:"id"`
}

type ListCVDsResponse

type ListCVDsResponse struct {
	CVDs []*CVD `json:"cvds"`
}

type ListImageDirectoriesResponse

type ListImageDirectoriesResponse struct {
	// [Output Only] Identifiers of image directories.
	ImageDirs []ImageDirectory `json:"image_dirs"`
}

type ListOperationsResponse

type ListOperationsResponse struct {
	Operations []Operation `json:"operations"`
}

type ListScreenRecordingsResponse

type ListScreenRecordingsResponse struct {
	ScreenRecordings []string `json:"screen_recordings"`
}

type ListUploadDirectoriesResponse

type ListUploadDirectoriesResponse struct {
	Items []*UploadDirectory `json:"items"`
}

type Operation

type Operation struct {
	Name string `json:"name"`
	// If the value is `false`, it means the operation is still in progress.
	// If `true`, the operation is completed, and either `error` or `response` is
	// available.
	Done bool `json:"done"`
}

type StartCVDRequest

type StartCVDRequest struct {
	// Start from the relevant snaphost if not empty.
	SnapshotID string `json:"snapshot_id,omitempty"`
}

type StatArtifactResponse

type StatArtifactResponse struct{}

type StopCVDResponse

type StopCVDResponse = EmptyResponse

type UpdateImageDirectoryRequest

type UpdateImageDirectoryRequest struct {
	UserArtifactChecksum string `json:"user_artifact_checksum"`
}

type UploadDirectory

type UploadDirectory struct {
	// [Output Only]
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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