Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/einride/balena-go
- Owner: einride
- License: mit
- Created: 2020-12-16T19:05:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-04T08:08:14.000Z (2 months ago)
- Last Synced: 2024-11-06T09:39:30.237Z (2 months ago)
- Topics: balena, balena-api, edge-computing, go, golang, iot
- Language: Go
- Homepage:
- Size: 107 KB
- Stars: 13
- Watchers: 19
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
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 APIYou can then use your token to create a new client:
```go
package mainimport (
"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)
}
```