github.com/metasources/buildx@v0.0.0-20230418141019-7aa1459cedea/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 }