(confPath string)
| 451 | } |
| 452 | |
| 453 | func loadConfigFile(confPath string) (*configFile, error) { |
| 454 | confBytes, err := os.ReadFile(confPath) |
| 455 | if err != nil { |
| 456 | return nil, fmt.Errorf("could not read config file: %s", err) |
| 457 | } |
| 458 | conf := &configFile{} |
| 459 | conf.Stores = *NewStoresConfig() |
| 460 | err = conf.load(confBytes) |
| 461 | if err != nil { |
| 462 | return nil, fmt.Errorf("error loading config: %s", err) |
| 463 | } |
| 464 | return conf, nil |
| 465 | } |
| 466 | |
| 467 | func configFromRule(rule *creationRule, kmsEncryptionContext map[string]*string) (*Config, error) { |
| 468 | cryptRuleCount := 0 |
no test coverage detected