Documentation
¶
Index ¶
- Constants
- func AES_CTR_Decrypt(encryptedData []byte, aesKey string) ([]byte, error)
- func AES_CTR_Encrypt(plainText []byte, aesKey string) ([]byte, error)
- func CompareInt32(name string, old, new int32, reqLogger logr.Logger) bool
- func CompareIntPoint(name string, old, new *int, reqLogger logr.Logger) bool
- func CompareStringValue(name string, old, new string, reqLogger logr.Logger) bool
- func Round(num float64) int
- func SliceJoin(a []Stringer, sep string) string
- type Decryptor
- type SecretDecryptor
- type Stringer
Constants ¶
View Source
const ( AESSecretNameENVKey = "AES_SECRET_NAME" AESSecretNamespaceENVKey = "NAMESPACE" )
Variables ¶
This section is empty.
Functions ¶
func AES_CTR_Decrypt ¶
AES_CTR_Decrypt decrypts base64 encoded string and returns plaintext (for backward compatibility)
func AES_CTR_Encrypt ¶
AES_CTR_Encrypt encrypts plaintext and returns base64 encoded string (for backward compatibility)
func CompareStringValue ¶
Types ¶
type Decryptor ¶ added in v1.1.0
type SecretDecryptor ¶ added in v1.1.0
type SecretDecryptor struct {
// contains filtered or unexported fields
}
func (*SecretDecryptor) ValidateAesSecret ¶ added in v1.1.0
func (d *SecretDecryptor) ValidateAesSecret(ctx context.Context) (string, error)
Click to show internal directories.
Click to hide internal directories.