[][src]Module hc_vault::kv2

The kv2 module is used for all interactions with the v2 key-value backend in vault

Structs

Configuration

Configuration describes the configuration for a single kv2-mount

Functions

configure

This function is used to configure the given kv2-mount with the provided configuration options

delete

This deletes the latest version of the secret, which only stops it from being read/returned but currently doesnt actually delete the underlying data so it can be undone using undelete

delete_metadata_all_versions

This is used to delete all versions and metadata associated with a given key in the kv-store. This operation is, like destroy_versions, permanent and cannot be undone

delete_versions

Issues a soft delete, similiar to the delete function, for all the given versions

destroy_versions

Permanently removes/deletes the given versions with no way to recover the data after this operation has completed

get

This function is used to load data from the kv2-mount in vault. The data will be serialized into a struct from the provided type

get_configuration

Is used to load the current configuration of the kv2-backend mounted at the given mount point

undelete_versions

This undeletes previously deleted versions, not destroyed versions. These versions will afterwards appear normally in any further requests as if they have never been deleted in the first place

update_set

This function is used to update or set data for a given path in the kv2-mount in vault