load_configΒΆ

Defined in dccd.daemon.config

load_config(path)[source]

Load and validate a YAML daemon configuration file.

Parameters:
pathstr or pathlib.Path

Path to the YAML configuration file.

Returns:
CollectorConfig

Validated configuration object.

Raises:
FileNotFoundError

If path does not exist.

yaml.YAMLError

If the file contains invalid YAML.

pydantic.ValidationError

If the configuration fails validation.