Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/einride/balena-go

The unofficial SDK to make balena powered Go applications.
https://github.com/einride/balena-go

balena balena-api edge-computing go golang iot

Last synced: about 2 months ago
JSON representation

The unofficial SDK to make balena powered Go applications.

Awesome Lists containing this project

README

        

# Balena Go

[![PkgGoDev](https://pkg.go.dev/badge/go.einride.tech/balena)](https://pkg.go.dev/go.einride.tech/balena)





Balena Go is a library for accessing the Balena API

Balena API docs can be found
[here](https://www.balena.io/docs/reference/api/overview/)




## Install

```sh
go get go.einride.tech/balena
```

## Usage

```go
import "go.einride.tech/balena"
```

### Authentication

An
[Authentication Token](https://www.balena.io/docs/reference/api/overview/#authentication)
can be used to authenticate with the API

You can then use your token to create a new client:

```go
package main

import (
"context"
"go.einride.tech/balena"
)

const (
token = "mytoken"
)

func main() {
// We supply a nil http client to make use of http.DefaultClient
client := balena.New(nil, token)
}
```