nitrokey.nk3.updates¶
- class nitrokey.nk3.updates.UpdateUi¶
Bases :
ABC
- abstract abort(*msgs)¶
- Paramètres:
msgs (Any)
- Type renvoyé:
Exception
- abstract abort_downgrade(current, image)¶
- abstract abort_pynitrokey_version(current, required)¶
- abstract confirm_download(current, new)¶
- abstract confirm_extra_information(extra_info)¶
- Paramètres:
extra_info (List[str])
- Type renvoyé:
None
- abstract confirm_pynitrokey_version(current, required)¶
- abstract confirm_update(current, new)¶
- abstract download_progress_bar(desc)¶
- Paramètres:
desc (str)
- Type renvoyé:
Iterator[Callable[[int, int], None]]
- abstract error(*msgs)¶
- Paramètres:
msgs (Any)
- Type renvoyé:
Exception
- abstract finalization_progress_bar()¶
- Type renvoyé:
Iterator[Callable[[int, int], None]]
- abstract pre_bootloader_hint()¶
- Type renvoyé:
None
- abstract request_bootloader_confirmation()¶
- Type renvoyé:
None
- abstract update_progress_bar()¶
- Type renvoyé:
Iterator[Callable[[int, int], None]]
- class nitrokey.nk3.updates.Updater¶
Bases :
object
- __init__(ui, await_bootloader, await_device, ignore_warnings=frozenset({}))¶
- Paramètres:
ui (UpdateUi)
await_bootloader (Callable[[], NK3Bootloader])
await_device (Callable[[int | None, Callable[[int, int], None] | None], NK3])
ignore_warnings (Set[Warning])
- Type renvoyé:
None
- update(device, image, update_version, ignore_pynitrokey_version=False)¶
- Paramètres:
device (TrussedBase)
image (str | None)
update_version (str | None)
ignore_pynitrokey_version (bool)
- Type renvoyé:
- class nitrokey.nk3.updates.Warning¶
Bases :
Enum
Avertissement pouvant survenir lors d’une mise à jour du micrologiciel.
Par défaut, ces avertissements interrompent la mise à jour du microprogramme. Cette énumération peut être utilisée pour sélectionner les types d’avertissements qui doivent être ignorés et ne pas faire échouer la mise à jour du microprogramme.
- IFS_MIGRATION_V2 = 'ifs-migration-v2'¶
- MISSING_STATUS = 'missing-status'¶
- SDK_VERSION = 'sdk-version'¶
- UPDATE_FROM_BOOTLOADER = 'update-from-bootloader'¶
- property message: str¶