Documentation
¶
Index ¶
- func FindUSBDrivePathOnDut(ctx context.Context, run components.Runner, s components.Servod) (string, error)
- func IsSmartUSBDrive(ctx context.Context, run components.Runner, usbPath string) (bool, error)
- func RunCheckOnHost(ctx context.Context, run components.Runner, usbPath string, isSmartDevice bool, ...) (tlw.HardwareState, error)
- func UsbReset(ctx context.Context, run components.Runner, log logger.Logger, usbId string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindUSBDrivePathOnDut ¶
func FindUSBDrivePathOnDut(ctx context.Context, run components.Runner, s components.Servod) (string, error)
FindUSBDrivePathOnDut finds and returns the path of USB drive on a DUT.
func IsSmartUSBDrive ¶
IsSmartUSBDrive checks if USB is smart device. TODO: replace with better logic if possible.
func RunCheckOnHost ¶
func RunCheckOnHost(ctx context.Context, run components.Runner, usbPath string, isSmartDevice bool, timeout time.Duration) (tlw.HardwareState, error)
RunCheckOnHost generates new state for USB-drive by running check on DUT.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.