Transit key actions (#2254)

* add supports_* for transit key reads

* update transit docs with new supports_* fields
This commit is contained in:
Matthew Irish
2017-01-11 10:05:06 -06:00
committed by GitHub
parent 5ecfe3c477
commit 231f00dff2
2 changed files with 21 additions and 9 deletions

View File

@@ -154,6 +154,10 @@ func (b *backend) pathPolicyRead(
"deletion_allowed": p.DeletionAllowed,
"min_decryption_version": p.MinDecryptionVersion,
"latest_version": p.LatestVersion,
"supports_encryption": p.Type.EncryptionSupported(),
"supports_decryption": p.Type.DecryptionSupported(),
"supports_signing": p.Type.SigningSupported(),
"supports_derivation": p.Type.DerivationSupported(),
},
}