config

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 7 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

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