Documentation ¶
Index ¶
- func GetJobsWithErrorInHandler() uint16
- func GetPendingJobCount() int
- func GetPowerState(switchId string) (bool, error)
- func Init()
- func InitLogger(logger *logrus.Logger)
- func RunNodeCheck() error
- func SetPower(switchId string, powerOn bool) error
- func SetSwitchPowerAll(switchId string, powerOn bool, username string) error
- type JobResult
- type PowerJob
- type PowerRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJobsWithErrorInHandler ¶
func GetJobsWithErrorInHandler() uint16
Returns the number of registered failed jobs of the last running daemon (can also be the current daemon)
func GetPendingJobCount ¶
func GetPendingJobCount() int
Returns the number of currently pending jobs in the queue
func GetPowerState ¶
Returns the power state of a given switch Checks if the switch exists beforehand
func InitLogger ¶
func RunNodeCheck ¶
func RunNodeCheck() error
Runs a health-check on all nodes of the system Used in system-level healthcheck
Types ¶
type PowerJob ¶
type PowerRequest ¶
Click to show internal directories.
Click to hide internal directories.