Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptionBuilder ¶
type EncryptionBuilder interface { WithClient(client EncryptionClient) EncryptionBuilder Build() error }
EncryptionBuilder is user API to obtain correctly configured encryption.
type EncryptionClient ¶
type EncryptionClient interface { // SetEncryptionService should be used only by EncryptionServiceBuilder SetEncryptionService(encryption EncryptionService) error // EnableEncryption should encrypt all service data EnableEncryption() error // MigrateEncryption should decrypt all existing data and encrypt it with new encryption service MigrateEncryption(newEncryption EncryptionService) error }
type EncryptionService ¶
type EncryptionServiceBuilder ¶
type EncryptionServiceBuilder interface { WithClients(clients []EncryptionClient) EncryptionServiceBuilder Build() (EncryptionService, error) }
Click to show internal directories.
Click to hide internal directories.