common

package
v2.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmpty

func IsEmpty(name string) (bool, error)

Types

type IdentityJSONFile

type IdentityJSONFile struct {
	SerialNumber string `json:"serialNumber" dict:"SERIAL_NUMBER"`
	OU           string `json:"OU" dict:"OU"`
	DeviceID     string `json:"DeviceID" dict:"DEVICE_ID"`
	// HardwareVersion is a string identitying the type of hardware and version of hardware
	HardwareVersion string `json:"hardwareVersion" dict:"HARDWARE_VERSION"`
	EdgePlatform    string `dict:"EDGE_PLATFORM"`
	RadioConfig     string `json:"radioConfig" dict:"RADIO_CONFIG"`
	LEDConfig       string `json:"ledConfig" dict:"LED_CONFIG"`
	LEDProfile      string `json:"ledConfig" dict:"LED_COLOR_PROFILE"`
	ConfigCategory  string `json:"category" dict:"CONFIG_CATEGORY"`
	EthernetMAC     []byte `json:"ethernetMAC"`
	SixMAC          []byte `json:"sixBMAC"`
	// hash []string  // ??
	GatewayServicesAddress  string `json:"gatewayServicesAddress" dict:"GW_SERVICES_URL"`
	GatewayServicesResource string `dict:"GW_SERVICES_RESRC"`
	APIServerAddress        string `json:"apiServerAddress" dict:"API_SERVICES_URL"`
	MccConfig               string `json:"mcc_config" dict:"MCC_CONFIG"`
}

IdentityJSONFile is a structure which holds data which is read from identity.json - a file generated by the Pelion Edge Gateway provisioning tools.

func ReadIdentityFile

func ReadIdentityFile(path string, dict *templates.TemplateVarDictionary, log maestroSpecs.Logger) (identityData *IdentityJSONFile, err error)

Jump to

Keyboard shortcuts

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