devices

package
v0.195.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByOSReader added in v0.194.2

type ByOSReader interface {
	GetDevicesByOS(ctx context.Context, OS string) ([]Device, error)
}

ByOSReader is the interface for retrieving available devices by OS.

type Device

type Device struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	OS        string `json:"os"`
	OSVersion string `json:"osVersion"`
}

Device describes a real device that can be used to run tests.

type DeviceStatus added in v0.194.2

type DeviceStatus struct {
	ID              string
	Status          devicestatus.Status
	InUseBy         []string
	IsPrivateDevice bool
}

type DeviceWithStatus added in v0.194.2

type DeviceWithStatus struct {
	ID        string              `json:"id"`
	Name      string              `json:"name"`
	OS        string              `json:"os"`
	OSVersion string              `json:"osVersion"`
	Status    devicestatus.Status `json:"status"`
}

type Reader

type Reader interface {
	GetDevices(ctx context.Context) ([]Device, error)
}

Reader is the interface for retrieving available devices.

type StatusReader added in v0.194.2

type StatusReader interface {
	GetDevicesStatuses(ctx context.Context) ([]DeviceStatus, error)
	GetDevicesWithStatuses(ctx context.Context) ([]DeviceWithStatus, error)
}

StatusReader is the interface for retrieving available devices' statuses.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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