Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFromSecret ¶
func InitFromSecret(clientset kubernetes.Interface, namespace string) error
InitFromSecret reads the encryption key from kubernetes and adds it to the list of decryptionCiphers, and sets this key to be used for encryption.
func InitFromString ¶
InitFromString parses the encryption key from the provided string and adds it to the list of decryptionCiphers
func NewAESCipher ¶
func NewAESCipher() error
NewAESCipher creates a new AES cipher to be used for encryption and decryption. If one already exists, it is used instead.
Types ¶
type NoDecryptionKeysErr ¶
type NoDecryptionKeysErr struct{}
func (NoDecryptionKeysErr) Error ¶
func (e NoDecryptionKeysErr) Error() string
Click to show internal directories.
Click to hide internal directories.