nerves_hub_user_api v0.4.0 NervesHubUserAPI.Firmware

Manage Firmware on NervesHub

Path: /orgs/:org_name/products/:product_name/firmwares

Link to this section Summary

Functions

Delete existing firmware by uuid

List firmware for a product

Link to this section Functions

Link to this function create(org_name, product_name, tar, ttl \\ nil, auth)
create(
  atom() | binary(),
  atom() | binary(),
  atom() | binary(),
  non_neg_integer() | nil,
  NervesHubUserAPI.Auth.t()
) :: {:error, any()} | {:ok, any()}

Add signed firmware NervesHub.

Verb: POST Path: /orgs/:org_name/products/:product_name/firmwares

Link to this function delete(org_name, product_name, uuid, auth)
delete(
  atom() | binary(),
  atom() | binary(),
  binary(),
  NervesHubUserAPI.Auth.t()
) :: {:error, any()} | {:ok, any()}

Delete existing firmware by uuid.

Verb: DELETE Path: /orgs/:org_name/products/:product_name/firmwares/:uuid

Link to this function list(org_name, product_name, auth)
list(atom() | binary(), atom() | binary(), NervesHubUserAPI.Auth.t()) ::
  {:error, any()} | {:ok, any()}

List firmware for a product.

Verb: GET Path: /orgs/:org_name/products/:product_name/firmwares