mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 00:43:20 +01:00
1465 attestation with private key (#1502) Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
14 lines
333 B
Go
14 lines
333 B
Go
package config
|
|
|
|
import "github.com/spf13/viper"
|
|
|
|
type attest struct {
|
|
Key string `yaml:"key" json:"key" mapstructure:"key"`
|
|
Password string `yaml:"password" json:"password" mapstructure:"password"`
|
|
}
|
|
|
|
func (cfg attest) loadDefaultValues(v *viper.Viper) {
|
|
v.SetDefault("attest.key", "")
|
|
v.SetDefault("attest.password", "")
|
|
}
|