nitrokey.nk3.updates

class nitrokey.nk3.updates.UpdatePath

Osnove: Enum

classmethod create(variant, current, new)
Parametri:
Vrne tip:

UpdatePath

default = 1
nRF_IFS_Migration_v1_3 = 2
class nitrokey.nk3.updates.UpdateUi

Osnove: ABC

abstract abort(*msgs)
Parametri:

msgs (Any)

Vrne tip:

Exception

abstract abort_downgrade(current, image)
Parametri:
Vrne tip:

Exception

abstract abort_pynitrokey_version(current, required)
Parametri:
Vrne tip:

Exception

abstract confirm_download(current, new)
Parametri:
Vrne tip:

None

abstract confirm_extra_information(extra_info)
Parametri:

extra_info (List[str])

Vrne tip:

None

abstract confirm_pynitrokey_version(current, required)
Parametri:
Vrne tip:

None

abstract confirm_update(current, new)
Parametri:
Vrne tip:

None

abstract confirm_update_same_version(version)
Parametri:

version (Version)

Vrne tip:

None

abstract download_progress_bar(desc)
Parametri:

desc (str)

Vrne tip:

Iterator[Callable[[int, int], None]]

abstract error(*msgs)
Parametri:

msgs (Any)

Vrne tip:

Exception

abstract finalization_progress_bar()
Vrne tip:

Iterator[Callable[[int, int], None]]

abstract pre_bootloader_hint()
Vrne tip:

None

abstract request_bootloader_confirmation()
Vrne tip:

None

request_repeated_update()
Vrne tip:

Exception | None

abstract update_progress_bar()
Vrne tip:

Iterator[Callable[[int, int], None]]

class nitrokey.nk3.updates.Updater

Osnove: object

__init__(ui, await_bootloader, await_device)
Parametri:
  • ui (UpdateUi)

  • await_bootloader (Callable[[], NK3Bootloader])

  • await_device (Callable[[int | None, Callable[[int, int], None] | None], NK3])

Vrne tip:

None

update(device, image, update_version, ignore_pynitrokey_version=False)
Parametri:
  • device (TrussedBase)

  • image (str | None)

  • update_version (str | None)

  • ignore_pynitrokey_version (bool)

Vrne tip:

Version

nitrokey.nk3.updates.get_extra_information(upath)

Vračanje dodatnih informacij za napravo po posodobitvi na podlagi poti posodobitve

Parametri:

upath (UpdatePath)

Vrne tip:

List[str]

nitrokey.nk3.updates.get_finalization_wait_retries(upath)

Vračilo števila ponovitev, ki jih mora naprava opraviti po posodobitvi na podlagi poti posodobitve (update-path)

Parametri:

upath (UpdatePath)

Vrne tip:

int

nitrokey.nk3.updates.get_firmware_update(release)
Parametri:

release (Release)

Vrne tip:

Asset