Documentation ¶
Index ¶
- Variables
- func AddDeviceSetupCallback(cb DeviceSetupCallback)
- func AllDevices() map[string]*Device
- func FindDevices() error
- func SetupDevices() error
- type Device
- func (dev *Device) CPUMHz() measure.Megahertz
- func (dev *Device) CombinedCPUMHz() measure.Megahertz
- func (dev *Device) Debug(f string, message ...interface{})
- func (dev *Device) GetDirectory() string
- func (dev *Device) GetFilePath(fileName string) string
- func (dev *Device) GetIP() net.IP
- func (dev *Device) GetLastScreenshot() string
- func (dev *Device) HardwareInOrder() (hardware []hardwarePair)
- func (dev *Device) Log(f string, message ...interface{})
- func (dev *Device) PrettyHardwareInOrder() (hardware []hardwarePair)
- func (dev *Device) PrettySoftwareInOrder() (software []softwarePair)
- func (dev *Device) RAMMBytes() measure.Megabytes
- func (dev *Device) ReadInfo() error
- func (dev *Device) SoftwareInOrder() (software []softwarePair)
- func (dev *Device) Warn(f string, warning ...interface{})
- func (dev *Device) WriteInfo() error
- type DeviceCollection
- type DeviceSetupCallback
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug bool
Functions ¶
func AddDeviceSetupCallback ¶
func AddDeviceSetupCallback(cb DeviceSetupCallback)
func AllDevices ¶
func FindDevices ¶
func FindDevices() error
func SetupDevices ¶
func SetupDevices() error
Types ¶
type Device ¶
type Device struct { DeviceID string Info deviceInfo LastScreenshot struct { Time time.Time File string } Online bool SSHRunning bool VNCRunning bool }
func (*Device) CombinedCPUMHz ¶
CPU MHz multiplied to consider all CPUs/cores
func (*Device) GetFilePath ¶
get device file path
func (*Device) GetLastScreenshot ¶
find the last screenshot
func (*Device) HardwareInOrder ¶
func (dev *Device) HardwareInOrder() (hardware []hardwarePair)
func (*Device) PrettyHardwareInOrder ¶
func (dev *Device) PrettyHardwareInOrder() (hardware []hardwarePair)
func (*Device) PrettySoftwareInOrder ¶
func (dev *Device) PrettySoftwareInOrder() (software []softwarePair)
func (*Device) SoftwareInOrder ¶
func (dev *Device) SoftwareInOrder() (software []softwarePair)
type DeviceCollection ¶
type DeviceCollection []*Device
func (DeviceCollection) Len ¶
func (devs DeviceCollection) Len() int
func (DeviceCollection) Less ¶
func (devs DeviceCollection) Less(i, j int) bool
func (DeviceCollection) Swap ¶
func (devs DeviceCollection) Swap(i, j int)
type DeviceSetupCallback ¶
Click to show internal directories.
Click to hide internal directories.