Пример #1
0
func flImport(fl *flag.FlagSet) {
	fetch.AllowHTTPFlag(fl)
	SaveIDFlag(fl)
	fl.Var(&flImportName, "name", "Name of imported image (for signature check)")
	fl.StringVar(&flImportSignature, "sig", "", "Location of signature")
}
Пример #2
0
func flTrust(fl *flag.FlagSet) {
	fl.Var(&trustPrefix, "prefix", "Force image name prefix")
	fl.BoolVar(&trustRoot, "root", false, "Root key (matches all images)")
	fl.StringVar(&trustFingerprint, "fingerprint", "", "Specify key fingerprint to accept")
	fetch.AllowHTTPFlag(fl)
}
Пример #3
0
func flFetch(fl *flag.FlagSet) {
	fetch.AllowHTTPFlag(fl)
	SaveIDFlag(fl)
}