Documentation ¶
Index ¶
- func BuiltIn() catalog.BuiltIn
- type Config
- type Plugin
- func (p *Plugin) Configure(ctx context.Context, req *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
- func (p *Plugin) GenerateKey(ctx context.Context, req *keymanagerv1.GenerateKeyRequest) (*keymanagerv1.GenerateKeyResponse, error)
- func (p *Plugin) GetPublicKey(_ context.Context, req *keymanagerv1.GetPublicKeyRequest) (*keymanagerv1.GetPublicKeyResponse, error)
- func (p *Plugin) GetPublicKeys(context.Context, *keymanagerv1.GetPublicKeysRequest) (*keymanagerv1.GetPublicKeysResponse, error)
- func (p *Plugin) SetLogger(log hclog.Logger)
- func (p *Plugin) SignData(ctx context.Context, req *keymanagerv1.SignDataRequest) (*keymanagerv1.SignDataResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { KeyIdentifierFile string `hcl:"key_identifier_file" json:"key_identifier_file"` KeyIdentifierValue string `hcl:"key_identifier_value" json:"key_identifier_value"` 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"` }
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 (*Plugin) Configure ¶
func (p *Plugin) Configure(ctx context.Context, req *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
func (*Plugin) GenerateKey ¶
func (p *Plugin) GenerateKey(ctx context.Context, req *keymanagerv1.GenerateKeyRequest) (*keymanagerv1.GenerateKeyResponse, error)
GenerateKey creates a key in Key Vault. If a key already exists in the local storage, it is updated.
func (*Plugin) GetPublicKey ¶
func (p *Plugin) GetPublicKey(_ context.Context, req *keymanagerv1.GetPublicKeyRequest) (*keymanagerv1.GetPublicKeyResponse, error)
GetPublicKey returns the public key for a given key
func (*Plugin) GetPublicKeys ¶
func (p *Plugin) GetPublicKeys(context.Context, *keymanagerv1.GetPublicKeysRequest) (*keymanagerv1.GetPublicKeysResponse, error)
GetPublicKeys return the publicKey for all the keys
func (*Plugin) SignData ¶
func (p *Plugin) SignData(ctx context.Context, req *keymanagerv1.SignDataRequest) (*keymanagerv1.SignDataResponse, error)
SignData creates a digital signature for the data to be signed
Click to show internal directories.
Click to hide internal directories.