feat: Add config file validation (#2011)

This commit is contained in:
Jan-Otto Kröpke
2025-04-24 23:45:21 +02:00
committed by GitHub
parent 554607fee2
commit 769363d157
25 changed files with 107 additions and 66 deletions

View File

@@ -43,9 +43,9 @@ const (
)
type Config struct {
NicExclude *regexp.Regexp `yaml:"nic_exclude"`
NicInclude *regexp.Regexp `yaml:"nic_include"`
CollectorsEnabled []string `yaml:"collectors_enabled"`
NicExclude *regexp.Regexp `yaml:"nic-exclude"`
NicInclude *regexp.Regexp `yaml:"nic-include"`
CollectorsEnabled []string `yaml:"enabled"`
}
//nolint:gochecknoglobals