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

# Packages

# Functions

AggregateTokenContextToBytes used as function to return one byte array as value which is digest for context.
EmbedMetadata composes data with additional metadata into a single byte slice.
EncodeTokenValue serializes token value into bytes.
ExtractMetadata extracts data and metadata back from a composite byte slice.
NewTokenMetadata creates metadata for a newly created token entry,.
NormalizeTokenType checks the token type and replaces it with the default value if the type is not supported or invalid.
TokenValueFromData deserializes token value from bytes.
ValidateTokenType return true if value is supported TokenType.

# Constants

DefaultAccessTimeGranularity is the default difference in time required for the access time to be updated.
Available TokenAction values.
Available TokenAction values.
Available TokenAction values.
Available TokenAction values.

# Variables

ErrTokenDisabled is returned when a token was found, but is explicitly disabled.
ErrTokenExists is returned by TokenStorage.Save when a token with given ID and context already exists in the storage.
ErrTokenNotFound error used when token wasn't found in storage.
Validation errors.
Validation errors.
Enum value maps for TokenType.
Enum value maps for TokenType.

# Structs

MetadataContainer is Protobuf container for TokenMetadata.
TokenContext used as metadata for each token.
TokenMetadata is additional bookeeping information kept by TokenStorage along with the token value.
TokenValue keeps serialized token value.

# Interfaces

Anonymizer interface provide all supported methods to anonymize data.
Encryptor interface used as abstraction for token encryption.
Pseudoanonymizer extends Anonymizer interface with methods to anonymize consistently and deanonymize value.
TokenSetting describes how a column should be tokenized.
TokenStorage interface abstracts storage implementation.

# Type aliases

Email type used to separate string type from Email for tokens.
TokenAction is an action to perform during VisitMetadata.
TokenType defines tokenization type.