github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/storage/driver/postsql/ext.go (about) 1 package postsql 2 3 import "github.com/kyma-project/kyma-environment-broker/internal" 4 5 type Cipher interface { 6 Encrypt(text []byte) ([]byte, error) 7 Decrypt(text []byte) ([]byte, error) 8 9 // methods used to encrypt/decrypt SM credentials 10 EncryptSMCreds(pp *internal.ProvisioningParameters) error 11 DecryptSMCreds(pp *internal.ProvisioningParameters) error 12 13 // methods used to encrypt/decrypt kubeconfig 14 EncryptKubeconfig(pp *internal.ProvisioningParameters) error 15 DecryptKubeconfig(pp *internal.ProvisioningParameters) error 16 }