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

# Functions

DescribeKeyFile describes key by its purpose path for V1 and V2 keystore.
EnumerateExportedKeys prepares a list of keys that can be exported.
EnumerateExportedKeysByClass prepares a list of keys that can be exported.
GetServerDecryptionKeyFilename return filename for decryption key.
IsKeyDirectory checks if the local directory contains a keystore v1.
IsKeyReadError return true if error is os.ErrNotExist compatible and NoKeyFoundExit.
NewCustomFilesystemKeyStore allows a custom-made KeyStore to be built.
NewCustomTranslatorFileSystemKeyStore allows to customize a translator keystore.
NewExportedPlaintextSymmetricKey makes an ExportedKey for an unencrypted symmetric key file.
NewExportedPrivateKey makes an ExportedKey for a private key file.
NewExportedPublicKey makes an ExportedKey for a public key file.
NewExportedSymmetricKey makes an ExportedKey for an unencrypted symmetric key file.
NewFilesystemKeyStore represents keystore that reads keys from key folders, and stores them in memory.
NewFilesystemKeyStoreTwoPath creates new KeyStore using separate folders for private and public keys.
NewFileSystemKeyStoreWithCacheSize represents keystore that reads keys from key folders, and stores them in cache.
NewKeyBackuper create, initialize and return new instance of KeyBackuper.
NewRedisStorage returns a new Redis backend.
NewTranslatorFileSystemKeyStore creates new TranslatorFileSystemKeyStore.
NewTranslatorFileSystemKeyStoreFromServerStore create TranslatorKeyStore which inherit KeyStore.
ReadDir reads a directory and returns paths of items.

# Constants

HistoricalFileNameTimeFormat format used as filename for rotated keys.
Default key folders' filenames.
PrivateFileMode used for all created files with private data.
SecureLogKeyFilename represent context for secure log key.

# Variables

ErrInvalidIndex represent invalid key index for destroying.
ErrUnrecognizedKeyPurpose describe key mismatch error.

# Structs

DefaultKeyFileClassifier is a KeyFileClassifier for standard key types.
DummyStorage keeps key files in filesystem directories.
ExportedKey describes a key that can be exported from keystore.
FileStorage is implementation of Storage interface for filesystem.
KeyBackuper export keys from KeyStore into encrypted bytes buffer.
KeyStore represents keystore that reads keys from key folders, and stores them in memory.
KeyStoreBuilder allows to build a custom keystore.
RedisStorage provides a storage backend that keeps key in Redis.
TranslatorFileSystemKeyStore stores AcraTranslator keys configuration.
TranslatorFileSystemKeyStoreBuilder allows to build a custom keystore.

# Interfaces

KeyExport allows to export plaintext key material by generic key description rather than specific purpose.
KeyExportEnumerator provides a list of key paths to be exported.
KeyFileClassifier defines how to export keys stored in files.
Storage interface provides support for alternative filesystem-like storage backends of KeyStore.