Documentation ¶
Index ¶
- Constants
- type DUTLinkDriver
- type JumpstarterConsoleWrapper
- type JumpstarterDevice
- func (d *JumpstarterDevice) AttachStorage(connected bool) error
- func (d *JumpstarterDevice) Console() (harness.ConsoleInterface, error)
- func (d *JumpstarterDevice) Device() (string, error)
- func (d *JumpstarterDevice) Driver() harness.HarnessDriver
- func (d *JumpstarterDevice) GetConfig() (map[string]string, error)
- func (d *JumpstarterDevice) IsBusy() (bool, error)
- func (d *JumpstarterDevice) Lock() error
- func (d *JumpstarterDevice) Name() string
- func (d *JumpstarterDevice) Power(action string) error
- func (d *JumpstarterDevice) Serial() (string, error)
- func (d *JumpstarterDevice) SetConfig(k, v string) error
- func (d *JumpstarterDevice) SetConsoleSpeed(bps int) error
- func (d *JumpstarterDevice) SetControl(signal string, value string) error
- func (d *JumpstarterDevice) SetDiskImage(path string, offset uint64) error
- func (d *JumpstarterDevice) SetName(name string) error
- func (d *JumpstarterDevice) SetTags(tags []string) error
- func (d *JumpstarterDevice) SetUsbConsole(console_substring string) error
- func (d *JumpstarterDevice) Tags() []string
- func (d *JumpstarterDevice) Unlock() error
- func (d *JumpstarterDevice) Version() (string, error)
- type StorageTarget
Constants ¶
View Source
const ( BASE_UDEVPATH = "/sys/bus/usb/devices/" USB_VID = "2b23" USB_PID = "1012" )
View Source
const BASE_DISKSBYID = "/dev/disk/by-id/"
View Source
const BLOCK_SIZE = 32 * 1024 * 1024
View Source
const ESCAPE_SEQUENCE = "\x02\x02\x02\x02\x02" // CTRL+B 5 times to exit from console to prompt (just in case)
View Source
const PROMPT = "#> "
View Source
const WAIT_TIME_USB_STORAGE = 12 * time.Second
View Source
const WAIT_TIME_USB_STORAGE_DISCONNECT = 6 * time.Second
View Source
const WAIT_TIME_USB_STORAGE_OFF = 2 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DUTLinkDriver ¶
type DUTLinkDriver struct{}
func (*DUTLinkDriver) Description ¶
func (d *DUTLinkDriver) Description() string
func (*DUTLinkDriver) FindDevices ¶
func (d *DUTLinkDriver) FindDevices() ([]harness.Device, error)
func (*DUTLinkDriver) Name ¶
func (d *DUTLinkDriver) Name() string
type JumpstarterConsoleWrapper ¶
type JumpstarterConsoleWrapper struct {
// contains filtered or unexported fields
}
func (*JumpstarterConsoleWrapper) Close ¶
func (c *JumpstarterConsoleWrapper) Close() error
func (*JumpstarterConsoleWrapper) Read ¶
func (c *JumpstarterConsoleWrapper) Read(p []byte) (n int, err error)
func (*JumpstarterConsoleWrapper) SetReadTimeout ¶
func (c *JumpstarterConsoleWrapper) SetReadTimeout(t time.Duration) error
type JumpstarterDevice ¶
type JumpstarterDevice struct {
// contains filtered or unexported fields
}
func (*JumpstarterDevice) AttachStorage ¶
func (d *JumpstarterDevice) AttachStorage(connected bool) error
func (*JumpstarterDevice) Console ¶
func (d *JumpstarterDevice) Console() (harness.ConsoleInterface, error)
func (*JumpstarterDevice) Device ¶
func (d *JumpstarterDevice) Device() (string, error)
func (*JumpstarterDevice) Driver ¶
func (d *JumpstarterDevice) Driver() harness.HarnessDriver
func (*JumpstarterDevice) GetConfig ¶
func (d *JumpstarterDevice) GetConfig() (map[string]string, error)
func (*JumpstarterDevice) IsBusy ¶
func (d *JumpstarterDevice) IsBusy() (bool, error)
func (*JumpstarterDevice) Lock ¶
func (d *JumpstarterDevice) Lock() error
func (*JumpstarterDevice) Name ¶
func (d *JumpstarterDevice) Name() string
func (*JumpstarterDevice) Power ¶
func (d *JumpstarterDevice) Power(action string) error
func (*JumpstarterDevice) Serial ¶
func (d *JumpstarterDevice) Serial() (string, error)
func (*JumpstarterDevice) SetConfig ¶
func (d *JumpstarterDevice) SetConfig(k, v string) error
func (*JumpstarterDevice) SetConsoleSpeed ¶
func (d *JumpstarterDevice) SetConsoleSpeed(bps int) error
func (*JumpstarterDevice) SetControl ¶
func (d *JumpstarterDevice) SetControl(signal string, value string) error
func (*JumpstarterDevice) SetDiskImage ¶
func (d *JumpstarterDevice) SetDiskImage(path string, offset uint64) error
func (*JumpstarterDevice) SetName ¶
func (d *JumpstarterDevice) SetName(name string) error
func (*JumpstarterDevice) SetTags ¶
func (d *JumpstarterDevice) SetTags(tags []string) error
func (*JumpstarterDevice) SetUsbConsole ¶
func (d *JumpstarterDevice) SetUsbConsole(console_substring string) error
func (*JumpstarterDevice) Tags ¶
func (d *JumpstarterDevice) Tags() []string
func (*JumpstarterDevice) Unlock ¶
func (d *JumpstarterDevice) Unlock() error
func (*JumpstarterDevice) Version ¶
func (d *JumpstarterDevice) Version() (string, error)
Click to show internal directories.
Click to hide internal directories.