package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev
# Functions
CreateKeyEncryptor returns initialized keystore.KeyEncryptor interface depending on incoming keystoreStrategy.
CreateKeyEncryptorSuite returns initialized crypto.KeyStoreSuite interface depending on incoming keystoreStrategy.
ParseCLIOptions parse registered flag.CommandLine CLIOptions.
ParseCLIOptionsFromFlags parse registered CLIOptions.
RegisterCLIParametersWithFlagSet keyloader related flags.
RegisterKeyEncryptorFabric add new kms MasterKeyLoader to registry.
RegisterKeyStoreStrategyParameters register flags for all fabrics with CommandLine flags.
RegisterKeyStoreStrategyParametersWithFlags register flags for all fabrics.
# Constants
represent all possible keystore strategies.
represent all possible keystore strategies.
represent all possible keystore strategies.
represent all possible keystore strategies.
# Variables
ErrKeyEncryptorFabricNotFound represent an error of missing KeyEncryptorFabric in registry.
SupportedKeystoreStrategies contains all possible values for flag `--keystore_encryption_type`.
# Structs
CLIOptions keep command-line options related to KMS ACRA_MASTER_KEY loading.
# Interfaces
KeyEncryptorFabric represent Fabric interface for constructing keystore.KeyEncryptor for v1 keystore and crypto.KeyStoreSuite for v2.
MasterKeyLoader interface for loading ACRA_MASTER_KEYs from different sources.