Skip to content

The unofficial SDK to make balena powered Go applications.

License

Notifications You must be signed in to change notification settings

einride/balena-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Balena Go

PkgGoDev




Balena Go is a library for accessing the Balena API

Balena API docs can be found here



Install

go get go.einride.tech/balena

Usage

import "go.einride.tech/balena"

Authentication

An Authentication Token can be used to authenticate with the API

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

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)
}