Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEVICE_API = "https://api.foundries.io/ota/devices/" OAUTH_API = "https://app.foundries.io/oauth" )
View Source
const ( LMP_OS_STR = "/etc/os-release" OS_FACTORY_TAG = "LMP_FACTORY_TAG" OS_FACTORY = "LMP_FACTORY" GIT_COMMIT = "unknown" // Environment Variables ENV_DEVICE_FACTORY = "DEVICE_FACTORY" ENV_PRODUCTION = "PRODUCTION" ENV_OAUTH_BASE = "OAUTH_BASE" ENV_DEVICE_API = "DEVICE_API" // Files AKLITE_LOCK = "/var/lock/aklite.lock" SOTA_DIR = "/var/sota" SOTA_PEM = "/client.pem" SOTA_SQL = "/sql.db" SOTA_CLIENT = "aktualizr-lite" )
View Source
const HARDWARE_ID = "amd64-linux"
Variables ¶
This section is empty.
Functions ¶
func RegisterDevice ¶
func RegisterDevice(opt *RegisterOptions, cb OauthCallback) error
Types ¶
type HttpHeaders ¶
type OauthCallback ¶
Click to show internal directories.
Click to hide internal directories.