azurevault

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretProvider

type SecretProvider struct {
	// contains filtered or unexported fields
}

SecretProvider provides functions to interact with azure-vault client Implements SecretProviderInterface

func NewSecretProvider

func NewSecretProvider(azureClientID string, azureClientSecret string, vaultURL string) *SecretProvider

NewSecretProvider .

func (*SecretProvider) GetCertificate

func (sp *SecretProvider) GetCertificate(certName string) (string, error)

GetCertificate .

func (*SecretProvider) GetKey

func (sp *SecretProvider) GetKey(keyName string) (string, error)

GetKey .

func (*SecretProvider) GetSecret

func (sp *SecretProvider) GetSecret(secretName string) (string, error)

GetSecret parses the object returned by azure-vault client and returns its value converted to string

type SecretProviderInterface

type SecretProviderInterface interface {
	GetSecret(secretName string) (string, error)
	GetCertificate(certName string) (string, error)
	GetKey(keyName string) (string, error)
}

SecretProviderInterface exposes functions to interact with azure-vault client

Jump to

Keyboard shortcuts

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