package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Functions

AsListingKeystore casts a keystore to ListingKeystore, returning an ErrNotListing error if the given keystore does not implement ListingKeystore interface.
AsWritableKeystore casts a keystore to WritableKeystore, returning an ErrNotWritable error if the given keystore does not implement WritableKeystore interface.
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.
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.
ErrNotWritable is returned when the keystore is not writable.
ErrNotWritable is returned when the keystore is not writable.

# 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.
Provider for keystore.