Skip to content

Commit bf8804c

Browse files
stefanbergerlumjjb
authored andcommitted
Implemented image encryption/decryption libraries and ctr commands
Signed-off-by: Stefan Berger <[email protected]> Signed-off-by: Brandon Lum <[email protected]>
1 parent 30c3443 commit bf8804c

34 files changed

Lines changed: 5157 additions & 2 deletions

cmd/ctr/commands/commands.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,22 @@ var (
127127
Usage: "memory limit (in bytes) for the container",
128128
},
129129
}
130+
// ImageDecryptionFlags are cli flags needed when decrypting an image
131+
ImageDecryptionFlags = []cli.Flag{
132+
cli.StringFlag{
133+
Name: "gpg-homedir",
134+
Usage: "The GPG homedir to use; by default gpg uses ~/.gnupg",
135+
}, cli.StringFlag{
136+
Name: "gpg-version",
137+
Usage: "The GPG version (\"v1\" or \"v2\"), default will make an educated guess",
138+
}, cli.StringSliceFlag{
139+
Name: "key",
140+
Usage: "A secret key's filename and an optional password separated by colon; this option may be provided multiple times",
141+
}, cli.StringSliceFlag{
142+
Name: "dec-recipient",
143+
Usage: "Recipient of the image; used only for PKCS7 and must be an x509 certificate",
144+
},
145+
}
130146
)
131147

132148
// ObjectWithLabelArgs returns the first arg and a LabelArgs object

0 commit comments

Comments
 (0)