open-vault/api
VAL 64448b62a4
KV helper methods for api package (#15305)
* 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
2022-05-25 11:17:13 -07:00
..
auth Remove spurious fmt.Printf calls including one of a key (#15344) 2022-05-19 12:27:02 -07:00
test-fixtures
README.md
api_test.go
auth.go [Vault-5248] MFA support for api login helpers (#14900) 2022-04-15 11:13:15 -07:00
auth_test.go [Vault-5248] MFA support for api login helpers (#14900) 2022-04-15 11:13:15 -07:00
auth_token.go
client.go Added support for VAULT_PROXY_ADDR + Updated docs (#15377) 2022-05-24 13:38:51 -04:00
client_test.go Added support for VAULT_PROXY_ADDR + Updated docs (#15377) 2022-05-24 13:38:51 -04:00
go.mod update api to use sdk/v0.5.0 (#15599) 2022-05-25 13:48:21 -04:00
go.sum Update parseutil in API, SDK (#15465) 2022-05-17 11:44:32 -04:00
help.go
kv.go KV helper methods for api package (#15305) 2022-05-25 11:17:13 -07:00
kv_test.go KV helper methods for api package (#15305) 2022-05-25 11:17:13 -07:00
kv_v1.go KV helper methods for api package (#15305) 2022-05-25 11:17:13 -07:00
kv_v2.go KV helper methods for api package (#15305) 2022-05-25 11:17:13 -07:00
lifetime_watcher.go
logical.go Propagate context within UnwrapWithContext func (#15351) 2022-05-10 16:30:05 -04:00
output_policy.go Global flag that outputs minimum policy HCL required for an operation (#14899) 2022-04-27 16:35:18 -07:00
output_string.go Global flag that outputs minimum policy HCL required for an operation (#14899) 2022-04-27 16:35:18 -07:00
plugin_helpers.go Add enterprise sudo paths to api.SudoPaths map (#15219) 2022-04-29 10:09:25 -04:00
plugin_helpers_test.go Global flag that outputs minimum policy HCL required for an operation (#14899) 2022-04-27 16:35:18 -07:00
renewer_test.go
request.go
request_test.go
response.go
secret.go Fix integer overflows with new parseutil (#15437) 2022-05-16 13:57:19 -04:00
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 Add autopilot automated upgrades and redundancy zones (#15521) 2022-05-20 16:49:11 -04:00
sys_health.go
sys_init.go
sys_leader.go
sys_leases.go
sys_mfa.go [Vault-5248] MFA support for api login helpers (#14900) 2022-04-15 11:13:15 -07:00
sys_monitor.go api/monitor: Adding log format to monitor command and debug (#15536) 2022-05-24 13:10:53 -04:00
sys_mounts.go
sys_plugins.go api: make ListPlugins parse only known plugin types (#15434) 2022-05-17 17:41:26 +01:00
sys_plugins_test.go api: make ListPlugins parse only known plugin types (#15434) 2022-05-17 17:41:26 +01:00
sys_policy.go
sys_raft.go Add autopilot automated upgrades and redundancy zones (#15521) 2022-05-20 16:49:11 -04:00
sys_rekey.go
sys_rotate.go
sys_seal.go Add build date (#14957) 2022-04-19 14:28:08 -04:00
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.

GoDoc