Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultLockUnlockValidationPause = time.Second * 5 DefaultLockUnlockRetries = 2 DefaultLockUnlockRetryInterval = time.Second * 30 )
Variables ¶
View Source
var (
ErrMaxLockUnlockRetries = errors.New("max retries reached")
)
Functions ¶
This section is empty.
Types ¶
type ADBFlasher ¶
type Config ¶
type Config struct { HostOS string FactoryImage FactoryImageFlasher PlatformTools PlatformToolsFlasher ADB ADBFlasher Fastboot FastbootFlasher Logger *logrus.Logger LockUnlockValidationPause time.Duration LockUnlockRetries int LockUnlockRetryInterval time.Duration }
type FactoryImageFlasher ¶
type FactoryImageFlasher interface { Validate(codename device.Codename) error FlashAll(device *device.Device, path platformtools.PlatformToolsPath) error }
type FastbootFlasher ¶
type PlatformToolsFlasher ¶
type PlatformToolsFlasher interface {
Path() platformtools.PlatformToolsPath
}
Click to show internal directories.
Click to hide internal directories.