mirror of
https://github.com/anchore/syft
synced 2024-09-20 22:21:56 +00:00
870a676a5d
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
15 lines
365 B
Go
15 lines
365 B
Go
package config
|
|
|
|
import "github.com/spf13/viper"
|
|
|
|
type packages struct {
|
|
Cataloger catalogerOptions `yaml:"cataloger" json:"cataloger" mapstructure:"cataloger"`
|
|
}
|
|
|
|
func (cfg packages) loadDefaultValues(v *viper.Viper) {
|
|
v.SetDefault("package.cataloger.enabled", true)
|
|
}
|
|
|
|
func (cfg *packages) parseConfigValues() error {
|
|
return cfg.Cataloger.parseConfigValues()
|
|
}
|