Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadOptional ¶ added in v0.4.2
func LoadOptional() (*configurations.WazuhCtlConfig, error)
LoadOptional loads config from the default locations if present. If no config file is found, it returns (nil, nil). If a file exists but parsing fails, it returns (nil, err). Use this when config is optional (e.g. localenv docker) and callers can fall back to defaults.
func New ¶
func New() (*configurations.WazuhCtlConfig, error)
New loads and returns a WazuhCtlConfig from one of the default config locations. It returns an error if no valid config file is found or if parsing fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.