Documentation ¶
Overview ¶
Package dummy provides a fake device to demo flashing firmware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device is a fake device using the local filesystem for storage.
func New ¶
New creates a new dummy device instance using data from flags. TODO(al): figure out how/whether to remove the flag from in here.
func (Device) ApplyUpdate ¶
func (d Device) ApplyUpdate(u api.UpdatePackage) error
ApplyUpdate applies the firmware update to the dummy device. The firmware image is stored in the dummy state directory in the firmware.bin file, and the rest of the update bundle is stored in the bundle.json file.
func (Device) DeviceCheckpoint ¶
DeviceCheckpoint returns the latest log checkpoint stored on the device.
Click to show internal directories.
Click to hide internal directories.