Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

type TimeoutConfig struct {
	HMCApiRetries      int `mapstructure:"hmc_api_retries"`
	DownloadTimeoutSec int `mapstructure:"download_timeout_sec"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL