package
6.8.16+incompatible
Repository: https://github.com/tencentblueking/beats.git
Documentation: pkg.go.dev

# Functions

Factory Create the right keystore with the configured options.
NewFileKeystore returns an new File based keystore or an error, currently users cannot set their own password on the keystore, the default password will be an empty string.
NewFileKeystoreWithPassword return a new File based keystore or an error, allow to define what password to use to create the keystore.
NewSecureString return a struct representing a secrets string.
ResolverFromConfig create a resolver from a configuration.
ResolverWrap wrap a config resolver around an existing keystore.

# Variables

ErrAlreadyExists is returned when the file already exist at the location.
ErrKeyDoesntExists is returned when the key doesn't exist in the store.

# Structs

Config Define keystore configurable options.
FileKeystore Allows to store key / secrets pair securely into an encrypted local file.
SecureString Initial implementation for a SecureString representation in beats, currently we keep the password into a Bytes array, we need to implement a way to safely clean that array.

# Interfaces

Keystore implement a way to securely saves and retrieves secrets to be used in the configuration Currently all credentials are loaded upfront and are not lazy retrieved, we will eventually move to that concept, so we can deal with tokens that has a limited duration or can be revoked by a remote keystore.
Packager defines a keystore that we can read the raw bytes and be packaged in an artifact.