Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentDaemonConfig ¶
type AgentDaemonConfig struct {
Network NetworkConfig `mapstructure:"network"`
Paths PathConfig `mapstructure:"paths"`
Timeouts TimeoutConfig `mapstructure:"timeouts"`
}
AgentDaemonConfig holds the global agent settings loaded via Viper
func Load ¶
func Load() (*AgentDaemonConfig, error)
Load initializes Viper, sets defaults, and silently loads agent.yaml if present
type NetworkConfig ¶
type NetworkConfig struct {
HTTPPort int `mapstructure:"http_port"`
}
type PathConfig ¶
type PathConfig struct {
WorkspaceDir string `mapstructure:"workspace_dir"`
DNSmasqConfDir string `mapstructure:"dnsmasq_conf_dir"`
HAProxyConfDir string `mapstructure:"haproxy_conf_dir"`
HTTPDDocRoot string `mapstructure:"httpd_doc_root"`
TFTPRoot string `mapstructure:"tftp_root"`
InstallDevice string `mapstructure:"install_device"`
}
type TimeoutConfig ¶
Click to show internal directories.
Click to hide internal directories.