Documentation ¶
Index ¶
- Constants
- Variables
- func GeneratePlatformDeviceKeyNCert(dict *templates.TemplateVarDictionary, deviceid string, accountid string, ...) (key string, cert string, err error)
- func GetPlatformVars(dict *templates.TemplateVarDictionary, log maestroSpecs.Logger) (err error)
- func WritePlatformDeviceKeyNCert(dict *templates.TemplateVarDictionary, key string, cert string, ...) (err error)
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 ¶
View Source
var PlatformKeyWriter maestroSpecs.PlatformKeyWriter
PlatformKeyWriter is a required export for a platform key writing
View Source
var PlatformReader maestroSpecs.PlatformReader
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.
Click to show internal directories.
Click to hide internal directories.