devices

package
v0.0.0-...-0ea2aa8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device interface {
	// DeviceCheckpoint returns the log checkpoint note used during the last firmware update.
	DeviceCheckpoint() ([]byte, error)
	// ApplyUpdate applies the provided update to the device.
	ApplyUpdate(api.UpdatePackage) error
}

Device represents an updatable device.

Drivers for individual devices would be bound to this interface, which allows a generic flash tool to control the secure update process.

type ErrNeedsInit

type ErrNeedsInit = error

ErrNeedsInit error type indicates that the device is as yet uninitialised and the device may need to be "force" flashed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL