package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev
# Functions
ParseStringEncryptedType parse string value to EncryptedType value.
TokenTypeToEncryptedDataType converts value to appropriate EncryptedType.
ValidateEncryptedType return true if value is supported EncryptedType.
ValidateOnFail returns error if `response_on_fail` value is not supported.
# Constants
ResponseOnFailCiphertext indicates that raw ciphertext value should be returned as is.
ResponseOnFailDefault indicates that default value should be returned instead of failed one.
ResponseOnFailEmpty occurs as a default value of fresh settings Should be treated in the same way as ResponseOnFail_Ciphertext TODO: maybe then hide this conversion under the call of `GetResponseOnFail`.
ResponseOnFailError indicates that db-specific error should be returned to a client.
# Variables
Enum value maps for EncryptedType.
Enum value maps for EncryptedType.
Validation errors.
Validation errors.
Validation errors.
Validation errors.
Validation errors.
MySQLDataTypeIDEncryptedType used for mapping MySQL Types OIDs with DataType.
MySQLEncryptedTypeDataTypeIDs used for mapping EncryptedType with MySQL Types.
PostgreSQLDataTypeIDEncryptedType used for mapping PostgreSQL OIDs with DataType.
PostgreSQLEncryptedTypeDataTypeIDs used for mapping EncryptedType with PostgreSQL OIDs.
# Structs
EncryptedValue keeps serialized encrypted value.
# Type aliases
EncryptedType defines types for encrypted data.
ResponseOnFail represents possible values for `response_on_fail` field.