package
0.2.11
Repository: https://github.com/elastic/harp.git
Documentation: pkg.go.dev

# Functions

New build a KV service according to mountPath version.
SecretGetter pull a secret from Vault using given path.
V1 returns a K/V v1 backend service instance.
V2 returns a K/V v2 backend service instance.
WithVaultMetatadata enable/disable the custom metadata storage strategy (requires Vault >=1.9).

# Constants

CustomMetadataKeyLimit defines the key count limit for custom metadata.
CustomMetadataKeySizeLimit defines the key size limit in bytes for custom metadata.
CustomMetadataValueSizeLimit defines the value size limit in bytes for custom metadata.

# Variables

ErrCustomMetadataDisabled is raised when trying to write a custom metadata with globally disabled feature.
ErrNoData is raised when gievn secret path doesn't contains data.
ErrPathNotFound is raised when given secret path doesn't exists.
VaultMetadataDataKey represents the secret data key used to store metadata.

# Structs

Options defiens the default option value.

# Interfaces

SecretLister repesents secret key listing feature contract.
SecretReader represents secret reader feature contract.
SecretWriter represents secret writer feature contract.
Service declares vault service contract.

# Type aliases

Option defines the functional option pattern.
SecretData is a secret body.
SecretMetadata is secret data attached metadata.