Merge pull request #286 from smallstep/ksm-imports

Move load of kms to main package.
This commit is contained in:
Mariano Cano 2020-06-14 14:44:37 -07:00 committed by GitHub
commit 88add85e42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 6 deletions

View File

@ -23,6 +23,14 @@ import (
"github.com/smallstep/cli/config"
"github.com/smallstep/cli/usage"
"github.com/urfave/cli"
// Enabled kms interfaces.
_ "github.com/smallstep/certificates/kms/awskms"
_ "github.com/smallstep/certificates/kms/cloudkms"
_ "github.com/smallstep/certificates/kms/softkms"
// Experimental kms interfaces.
_ "github.com/smallstep/certificates/kms/yubikey"
)
// commit and buildTime are filled in during build by the Makefile

View File

@ -22,6 +22,9 @@ import (
"github.com/smallstep/cli/crypto/pemutil"
"github.com/smallstep/cli/ui"
"github.com/smallstep/cli/utils"
// Enable yubikey.
_ "github.com/smallstep/certificates/kms/yubikey"
)
type Config struct {

View File

@ -7,13 +7,8 @@ import (
"github.com/pkg/errors"
"github.com/smallstep/certificates/kms/apiv1"
// Enabled kms interfaces.
_ "github.com/smallstep/certificates/kms/awskms"
_ "github.com/smallstep/certificates/kms/cloudkms"
// Enable default implementation
_ "github.com/smallstep/certificates/kms/softkms"
// Experimental kms interfaces.
_ "github.com/smallstep/certificates/kms/yubikey"
)
// KeyManager is the interface implemented by all the KMS.