mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
12 lines
329 B
Go
12 lines
329 B
Go
package config
|
|
|
|
import "github.com/spf13/viper"
|
|
|
|
type ExternalSources struct {
|
|
ExternalSourcesEnabled bool `yaml:"external-sources-enabled" json:"external-sources-enabled" mapstructure:"external-sources-enabled"`
|
|
}
|
|
|
|
func (e ExternalSources) loadDefaultValues(v *viper.Viper) {
|
|
v.SetDefault("external-sources-enabled", false)
|
|
}
|