Documentation ¶
Overview ¶
Package mock implements a mock driver for testing purposes.
Valid boot devices are "A" and "B".
Index ¶
Constants ¶
View Source
const ( On PowerAction = "on" Off = "off" ForceReboot = "force-reboot" SoftReboot = "soft-reboot" BootDevA = "bootdev-a" BootDevB = "bootdev-b" )
Variables ¶
View Source
var Driver driver.Driver = mockDriver{}
View Source
var ( // A mapping from node addrs (the "addr" field in the obm info) to the last power action // that was preformed on the OBM. LastPowerActions = map[string]PowerAction{} )
Functions ¶
This section is empty.
Types ¶
type PowerAction ¶
type PowerAction string
Click to show internal directories.
Click to hide internal directories.