github.com/nextlinux/gosbom@v0.81.1-0.20230627115839-1ff50c281391/internal/config/attest.go (about)

     1  package config
     2  
     3  import "github.com/spf13/viper"
     4  
     5  type attest struct {
     6  	// IMPORTANT: do not show the attestation key/password in any YAML/JSON output (sensitive information)
     7  	Key      string `yaml:"-" json:"-" mapstructure:"key"`
     8  	Password string `yaml:"-" json:"-" mapstructure:"password"`
     9  }
    10  
    11  func (cfg attest) loadDefaultValues(v *viper.Viper) {
    12  	v.SetDefault("attest.key", "")
    13  	v.SetDefault("attest.password", "")
    14  }