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

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

Specs

status() ::
  :idle
  | {:fwup_error, String.t()}
  | :update_rescheduled
  | {:updating, integer()}

Specs

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()
}