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