github.com/kastenhq/syft@v0.0.0-20230821225854-0710af25cdbe/internal/config/file_classification.go (about) 1 package config 2 3 import ( 4 "github.com/spf13/viper" 5 6 "github.com/kastenhq/syft/syft/source" 7 ) 8 9 type fileClassification struct { 10 Cataloger catalogerOptions `yaml:"cataloger" json:"cataloger" mapstructure:"cataloger"` 11 } 12 13 func (cfg fileClassification) loadDefaultValues(v *viper.Viper) { 14 v.SetDefault("file-classification.cataloger.enabled", catalogerEnabledDefault) 15 v.SetDefault("file-classification.cataloger.scope", source.SquashedScope) 16 } 17 18 func (cfg *fileClassification) parseConfigValues() error { 19 return cfg.Cataloger.parseConfigValues() 20 }