Documentation
¶
Index ¶
- func DummyCmd()
- func ExecuteForceDiskCmd(deviceNetworkStatus *types.DeviceNetworkStatus, diskDevice string, ...)
- func ExecuteLedCmd(deviceNetworkStatus *types.DeviceNetworkStatus, ledName string, ...)
- func InitDellCmd(ledName string) string
- func InitForceDiskCmd(ledName string) string
- func InitLedCmd(ledName string) string
- func Run(ps *pubsub.PubSub, loggerArg *logrus.Logger, logArg *base.LogObject, ...) int
- type AppStatusDisplayFunc
- type DisplayFunc
- type InitFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteForceDiskCmd ¶
func ExecuteForceDiskCmd(deviceNetworkStatus *types.DeviceNetworkStatus, diskDevice string, blinkCount types.LedBlinkCount)
ExecuteForceDiskCmd does counter number of 200ms blinks and returns It assumes the init function has determined a diskRepeatCount and a disk.
func ExecuteLedCmd ¶
func ExecuteLedCmd(deviceNetworkStatus *types.DeviceNetworkStatus, ledName string, blinkCount types.LedBlinkCount)
ExecuteLedCmd does counter number of 200ms blinks and returns
func InitDellCmd ¶
InitDellCmd prepares "Cloud LED" on Dell IoT gateways by enabling GPIO endpoint
func InitForceDiskCmd ¶
InitForceDiskCmd determines the disk (using the largest disk) and measures the repetition count to get to 200ms dd time.
func InitLedCmd ¶
InitLedCmd can use different LEDs in /sys/class/leds Disable existing trigger Write "none" to /sys/class/leds/<ledName>/trigger If comma-separated list try until one is found. Returns the led which worked.
Types ¶
type AppStatusDisplayFunc ¶
AppStatusDisplayFunc takes an argument to list of leds
type DisplayFunc ¶
type DisplayFunc func(deviceNetworkStatus *types.DeviceNetworkStatus, arg string, blinkCount types.LedBlinkCount)
DisplayFunc takes an argument which can be the name of a LED or display