plugin

package
v0.0.0-...-7c13cb9 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: BlueOak-1.0.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VAULT_URL = "https://%v.vault.azure.net"
)

Variables

This section is empty.

Functions

func New

func New(debug bool) secret.Plugin

New returns a new secret plugin.

Types

type AzureKeyVault

type AzureKeyVault struct {
	Authorizer *autorest.Authorizer
	BaseClient *keyvault.BaseClient
}

func NewAzureKeyVault

func NewAzureKeyVault(debug bool) (*AzureKeyVault, error)

func (*AzureKeyVault) GetSecret

func (akv *AzureKeyVault) GetSecret(vaultName, secretName string) (*Secret, error)

func (*AzureKeyVault) ListSecrets

func (akv *AzureKeyVault) ListSecrets(vaultName string) ([]*Secret, error)

type Secret

type Secret struct {
	Key       string
	Value     string
	VaultName string
	Tags      map[string]*string
}

Jump to

Keyboard shortcuts

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