Packages

A utility for interfacing with the Balena Supervisor API's, either remotely, or from within a container host.

Current section

Files

Jump to
ex_balena lib balena.ex
Raw

lib/balena.ex

defmodule Balena do
@moduledoc """
"""
@typedoc """
For containers that include the `io.balena.features.supervisor-api` label, the Balena Supervisor
exposes an API that services running on the device can interface with. See documentation for
[Supervisor API](https://www.balena.io/docs/reference/supervisor/supervisor-api/).
"""
@type supervisor_address :: String.t()
defmodule API do
@moduledoc false
@type endpoint :: String.t()
# @type body :: map()
@type body :: Tesla.Env.body()
end
# def application_state() do
# Balena.API.V1.get("")
# end
# def application_state(:remote) do
# Client.new() |> Tesla.post()
# end
end