Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Simulation bool `yaml:"simulation"` DiskPowerStatus map[string]DiskPowerStatus `yaml:"disk_power_status"` Sensors map[string]Task `yaml:"sensors"` DiskPools map[string][]string `yaml:"disk_pools"` Disks map[string]Disk `yaml:"disks"` Templates map[string]Template `yaml:"templates"` Tasks map[string]Task `yaml:"tasks"` Schedule map[string]Schedule `yaml:"schedule"` FanControl FanControl `yaml:"fan_control"` }
Config from the file
func LoadFileConfig ¶
LoadFileConfig loads the configuration from the file
type Disk ¶
type Disk struct { Device string `yaml:"device"` TemperatureSensor string `yaml:"temperature_sensor"` MonitorTemperature string `yaml:"monitor_temperature"` LastActive string `yaml:"last_active"` StandbyAfter string `yaml:"standby_after"` PowerStatus string `yaml:"power_status"` }
Disk configuration
type DiskPowerStatus ¶
type FanControl ¶
type Sensor ¶
type Sensor struct { Average string `yaml:"average"` RunEvery string `yaml:"run_every"` Rules []SensorRule `yaml:"rules"` }
type SensorRule ¶
Click to show internal directories.
Click to hide internal directories.