github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/cmd/syft/cli/options/attest.go (about) 1 package options 2 3 import ( 4 "github.com/anchore/clio" 5 ) 6 7 type Attest struct { 8 // IMPORTANT: do not show the attestation key/password in any YAML/JSON output (sensitive information) 9 Key secret `yaml:"key" json:"key" mapstructure:"key"` 10 Password secret `yaml:"password" json:"password" mapstructure:"password"` 11 } 12 13 var _ clio.FlagAdder = (*Attest)(nil) 14 15 func (o Attest) AddFlags(flags clio.FlagSet) { 16 flags.StringVarP((*string)(&o.Key), "key", "k", "the key to use for the attestation") 17 }