Documentation
¶
Index ¶
- Constants
- func ProvideEncryptionManager(tracer trace.Tracer, store contracts.DataKeyStorage, ...) (contracts.EncryptionManager, error)
- type EncryptionManager
- func (s *EncryptionManager) Decrypt(ctx context.Context, namespace string, payload []byte) ([]byte, error)
- func (s *EncryptionManager) Encrypt(ctx context.Context, namespace string, payload []byte) ([]byte, error)
- func (s *EncryptionManager) GetDecryptedValue(ctx context.Context, namespace string, sjd map[string][]byte, ...) string
- func (s *EncryptionManager) GetProviders() encryption.ProviderConfig
Constants ¶
View Source
const ( OpEncrypt = "encrypt" OpDecrypt = "decrypt" )
Variables ¶
This section is empty.
Functions ¶
func ProvideEncryptionManager ¶
func ProvideEncryptionManager( tracer trace.Tracer, store contracts.DataKeyStorage, usageStats usagestats.Service, enc cipher.Cipher, providerConfig encryption.ProviderConfig, ) (contracts.EncryptionManager, error)
ProvideEncryptionManager returns an EncryptionManager that uses the OSS KMS providers, along with any additional third-party (e.g. Enterprise) KMS providers
Types ¶
type EncryptionManager ¶
type EncryptionManager struct {
// contains filtered or unexported fields
}
func (*EncryptionManager) GetDecryptedValue ¶
func (*EncryptionManager) GetProviders ¶
func (s *EncryptionManager) GetProviders() encryption.ProviderConfig
Click to show internal directories.
Click to hide internal directories.