secretstore

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FactoryInterface

type FactoryInterface interface {
	NewSecretManager(storeType SecretStoreType) (Interface, error)
}

type Interface

type Interface interface {
	GetSecret(location string, secretName string, secretKey string) (string, error)
	SetSecret(location string, secretName string, secretValue *SecretValue) error
}

type SecretStoreType

type SecretStoreType string

SecretStoreType describes a secrets backend

const (
	// SecretStoreTypeAzure Azure Key Vault as the secret store
	SecretStoreTypeAzure      SecretStoreType = "azureKeyVault"
	SecretStoreTypeGoogle     SecretStoreType = "gcpSecretsManager"
	SecretStoreTypeKubernetes SecretStoreType = "kubernetes"
	SecretStoreTypeVault      SecretStoreType = "vault"
	SecretStoreTypeAws        SecretStoreType = "awsSecretsManager"
)

type SecretValue

type SecretValue struct {
	Value          string
	PropertyValues map[string]string
	Annotations    map[string]string
	Labels         map[string]string

	// SecretType is only really needed when using local secrets so that we
	// can populate the Secret resource with the correct type
	SecretType corev1.SecretType
	Overwrite  bool
}

func (*SecretValue) MergeExistingSecret added in v0.0.3

func (sv *SecretValue) MergeExistingSecret(existing map[string]string) string

func (*SecretValue) ToString

func (sv *SecretValue) ToString() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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