secretstore

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 4

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 Type) (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 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

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

func (*SecretValue) ToString

func (sv *SecretValue) ToString() string

type Type added in v0.2.1

type Type string

SecretStoreType describes a secrets backend

const (
	// SecretStoreTypeAzure Azure Key Vault as the secret store
	SecretStoreTypeAzure      Type = "azureKeyVault"
	SecretStoreTypeGoogle     Type = "gcpSecretsManager"
	SecretStoreTypeKubernetes Type = "kubernetes"
	SecretStoreTypeVault      Type = "vault"
	SecretStoreTypeAwsASM     Type = "secretsManager"
	SecretStoreTypeAwsSSM     Type = "systemManager"
)

Jump to

Keyboard shortcuts

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