nitrokey.nk3.updates¶
- class nitrokey.nk3.updates.UpdatePath¶
Perusteet:
Enum
- classmethod create(variant, current, new)¶
- Parametrit:
- Return type:
- default = 1¶
- nRF_IFS_Migration_v1_3 = 2¶
- class nitrokey.nk3.updates.UpdateUi¶
Perusteet:
ABC
- abstract abort(*msgs)¶
- Parametrit:
msgs (Any)
- Return type:
Exception
- abstract abort_downgrade(current, image)¶
- abstract abort_pynitrokey_version(current, required)¶
- abstract confirm_download(current, new)¶
- abstract confirm_extra_information(extra_info)¶
- Parametrit:
extra_info (List[str])
- Return type:
None
- abstract confirm_pynitrokey_version(current, required)¶
- abstract confirm_update(current, new)¶
- abstract download_progress_bar(desc)¶
- Parametrit:
desc (str)
- Return type:
Iterator[Callable[[int, int], None]]
- abstract error(*msgs)¶
- Parametrit:
msgs (Any)
- Return type:
Exception
- abstract finalization_progress_bar()¶
- Return type:
Iterator[Callable[[int, int], None]]
- abstract pre_bootloader_hint()¶
- Return type:
None
- abstract request_bootloader_confirmation()¶
- Return type:
None
- request_repeated_update()¶
- Return type:
Exception | None
- abstract update_progress_bar()¶
- Return type:
Iterator[Callable[[int, int], None]]
- class nitrokey.nk3.updates.Updater¶
Perusteet:
object
- __init__(ui, await_bootloader, await_device)¶
- Parametrit:
ui (UpdateUi)
await_bootloader (Callable[[], NK3Bootloader])
await_device (Callable[[int | None, Callable[[int, int], None] | None], NK3])
- Return type:
None
- update(device, image, update_version, ignore_pynitrokey_version=False)¶
- Parametrit:
device (TrussedBase)
image (str | None)
update_version (str | None)
ignore_pynitrokey_version (bool)
- Return type:
- nitrokey.nk3.updates.get_extra_information(upath)¶
Palauta laitteen lisätiedot päivityksen jälkeen update-polun perusteella.
- Parametrit:
upath (UpdatePath)
- Return type:
List[str]
- nitrokey.nk3.updates.get_finalization_wait_retries(upath)¶
Palauttaa päivityspolkuun perustuvan päivityksen jälkeisten odotusyritysten lukumäärän laitteelle
- Parametrit:
upath (UpdatePath)
- Return type:
int