mirror of
https://github.com/hashicorp/vault.git
synced 2026-04-15 22:19:27 -04:00
* hookup the new path to the system backend * add API client method for the new endpoint * add test for the api method structure * adjust the path implementation to capture all so-far added metrics * add tests * add go docs to the tests * add more tests * feedback: add go doc to test * feedback: use require in tests * fix the api: use parse secret method to properly parse response, add mapstructure definitions to api structs * feedback: fix api method test by using mock api response * Update vault/logical_system_use_case_billing.go * Update vault/logical_system_use_case_billing.go * feedback: refactor build month data method into methods that collect data separately * feedback: make update_counts parameter a new user set field for the endpoint * feedback: remove basic comments * update logic around determining updated at field * fix tests: add actual data and fix some assertions * separate out ent only features from the neutral test file * add a new test file to test ent only features * call one update method to update all metrics * add external tests for the endpoint * add a changelog * feedback: rename update_counts parameter to refresh_data * feedback: fix determination of updated_at field * feedback: convert created methods into core methods from system backend methods * Update changelog/12328.txt * feedback: create a new atomic tracker of last updated time for the metrics update and use that in the endpoint * add unit tests to test updated_at * always build metrics, even when the values are 0 * add test coverage to verify metrics still exist in the response with zero values even when there are no billing resources * feedback: remove manual check of root namespace - rely on system backend to enforce root namespace restriction * remove namespace test from oss test file * properly accomodate new totp metric * add pki cert and totp to endpoint response, add test coverage * rename changelog file * linters * change changelog type to improvement, make the file CE and ENT * test ent changelog * fix some tests after the addition of totp and pki * add test coverage for the new metrics in external and api tests * make changelog CE file --------- Co-authored-by: Amir Aslamov <amir.aslamov@hashicorp.com> Co-authored-by: Violet Hynes <violet.hynes@hashicorp.com> Co-authored-by: divyaac <divya.chandrasekaran@hashicorp.com> |
||
|---|---|---|
| .. | ||
| auth | ||
| cliconfig | ||
| test-fixtures | ||
| tokenhelper | ||
| .copywrite.hcl | ||
| api_test.go | ||
| auth.go | ||
| auth_test.go | ||
| auth_token.go | ||
| client.go | ||
| client_test.go | ||
| go.mod | ||
| go.sum | ||
| hcl_dup_attr_deprecation.go | ||
| help.go | ||
| kv.go | ||
| kv_test.go | ||
| kv_v1.go | ||
| kv_v2.go | ||
| LICENSE | ||
| lifetime_watcher.go | ||
| logical.go | ||
| logical_requests.go | ||
| logical_requests_test.go | ||
| logical_test.go | ||
| output_policy.go | ||
| output_policy_test.go | ||
| output_string.go | ||
| plugin_helpers.go | ||
| plugin_runtime_types.go | ||
| plugin_types.go | ||
| plugin_types_test.go | ||
| pluginruntimetype_enumer.go | ||
| README.md | ||
| renewbehavior_enumer.go | ||
| renewer_test.go | ||
| replication_status.go | ||
| request.go | ||
| request_test.go | ||
| response.go | ||
| secret.go | ||
| secret_test.go | ||
| ssh.go | ||
| ssh_agent.go | ||
| ssh_agent_test.go | ||
| sudo_paths.go | ||
| sudo_paths_test.go | ||
| sys.go | ||
| sys_audit.go | ||
| sys_auth.go | ||
| sys_billing.go | ||
| sys_billing_test.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_mounts_test.go | ||
| sys_plugins.go | ||
| sys_plugins_runtimes.go | ||
| sys_plugins_runtimes_test.go | ||
| sys_plugins_test.go | ||
| sys_policy.go | ||
| sys_raft.go | ||
| sys_rekey.go | ||
| sys_reporting_scan.go | ||
| sys_rotate.go | ||
| sys_seal.go | ||
| sys_stepdown.go | ||
| sys_ui_custom_message.go | ||
| sys_ui_custom_message_test.go | ||
| sys_utilization_report.go | ||
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. For a step-by-step walkthrough on using these client libraries, see the developer quickstart.
