Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfFilePath ¶
ConfFilePath returns the full path to the config file (~/.loadbarsrc).
func GetClusterHosts ¶
GetClusterHosts resolves a cluster name from /etc/clusters into a list of hosts.
func GetClusterHostsFromFile ¶
GetClusterHostsFromFile resolves a cluster from a clusters file (for testing or custom path). Supports recursive cluster references with cycle detection.
Types ¶
type Config ¶
type Config struct {
Hosts []string // Each entry is "host" or "host:user"
Title string
BarWidth int
CPUAverage int
Extended bool
HasAgent bool
Height int
MaxWidth int
NetAverage int
NetLink string
ShowAvgLine bool
ShowIOAvgLine bool
ShowCores bool
ShowMem bool
ShowNet bool
ShowSeparators bool
MaxBarsPerRow int
SSHOpts string
Cluster string
}
Config holds all loadbars configuration (file + CLI). Defaults match the Perl Shared.pm %C.
Click to show internal directories.
Click to hide internal directories.