akv

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package akv implements backend for Azure Key Vault secrets

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend() backend.Backend

NewBackend returns an uninitialized Backend for AWS Secret Manager

Types

type AzureCredentials

type AzureCredentials struct {
	TenantID     string `json:"tenantId"`
	ClientID     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
	Keyvault     string `json:"keyvault"`
}

AzureCredentials represents expected credentials

type Backend

type Backend struct {
	Client ClientInterface
	// contains filtered or unexported fields
}

Backend represents a backend for Azure Key Vault

func (*Backend) Get

func (a *Backend) Get(key string, version string) (string, error)

Get retrieves the secret associated with key from Azure Key Vault

func (*Backend) Init

func (a *Backend) Init(parameters map[string]interface{}, credentials []byte) error

Init initializes the Backend for Azure Key Vault

type ClientInterface

type ClientInterface interface {
	GetSecret(context context.Context, url string, key string, version string) (keyvault.SecretBundle, error)
}

Jump to

Keyboard shortcuts

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