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 ex_balena api v2.ex
Raw

lib/ex_balena/api/v2.ex

defmodule ExBalena.API.V2 do
alias ExBalena.Client
def get(path) when is_binary(path), do: Client.new() |> Tesla.get("/v2" <> path)
def post(path, body) when is_binary(path) and is_map(body), do: Client.new() |> Tesla.post("/v2" <> path, body)
end