2016-09-08 13:11:39 -04:00
|
|
|
package command
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/pflag"
|
|
|
|
)
|
|
|
|
|
2017-01-17 09:46:07 -05:00
|
|
|
// AddTrustVerificationFlags adds content trust flags to the provided flagset
|
2018-03-08 08:35:17 -05:00
|
|
|
func AddTrustVerificationFlags(fs *pflag.FlagSet, v *bool, trusted bool) {
|
|
|
|
fs.BoolVar(v, "disable-content-trust", !trusted, "Skip image verification")
|
2016-09-08 13:11:39 -04:00
|
|
|
}
|
|
|
|
|
2017-01-17 09:46:07 -05:00
|
|
|
// AddTrustSigningFlags adds "signing" flags to the provided flagset
|
2018-03-08 08:35:17 -05:00
|
|
|
func AddTrustSigningFlags(fs *pflag.FlagSet, v *bool, trusted bool) {
|
|
|
|
fs.BoolVar(v, "disable-content-trust", !trusted, "Skip image signing")
|
2016-09-08 13:11:39 -04:00
|
|
|
}
|