NervesHubLinkCommon.FwupConfig (nerves_hub_link_common v0.1.0) View Source
Config structure responsible for handling callbacks from FWUP, applying a fwupdate, and storing fwup task configuration
Link to this section Summary
Types
handle_fwup_message
will be called with this data
Callback that will be called during the lifecycle of a fwupdate being applied
Called when an update has been dispatched via NervesHubLinkCommon.UpdateManager.apply_update/2
Functions
Raises an ArgumentError on invalid arguments
Link to this section Types
Specs
fwup_message() :: {:progress, non_neg_integer()} | {:warning, non_neg_integer(), String.t()} | {:error, non_neg_integer(), String.t()} | {:ok, non_neg_integer(), String.t()}
handle_fwup_message
will be called with this data
Specs
handle_fwup_message_fun() :: (fwup_message() -> any())
Callback that will be called during the lifecycle of a fwupdate being applied
Specs
t() :: %NervesHubLinkCommon.FwupConfig{ fwup_devpath: Path.t(), fwup_public_keys: [String.t()], handle_fwup_message: handle_fwup_message_fun(), update_available: update_available_fun() }
Specs
Called when an update has been dispatched via NervesHubLinkCommon.UpdateManager.apply_update/2
Link to this section Functions
Raises an ArgumentError on invalid arguments