Documentation
¶
Overview ¶
Package globalconfig loads and validates the user-level dark-factory configuration from ~/.dark-factory/config.yaml.
Index ¶
Constants ¶
const DefaultMaxContainers = 3
DefaultMaxContainers is the system-wide container limit when no config is set.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶ added in v0.111.0
FileExists reports whether the global config file (~/.dark-factory/config.yaml) exists. Callers use this only to distinguish "global file present" from "using built-in defaults" in diagnostic logs. - Config file missing → (false, nil) - Home dir lookup fails → (false, wrapped error) - Any other stat error → (false, wrapped error) - File present (any size) → (true, nil)
Types ¶
type GlobalConfig ¶
type GlobalConfig struct {
MaxContainers int `yaml:"maxContainers"`
}
GlobalConfig holds the user-level dark-factory configuration. It is loaded from ~/.dark-factory/config.yaml once at daemon startup. When the file does not exist or the field is omitted, defaults apply.