Documentation ¶
Index ¶
- type Config
- type Vault
- func (c *Vault) GetPublicKey(ctx context.Context, keyID string) (vault.StoredKey, error)
- func (c *Vault) Import(ctx context.Context, pk crypt.PrivateKey, opt utils.Options) (vault.StoredKey, error)
- func (c *Vault) ListPublicKeys(ctx context.Context) vault.StoredKeysIterator
- func (c *Vault) Name() string
- func (c *Vault) SignMessage(ctx context.Context, message []byte, key vault.StoredKey) (crypt.Signature, error)
- func (c *Vault) VaultName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ApplicationCredentialsData string `yaml:"application_credentials_data"` ApplicationCredentials string `yaml:"application_credentials"` Project string `yaml:"project" validate:"required"` Location string `yaml:"location" validate:"required"` KeyRing string `yaml:"key_ring" validate:"required"` }
Config contains Google Cloud KMS backend configuration
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault is a Google Cloud KMS backend
func (*Vault) GetPublicKey ¶
GetPublicKey returns a public key by given ID
func (*Vault) Import ¶
func (c *Vault) Import(ctx context.Context, pk crypt.PrivateKey, opt utils.Options) (vault.StoredKey, error)
Import imports a private key
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.