Documentation ¶
Index ¶
- type Config
- type Kmsapi
- type Vault
- func (kv *Vault) GetPublicKey(ctx context.Context, keyID string) (vault.StoredKey, error)
- func (c *Vault) ListPublicKeys(ctx context.Context) vault.StoredKeysIterator
- func (c *Vault) Name() string
- func (c *Vault) Sign(ctx context.Context, digest []byte, key vault.StoredKey) (cryptoutils.Signature, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { UserName string `yaml:"user_name" validate:"required"` AccessKeyID string `yaml:"access_key_id" validate:"required"` AccessKey string `yaml:"secret_access_key" validate:"required"` Region string `yaml:"region" validate:"required"` }
Config contains AWS KMS backend configuration
type Kmsapi ¶
type Kmsapi interface { ListKeys(input *kms.ListKeysInput) (*kms.ListKeysOutput, error) Sign(input *kms.SignInput) (*kms.SignOutput, error) GetPublicKeyWithContext(aws.Context, *kms.GetPublicKeyInput, ...request.Option) (*kms.GetPublicKeyOutput, error) }
type Vault ¶
func (*Vault) GetPublicKey ¶
func (*Vault) ListPublicKeys ¶
func (c *Vault) ListPublicKeys(ctx context.Context) vault.StoredKeysIterator
ListPublicKeys returns a list of keys stored under the backend
Click to show internal directories.
Click to hide internal directories.