summaryrefslogtreecommitdiffstats
path: root/modules/structs/user_gpgkey.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/structs/user_gpgkey.go')
-rw-r--r--modules/structs/user_gpgkey.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/structs/user_gpgkey.go b/modules/structs/user_gpgkey.go
index f501a09cb9..a2ebf7df93 100644
--- a/modules/structs/user_gpgkey.go
+++ b/modules/structs/user_gpgkey.go
@@ -20,6 +20,7 @@ type GPGKey struct {
CanEncryptComms bool `json:"can_encrypt_comms"`
CanEncryptStorage bool `json:"can_encrypt_storage"`
CanCertify bool `json:"can_certify"`
+ Verified bool `json:"verified"`
// swagger:strfmt date-time
Created time.Time `json:"created_at,omitempty"`
// swagger:strfmt date-time
@@ -40,4 +41,14 @@ type CreateGPGKeyOption struct {
// required: true
// unique: true
ArmoredKey string `json:"armored_public_key" binding:"Required"`
+ Signature string `json:"armored_signature,omitempty"`
+}
+
+// VerifyGPGKeyOption options verifies user GPG key
+type VerifyGPGKeyOption struct {
+ // An Signature for a GPG key token
+ //
+ // required: true
+ KeyID string `json:"key_id" binding:"Required"`
+ Signature string `json:"armored_signature" binding:"Required"`
}