Documentation
¶
Overview ¶
Package econut carries the deployment files (udev rule, NUT config, systemd unit, install script) inside the binaries, so `econut install` needs no repository checkout.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Deploy embed.FS
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
econut
command
Command econut reports what econut-guard is doing: is it running, what the battery level is, and how close it is to shutting the machine down.
|
Command econut reports what econut-guard is doing: is it running, what the battery level is, and how close it is to shutting the machine down. |
|
econut-guard
command
Command econut-guard shuts the machine down when the UPS is on battery and the charge is low.
|
Command econut-guard shuts the machine down when the UPS is on battery and the charge is low. |
|
internal
|
|
|
actuator
Package actuator performs the shutdown (Poweroff), or only logs it (LogOnly, for --dry-run).
|
Package actuator performs the shutdown (Poweroff), or only logs it (LogOnly, for --dry-run). |
|
guard
Package guard wires a UPS source, the policy and an actuator into a poll loop.
|
Package guard wires a UPS source, the policy and an actuator into a poll loop. |
|
nut
Package nut is a minimal client for the NUT upsd text protocol.
|
Package nut is a minimal client for the NUT upsd text protocol. |
|
policy
Package policy decides when the rig should shut down.
|
Package policy decides when the rig should shut down. |
|
status
Package status is the snapshot econut-guard publishes for the econut command.
|
Package status is the snapshot econut-guard publishes for the econut command. |
Click to show internal directories.
Click to hide internal directories.