View Source NervesHubCLI.API.Firmware (nerves_hub_cli v2.0.1)

Manage Firmware on NervesHub

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

Summary

Functions

Delete existing firmware by uuid.

List firmware for a product.

Functions

Link to this function

create(org_name, product_name, tar, ttl \\ nil, auth)

View Source
@spec create(
  String.t(),
  String.t(),
  String.t(),
  non_neg_integer() | nil,
  NervesHubCLI.API.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)

View Source
@spec delete(
  String.t(),
  String.t(),
  String.t(),
  NervesHubCLI.API.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)

View Source
@spec list(String.t(), String.t(), NervesHubCLI.API.Auth.t()) ::
  {:error, any()} | {:ok, any()}

List firmware for a product.

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