package
8.15.2+incompatible
Repository: https://github.com/elastic/elastic-agent.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
DisableEncryptionDarwin disables storage encryption.
DiskStoreWithOwnership sets ownership for creating the files.
EncryptedStoreWithOwnership sets ownership for creating the files.
NewDiskStore creates an unencrypted disk store.
NewEncryptedDiskStore creates an encrypted disk store.
NewHandlerStore takes a function and wrap it into an handlerStore.
NewReplaceOnSuccessStore takes a target file and a replacement content and will replace the target file content if the wrapped store execution is done without any error.
ReplaceOnSuccessStoreWithOwnership sets ownership for creating the files.
WithUnprivileged sets if vault should be unprivileged.
WithVaultPath sets the path of the vault.
# Structs
DiskStore takes a persistedConfig and save it to a temporary files and replace the target file.
EncryptedDiskStore encrypts config when saving to disk.
HandlerStore take a function handler and wrap it into the store interface.
NullStore this is only use to split the work into multiples PRs.
ReplaceOnSuccessStore takes a target file, a replacement content and a wrapped store.
# Type aliases
DiskStoreOptionFunc is an option configuration for the disk store.
EncryptedOptionFunc is an option configuration for the encrypted disk store.
ReplaceOnSuccessStoreOptionFunc is an option configuration for the replace on success store.