providers

package
v0.0.2-0...-b1fb284 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AzureVaultUrl

func AzureVaultUrl(vaultName string) string

func Base64Decode

func Base64Decode(src []byte) ([]byte, error)

Types

type AwsSMProvider

type AwsSMProvider struct {
	Client secretsmanageriface.SecretsManagerAPI
}

func (*AwsSMProvider) GetKVSecrets

func (p *AwsSMProvider) GetKVSecrets(name string) (map[string]string, error)

func (*AwsSMProvider) GetSecret

func (p *AwsSMProvider) GetSecret(name string) (string, error)

type AzureVaultProvider

type AzureVaultProvider struct {
	Client keyvaultapi.BaseClientAPI
	// contains filtered or unexported fields
}

func (*AzureVaultProvider) GetKVSecrets

func (p *AzureVaultProvider) GetKVSecrets(name string) (map[string]string, error)

func (*AzureVaultProvider) GetSecret

func (p *AzureVaultProvider) GetSecret(name string) (string, error)

type EnvProvider

type EnvProvider struct {
}

func (*EnvProvider) GetKVSecrets

func (p *EnvProvider) GetKVSecrets(name string) (map[string]string, error)

func (*EnvProvider) GetSecret

func (p *EnvProvider) GetSecret(name string) (string, error)

type HashicorpVaultProvider

type HashicorpVaultProvider struct {
	Client VaultReader
}

func (*HashicorpVaultProvider) GetKVSecrets

func (p *HashicorpVaultProvider) GetKVSecrets(path string) (map[string]string, error)

func (*HashicorpVaultProvider) GetSecret

func (p *HashicorpVaultProvider) GetSecret(name string) (string, error)

type K8SSecretProvider

type K8SSecretProvider struct {
	Client v1.SecretInterface
}

func (*K8SSecretProvider) GetKVSecrets

func (p *K8SSecretProvider) GetKVSecrets(path string) (map[string]string, error)

func (*K8SSecretProvider) GetSecret

func (p *K8SSecretProvider) GetSecret(name string) (string, error)

type SecretsProvider

type SecretsProvider interface {
	GetSecret(name string) (string, error)
	GetKVSecrets(path string) (map[string]string, error)
}

func NewAwsSMProvider

func NewAwsSMProvider() (SecretsProvider, error)

func NewAzureVaultProvider

func NewAzureVaultProvider(vaultName string) (SecretsProvider, error)

func NewEnvProvider

func NewEnvProvider() SecretsProvider

func NewHashicorpVaultProvider

func NewHashicorpVaultProvider() (SecretsProvider, error)

func NewK8SSecretProvider

func NewK8SSecretProvider(namespace string) (SecretsProvider, error)

type VaultReader

type VaultReader interface {
	Read(string) (*api.Secret, error)
}

Jump to

Keyboard shortcuts

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