nitrokey.nk3.updates¶
- class nitrokey.nk3.updates.UpdateUi¶
Basen:
ABC
- abstract abort(*msgs)¶
- Parameter:
msgs (Any)
- Rückgabetyp:
Exception
- abstract abort_downgrade(current, image)¶
- abstract abort_pynitrokey_version(current, required)¶
- abstract confirm_download(current, new)¶
- abstract confirm_extra_information(extra_info)¶
- Parameter:
extra_info (List[str])
- Rückgabetyp:
None
- abstract confirm_pynitrokey_version(current, required)¶
- abstract confirm_update(current, new)¶
- abstract download_progress_bar(desc)¶
- Parameter:
desc (str)
- Rückgabetyp:
Iterator[Callable[[int, int], None]]
- abstract error(*msgs)¶
- Parameter:
msgs (Any)
- Rückgabetyp:
Exception
- abstract finalization_progress_bar()¶
- Rückgabetyp:
Iterator[Callable[[int, int], None]]
- abstract pre_bootloader_hint()¶
- Rückgabetyp:
None
- abstract request_bootloader_confirmation()¶
- Rückgabetyp:
None
- abstract update_progress_bar()¶
- Rückgabetyp:
Iterator[Callable[[int, int], None]]
- class nitrokey.nk3.updates.Updater¶
Basen:
Objekt
- __init__(ui, await_bootloader, await_device, ignore_warnings=frozenset({}))¶
- Parameter:
ui (UpdateUi)
await_bootloader (Callable[[], NK3Bootloader])
await_device (Callable[[int | None, Callable[[int, int], None] | None], NK3])
ignore_warnings (Set[Warning])
- Rückgabetyp:
None
- update(device, image, update_version, ignore_pynitrokey_version=False)¶
- Parameter:
device (TrussedBase)
image (str | None)
update_version (str | None)
ignore_pynitrokey_version (bool)
- Rückgabetyp:
- class nitrokey.nk3.updates.Warning¶
Basen:
Enum
Eine Warnung, die während einer Firmware-Aktualisierung auftreten kann.
Standardmäßig brechen diese Warnungen das Firmware-Update ab. Diese Aufzählung kann verwendet werden, um Typen von Warnungen auszuwählen, die ignoriert werden sollen und nicht zum Fehlschlagen der Firmware-Aktualisierung führen.
- IFS_MIGRATION_V2 = 'ifs-migration-v2'¶
- MISSING_STATUS = 'missing-status'¶
- SDK_VERSION = 'sdk-version'¶
- UPDATE_FROM_BOOTLOADER = 'update-from-bootloader'¶
- property message: str¶