mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
21 lines
546 B
Go
21 lines
546 B
Go
package config
|
|
|
|
import (
|
|
"github.com/spf13/viper"
|
|
|
|
"github.com/anchore/syft/syft/source"
|
|
)
|
|
|
|
type fileClassification struct {
|
|
Cataloger catalogerOptions `yaml:"cataloger" json:"cataloger" mapstructure:"cataloger"`
|
|
}
|
|
|
|
func (cfg fileClassification) loadDefaultValues(v *viper.Viper) {
|
|
v.SetDefault("file-classification.cataloger.enabled", catalogerEnabledDefault)
|
|
v.SetDefault("file-classification.cataloger.scope", source.SquashedScope)
|
|
}
|
|
|
|
func (cfg *fileClassification) parseConfigValues() error {
|
|
return cfg.Cataloger.parseConfigValues()
|
|
}
|