secrets

package
v0.0.0-...-34c01a9 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKubernetesSecretName = "argocd/manifesto-gpg"
)

Variables

This section is empty.

Functions

func DecryptKeys

func DecryptKeys(keys openpgp.EntityList, passphrase []byte)

func DecryptSecret

func DecryptSecret(keys openpgp.EntityList, secret io.Reader) (string, error)

func DecryptSecretFile

func DecryptSecretFile(ctx context.Context, kubeClient *kubernetes.Clientset, kubernetesSecret string, filePath string) (string, error)

func EncryptSecret

func EncryptSecret(keys openpgp.EntityList, secret string) ([]byte, error)

func FromSecret

func FromSecret(secret *corev1.Secret) (openpgp.EntityList, error)

func FromString

func FromString(privKey []byte, passphrase []byte) (openpgp.EntityList, error)

func GetKubeSecret

func GetKubeSecret(ctx context.Context, kube *kubernetes.Clientset, secretPath string) (*corev1.Secret, error)

func GetSecretPath

func GetSecretPath(secretPath string) (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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