Payload received from NervesHub when an update is available.
Summary
Functions
Parse an update message from NervesHub.
Types
@type t() :: %NervesHubLink.Message.UpdateInfo{ checksum: String.t() | nil, firmware_meta: NervesHubLink.Message.FirmwareMetadata.t(), firmware_url: URI.t(), partials_checksums: [String.t()], size: non_neg_integer() | nil }
Functions
Parse an update message from NervesHub.
size, checksum and partials_checksums describe the firmware file itself
rather than the firmware's metadata. checksum is a hex encoded SHA256 of the
whole file, and partials_checksums holds one hex encoded SHA256 per fixed
size part of the file, in order. They are only sent by newer NervesHub
servers, so they may be missing.