github.com/kastenhq/syft@v0.0.0-20230821225854-0710af25cdbe/internal/config/linux_kernel.go (about) 1 package config 2 3 import "github.com/spf13/viper" 4 5 type linuxKernel struct { 6 CatalogModules bool `json:"catalog-modules" yaml:"catalog-modules" mapstructure:"catalog-modules"` 7 } 8 9 func (cfg linuxKernel) loadDefaultValues(v *viper.Viper) { 10 v.SetDefault("linux-kernel.catalog-modules", true) 11 }