decryptors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalJSONorYAML

func UnmarshalJSONorYAML(data []byte) (map[string]interface{}, error)

Types

type Decryptor

type Decryptor interface {
	// Checks if given content is encrypted by the decryptor interface
	IsEncrypted(data []byte) (bool, error)
	// Reads the given content, based on the decrypter config attempts to decrypt
	Decrypt(data []byte) (content map[string]interface{}, err error)
	// Read Private Keys from kubernetes secret
	KeysFromSecret(secretName string, namespace string, client *kubernetes.Clientset, ctx context.Context) (err error)
}

type DecryptorConfig

type DecryptorConfig struct {
	// Decryption is skipped, but decryption metadata is removed
	SkipDecrypt bool
}

type MissingKubernetesSecret

type MissingKubernetesSecret struct {
	Secret    string
	Namespace string
}

func (*MissingKubernetesSecret) Error

func (e *MissingKubernetesSecret) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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