github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/cli/command/trust.go (about)

     1  package command
     2  
     3  import (
     4  	"github.com/spf13/pflag"
     5  )
     6  
     7  // AddTrustVerificationFlags adds content trust flags to the provided flagset
     8  func AddTrustVerificationFlags(fs *pflag.FlagSet, v *bool, trusted bool) {
     9  	fs.BoolVar(v, "disable-content-trust", !trusted, "Skip image verification")
    10  }
    11  
    12  // AddTrustSigningFlags adds "signing" flags to the provided flagset
    13  func AddTrustSigningFlags(fs *pflag.FlagSet, v *bool, trusted bool) {
    14  	fs.BoolVar(v, "disable-content-trust", !trusted, "Skip image signing")
    15  }