Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidCipherText = fmt.Errorf("invalid cipher text")
ErrInvalidCipherText encryption cipher text is not valid.
View Source
var ErrInvalidKey = fmt.Errorf("invalid encryption key")
ErrInvalidKey encryption key is not valid.
View Source
var ErrKeyAlreadyUsed = fmt.Errorf("encryption key already used")
ErrKeyAlreadyUsed encryption key has already been set for subjectID.
View Source
var ErrKeyExistsForSubjectID = fmt.Errorf("key already exists for subjectID")
ErrKeyExistsForSubjectID encryption key has already been set for subjectID.
View Source
var ErrKeyNotFound = fmt.Errorf("key not found")
ErrKeyNotFound encryption key was not found error.
View Source
var ErrKeyWasDeleted = fmt.Errorf("removed from GDPR request")
ErrKeyWasDeleted encryption key was removed error.
Functions ¶
This section is empty.
Types ¶
type Encryptor ¶
type Encryptor interface { Encrypt(key, plainText string) (string, error) Decrypt(key, cipherText string) (string, error) }
Encryptor defines how to encrypt/decrypt string data using base64.
type EventEncryptor ¶
type EventEncryptor interface { Encrypt(event rangedb.Event) error Decrypt(event rangedb.Event) error }
EventEncryptor defines how to encrypt/decrypt a rangedb.Event
Directories ¶
Path | Synopsis |
---|---|
Code generated by go generate; DO NOT EDIT.
|
Code generated by go generate; DO NOT EDIT. |
provider
|
|
Click to show internal directories.
Click to hide internal directories.