azurekeyvault

package
v1.8.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltIn

func BuiltIn() catalog.BuiltIn

Types

type Config

type Config struct {
	KeyMetadataFile string `hcl:"key_metadata_file" json:"key_metadata_file"`
	KeyVaultURI     string `hcl:"key_vault_uri" json:"key_vault_uri"`
	TenantID        string `hcl:"tenant_id" json:"tenant_id"`
	SubscriptionID  string `hcl:"subscription_id" json:"subscription_id"`
	AppID           string `hcl:"app_id" json:"app_id"`
	AppSecret       string `hcl:"app_secret" json:"app_secret"`

	// Deprecated: use_msi is deprecated and will be removed in a future release.
	// Will be used implicitly if other mechanisms to authenticate fail.
	UseMSI bool `hcl:"use_msi" json:"use_msi"`
}

Config provides configuration context for the plugin.

type Plugin

type Plugin struct {
	keymanagerv1.UnsafeKeyManagerServer
	configv1.UnsafeConfigServer
	// contains filtered or unexported fields
}

Plugin is the main representation of this keymanager plugin

func New

func New() *Plugin

New returns an instantiated plugin.

func (*Plugin) Configure

func (*Plugin) GenerateKey

GenerateKey creates a key in Key Vault. If a key already exists in the local storage, it is updated.

func (*Plugin) GetPublicKey

GetPublicKey returns the public key for a given key

func (*Plugin) GetPublicKeys

GetPublicKeys return the publicKey for all the keys

func (*Plugin) SetLogger

func (p *Plugin) SetLogger(log hclog.Logger)

SetLogger sets a logger

func (*Plugin) SignData

SignData creates a digital signature for the data to be signed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL