View Source NervesHubLink.UpdateManager.State (nerves_hub_link v2.3.0)

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

Summary

Types

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