softRelay

package
v2.2.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const SOFTRELAY_CONFIG_PATH = "/config/.softRelaySetup.json"

SOFTRELAY_CONFIG_PATH is a path to where the particular soft relay's instance data is stored

Variables

PlatformKeyWriter is a required export for a platform key writing

PlatformReader is a required export for a platform module

Functions

func GeneratePlatformDeviceKeyNCert

func GeneratePlatformDeviceKeyNCert(dict *templates.TemplateVarDictionary, deviceid string, accountid string, log maestroSpecs.Logger) (key string, cert string, err error)

GeneratePlatformDeviceKeyNCert generates the platforms key and certificate. Takes in the "device id" and "account id" which are two items which must be stored in the certificate

func GetPlatformVars

func GetPlatformVars(dict *templates.TemplateVarDictionary, log maestroSpecs.Logger) (err error)

func WritePlatformDeviceKeyNCert

func WritePlatformDeviceKeyNCert(dict *templates.TemplateVarDictionary, key string, cert string, log maestroSpecs.Logger) (err error)

WritePlatformDeviceKeyNCert writes out the device key and cert to the eeprom

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL