Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + const ErrShellNotSupported + func PutRegistry(ctx context.Context, m *Registry) context.Context + type Device interface + CanTrace func() bool + ConnectPerfetto func(ctx context.Context) (*perfetto.Client, error) + FileContents func(ctx context.Context, path string) (string, error) + GetEnv func(ctx context.Context) (*shell.Env, error) + GetURIRoot func() string + GetWorkingDirectory func(ctx context.Context) (string, error) + Instance func() *device.Instance + IsDirectory func(ctx context.Context, path string) (bool, error) + IsFile func(ctx context.Context, path string) (bool, error) + IsLocal func(ctx context.Context) (bool, error) + ListDirectories func(ctx context.Context, path string) ([]string, error) + ListExecutables func(ctx context.Context, path string) ([]string, error) + PushFile func(ctx context.Context, sourcePath, destPath string) error + RemoveFile func(ctx context.Context, path string) error + SetupLocalPort func(ctx context.Context, port int) (int, error) + Shell func(name string, args ...string) shell.Cmd + Status func(ctx context.Context) Status + SupportsAngle func(ctx context.Context) bool + SupportsPerfetto func(ctx context.Context) bool + TempDir func(ctx context.Context) (string, app.Cleanup, error) + TempFile func(ctx context.Context) (string, func(ctx context.Context), error) + WriteFile func(ctx context.Context, contents io.Reader, mode os.FileMode, destPath string) error + func Host(ctx context.Context) Device + type DeviceListener interface + OnDeviceAdded func(context.Context, Device) + OnDeviceRemoved func(context.Context, Device) + func NewDeviceListener(onDeviceAdded, onDeviceRemoved func(context.Context, Device)) DeviceListener + type Registry struct + func GetRegistry(ctx context.Context) *Registry + func NewRegistry() *Registry + func (r *Registry) AddDevice(ctx context.Context, d Device) + func (r *Registry) DefaultDevice() Device + func (r *Registry) Device(id id.ID) Device + func (r *Registry) DeviceProperty(ctx context.Context, d Device, k interface{}) interface{} + func (r *Registry) Devices() []Device + func (r *Registry) Listen(l DeviceListener) (unregister func()) + func (r *Registry) RemoveDevice(ctx context.Context, d Device) + func (r *Registry) SetDeviceProperty(ctx context.Context, d Device, k, v interface{}) + type Simple struct + LastStatus Status + To *device.Instance + func (b *Simple) ABI() *device.ABI + func (b *Simple) CanTrace() bool + func (b *Simple) ConnectPerfetto(ctx context.Context) (*perfetto.Client, error) + func (b *Simple) FileContents(ctx context.Context, path string) (string, error) + func (b *Simple) GetEnv(ctx context.Context) (*shell.Env, error) + func (b *Simple) GetURIRoot() string + func (b *Simple) GetWorkingDirectory(ctx context.Context) (string, error) + func (b *Simple) Instance() *device.Instance + func (b *Simple) IsDirectory(ctx context.Context, path string) (bool, error) + func (b *Simple) IsFile(ctx context.Context, path string) (bool, error) + func (b *Simple) IsLocal(ctx context.Context) (bool, error) + func (b *Simple) ListDirectories(ctx context.Context, path string) ([]string, error) + func (b *Simple) ListExecutables(ctx context.Context, path string) ([]string, error) + func (b *Simple) PushFile(ctx context.Context, sourcePath, destPath string) error + func (b *Simple) RemoveFile(ctx context.Context, path string) error + func (b *Simple) SetupLocalPort(ctx context.Context, port int) (int, error) + func (b *Simple) Shell(name string, args ...string) shell.Cmd + func (b *Simple) Status(ctx context.Context) Status + func (b *Simple) String() string + func (b *Simple) SupportsAngle(ctx context.Context) bool + func (b *Simple) SupportsPerfetto(ctx context.Context) bool + func (b *Simple) TempDir(ctx context.Context) (string, app.Cleanup, error) + func (b *Simple) TempFile(ctx context.Context) (string, func(ctx context.Context), error) + func (b *Simple) WriteFile(ctx context.Context, contents io.Reader, mode os.FileMode, destPath string) error Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021