Add new alias in the kms package.

This commit is contained in:
Mariano Cano 2021-10-06 18:42:01 -07:00
parent 505b1f3678
commit 08c9902f29

View file

@ -18,6 +18,9 @@ type KeyManager = apiv1.KeyManager
// store x509.Certificates. // store x509.Certificates.
type CertificateManager = apiv1.CertificateManager type CertificateManager = apiv1.CertificateManager
// Options are the KMS options. They represent the kms object in the ca.json.
type Options = apiv1.Options
// New initializes a new KMS from the given type. // New initializes a new KMS from the given type.
func New(ctx context.Context, opts apiv1.Options) (KeyManager, error) { func New(ctx context.Context, opts apiv1.Options) (KeyManager, error) {
if err := opts.Validate(); err != nil { if err := opts.Validate(); err != nil {