Add Close method to the key manager interface.

This commit is contained in:
Mariano Cano 2020-01-14 18:46:01 -08:00
parent e60beeb7fc
commit a3128a26bb

View file

@ -16,6 +16,7 @@ type KeyManager interface {
GetPublicKey(req *apiv1.GetPublicKeyRequest) (*apiv1.GetPublicKeyResponse, error) GetPublicKey(req *apiv1.GetPublicKeyRequest) (*apiv1.GetPublicKeyResponse, error)
CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyResponse, error) CreateKey(req *apiv1.CreateKeyRequest) (*apiv1.CreateKeyResponse, error)
CreateSigner(req *apiv1.CreateSignerRequest) (crypto.Signer, error) CreateSigner(req *apiv1.CreateSignerRequest) (crypto.Signer, error)
Close() error
} }
// New initializes a new KMS from the given type. // New initializes a new KMS from the given type.