64448b62a4
* Add Read methods for KVClient * KV write helper * Add changelog * Add Delete method * Use extractVersionMetadata inside extractDataAndVersionMetadata * Return nil, nil for v1 writes * Add test for extracting version metadata * Split kv client into v1 and v2-specific clients * Add ability to set options on Put * Add test for KV helpers * Add custom metadata to top level and allow for getting versions as sorted slice * Update tests * Separate KV v1 and v2 into different files * Add test for GetVersionsAsList, rename Metadata key to VersionMetadata for clarity * Move structs and godoc comments to more appropriate files * Add more tests for extract methods * Rework custom metadata helper to be more consistent with other helpers * Remove KVSecret from custom metadata test now that we don't append to it as part of helper method * Return early for readability and make test value name less confusing |
||
---|---|---|
.. | ||
auth | ||
test-fixtures | ||
README.md | ||
api_test.go | ||
auth.go | ||
auth_test.go | ||
auth_token.go | ||
client.go | ||
client_test.go | ||
go.mod | ||
go.sum | ||
help.go | ||
kv.go | ||
kv_test.go | ||
kv_v1.go | ||
kv_v2.go | ||
lifetime_watcher.go | ||
logical.go | ||
output_policy.go | ||
output_string.go | ||
plugin_helpers.go | ||
plugin_helpers_test.go | ||
renewer_test.go | ||
request.go | ||
request_test.go | ||
response.go | ||
secret.go | ||
ssh.go | ||
ssh_agent.go | ||
ssh_agent_test.go | ||
sys.go | ||
sys_audit.go | ||
sys_auth.go | ||
sys_capabilities.go | ||
sys_config_cors.go | ||
sys_generate_root.go | ||
sys_hastatus.go | ||
sys_health.go | ||
sys_init.go | ||
sys_leader.go | ||
sys_leases.go | ||
sys_mfa.go | ||
sys_monitor.go | ||
sys_mounts.go | ||
sys_plugins.go | ||
sys_plugins_test.go | ||
sys_policy.go | ||
sys_raft.go | ||
sys_rekey.go | ||
sys_rotate.go | ||
sys_seal.go | ||
sys_stepdown.go |
README.md
Vault API
This provides the github.com/hashicorp/vault/api
package which contains code useful for interacting with a Vault server.
For examples of how to use this module, see the vault-examples repo.