View Source NervesHubLinkCommon.UpdateManager.State (nerves_hub_link_common v0.4.0)

Structure for the state of the UpdateManager server. Contains types that describe status and different states the UpdateManager can be in

Link to this section Summary

Link to this section Types

@type status() ::
  | {:fwup_error, String.t()}
  | :update_rescheduled
  | {:updating, integer()}
@type t() :: %NervesHubLinkCommon.UpdateManager.State{
  download: nil | GenServer.server(),
  fwup: nil | GenServer.server(),
  fwup_config: NervesHubLinkCommon.FwupConfig.t(),
  status: status(),
  update_info: nil | NervesHubLinkCommon.Message.UpdateInfo.t(),
  update_reschedule_timer: nil | :timer.tref()