mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 15:06:36 +01:00
Signed-off-by: Keith Zantow <kzantow@gmail.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
18 lines
494 B
Go
18 lines
494 B
Go
package options
|
|
|
|
import (
|
|
"github.com/anchore/clio"
|
|
)
|
|
|
|
type Attest struct {
|
|
// IMPORTANT: do not show the attestation key/password in any YAML/JSON output (sensitive information)
|
|
Key secret `yaml:"key" json:"key" mapstructure:"key"`
|
|
Password secret `yaml:"password" json:"password" mapstructure:"password"`
|
|
}
|
|
|
|
var _ clio.FlagAdder = (*Attest)(nil)
|
|
|
|
func (o Attest) AddFlags(flags clio.FlagSet) {
|
|
flags.StringVarP((*string)(&o.Key), "key", "k", "the key to use for the attestation")
|
|
}
|