Documentation
¶
Index ¶
- type EncrypterDecrypter
- func NewAwsKMSCrypto(ctx context.Context, keyID, region string) (EncrypterDecrypter, error)
- func NewCloudKMSCrypto(ctx context.Context, keyName string) (EncrypterDecrypter, error)
- func NewHashicorpvaultCrypto(ctx context.Context, keyName string, vaulthost string, vaulttoken string) (EncrypterDecrypter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncrypterDecrypter ¶
type EncrypterDecrypter interface { Encrypt(ctx context.Context, data []byte) ([]byte, error) Decrypt(ctx context.Context, data []byte) ([]byte, error) }
func NewAwsKMSCrypto ¶ added in v0.2.0
func NewAwsKMSCrypto( ctx context.Context, keyID, region string, ) (EncrypterDecrypter, error)
func NewCloudKMSCrypto ¶
func NewCloudKMSCrypto( ctx context.Context, keyName string, ) (EncrypterDecrypter, error)
func NewHashicorpvaultCrypto ¶ added in v0.4.1
Click to show internal directories.
Click to hide internal directories.