Documentation ¶
Index ¶
- type Config
- type Vault
- func (v *Vault) GetPublicKey(ctx context.Context, keyID string) (vault.StoredKey, error)
- func (v *Vault) Import(ctx context.Context, priv crypt.PrivateKey, opt utils.Options) (vault.StoredKey, error)
- func (v *Vault) ListPublicKeys(ctx context.Context) vault.StoredKeysIterator
- func (v *Vault) Name() string
- func (v *Vault) Ready(ctx context.Context) (bool, error)
- func (v *Vault) SignMessage(ctx context.Context, message []byte, key vault.StoredKey) (crypt.Signature, error)
- func (v *Vault) VaultName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { auth.Config `yaml:",inline"` Vault string `yaml:"vault" validate:"required,url"` SubscriptionID string `yaml:"subscription_id" validate:"omitempty,uuid4"` // Optional ResourceGroup string `yaml:"resource_group"` // Optional }
Config contains Azure KeyVault backend configuration
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault is a Azure KeyVault backend
func (*Vault) GetPublicKey ¶
GetPublicKey returns a public key by given ID
func (*Vault) Import ¶
func (v *Vault) Import(ctx context.Context, priv crypt.PrivateKey, opt utils.Options) (vault.StoredKey, error)
Import imports a private key
func (*Vault) ListPublicKeys ¶
func (v *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.