Documentation ¶
Overview ¶
Package relay provides a Go API for controlling the relays that powers nodes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Relay ¶
type Relay struct {
// contains filtered or unexported fields
}
Relay represent a relay controlling a node power
func NewRelayFromEnv ¶
NewRelayFromEnv returns a Relay from TASTEVIN_RELAY env var example env: TASTEVIN_RELAY='{"PowerOnCmd":["sudo","/usr/local/bin/relay-poweron"],"PowerOffCmd":["sudo","/usr/local/bin/relay-poweroff"]}'
Click to show internal directories.
Click to hide internal directories.