types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateShutdown state = iota
	StateBooted
)

StateShutdown represents the shutdown state of a device StateBooted represents the booted (successfully started) state of a device

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	ID        string `json:"id"`
	DebugPort string `json:"debug_port"`
	State     state  `json:"state"`
	Kind      Kind   `json:"kind"`
}

Instance represents a virtual device ID is the unique identifier of the virtual device DebugPort is only available on Android devices State stores the current state of the device, if successfully started setting it to Booted, otherwise Shutdown Kind stores the type of the device, it can be iOS or Android

type Kind

type Kind uint8

Kind is the kind of the virtual device can be iOS or Android

const (
	KindUnknow Kind = iota
	KindIos
	KindAndroid
)

KindUnknow is the default device kind KindIos if the virtual device is running iOS KindAndroid if the virtual device is running Android

type Pairs

type Pairs map[string]Instance

Pairs is an in memory key-value store for devices key is the name of the device the value stores the details

func (Pairs) String

func (p Pairs) String() string

String marshals the Pairs instance to JSON string

Jump to

Keyboard shortcuts

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