The default values of fields in both ComposerConfig.Koji and ComposerConfig.Worker are well-suited for how they're used. The nil-checks in main.go only checked that the sections exist. This is quite a weak check for validity, because the sections could be empty. If anything is required for composer to function, we could add proper validation in the future. Do the same for the CA fields, which contain file names. Go has lots of precedent for using empty strings to denote "no value" in the standard library. Use it for CA files, too, instead of pointers. |
||
|---|---|---|
| .. | ||
| testdata | ||
| config.go | ||
| config_test.go | ||
| main.go | ||