package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev

# Packages

# Functions

DeletePlaceholderSettingsFromClientSession delete items from ClientSession.
DeleteQueryDataItemsFromClientSession delete items from ClientSession.
EmptyCheckFunction always return false.
EncryptionSettingFromContext extracts column encryption settings for a context, or returns "nil" if there the context does not contain it.
NewAcrawriterDataEncryptor return new AcrawriterDataEncryptor initialized with keystore.
NewAliasToTableMapFromTables create AliasToTableMap from slice of aliased tables.
NewChainDataEncryptor return new ChainDataEncryptor.
NewContextWithEncryptionSetting makes a new context containing column encryption settings.
NewQueryDataItem create new QueryDataItem.
NewStandaloneDataEncryptor return new DataEncryptor that uses AcraStruct to encrypt data as separate OnColumn processor and checks that passed setting configured only for transparent AcraStruct encryption.
PlaceholderSettingsFromClientSession return stored in client session ColumnEncryptionSettings related to placeholders or create new and save in session.
QueryDataItemsFromClientSession return QueryDataItems from ClientSession if saved otherwise nil.
SaveQueryDataItemsToClientSession save slice of QueryDataItem into ClientSession.
StandaloneAcraBlockEncryptorFilterFunction return true if operation should be applied only if setting configured for encryption without any other operations like tokenization/masking.
StandaloneAcraStructEncryptorFilterFunction return true if operation should be applied only if setting configured for encryption without any other operations like tokenization/masking.

# Constants

PlaceholdersSettingKey represent a key for storing placeholders in session.
QueryFilterModeSearchableEncryption list of supported modes for filtering comparisons for searchable and tokenized values.
QueryFilterModeSearchableEncryption list of supported modes for filtering comparisons for searchable and tokenized values.

# Variables

ErrInconsistentPlaceholder is returned when a placeholder refers to multiple different columns.
ErrInvalidPlaceholder is returned when Acra cannot parse SQL placeholder expression.
ErrUnsupportedExpression unsupported type of literal to binary encode/decode.

# Structs

AcrawriterDataEncryptor implement DataEncryptor and encrypt data with AcraStructs.
AliasedTableName store TableName and related As value together.
ChainDataEncryptor implements DataEncryptor and pass data to all encryptors on each call All encryptors should return untouched data if don't do anything with data.
ColumnInfo info object that represent column data.
DataEncryptorContext store data for DataEncryptor.
QueryDataItem stores information about table column and encryption setting.

# Interfaces

ConfigStorage describe main Storage interface for loading encryptor config from different sources.
DataEncryptor replace raw data in queries with encrypted.
DBDataCoder encode/decode binary data to correct string form for specific db.

# Type aliases

AliasToTableMap store table alias as key and table name as value.
CheckFunction return true if operation should be skipped.
SearchableQueryFilterMode represent the mode work of SearchableQueryFilter.