View Source NervesLivebook.GithubRelease (nerves_livebook v0.9.0)

Check for firmware updates from the Github releases of the NervesLivebook repo. See firmware_update.livemd for usage.

Link to this section Summary

Functions

Return the URL for downloading the firmware for a target

Return a list of all release information

Return the latest release information from GitHub

Return the penultimate release information from GitHub

Return the release version as a string

Link to this section Types

Link to this section Functions

Link to this function

firmware_url(release, filename)

View Source
@spec firmware_url(t(), String.t()) :: {:ok, String.t()} | {:error, :not_found}

Return the URL for downloading the firmware for a target

If the target firmware isn't available, it returns an error

@spec get_all(String.t()) :: {:ok, [t()]} | {:error, any()}

Return a list of all release information

@spec get_latest(String.t()) :: {:ok, t()} | {:error, any()}

Return the latest release information from GitHub

Link to this function

get_penultimate(repository)

View Source
@spec get_penultimate(String.t()) :: {:ok, t()} | {:error, any()}

Return the penultimate release information from GitHub

This is useful for going back and forth for delta updates.

@spec req(String.t()) :: {:error, any()} | {:ok, any()}
@spec version(t()) :: String.t() | :error

Return the release version as a string