open-vault/command
Paddy 2b2bc2a911 Create a new command/config subpackage. (#4055)
* Create a new command/config subpackage.

This PR extracts the functions associated with loading and parsing
configs, and the DefaultTokenHelper, into a command/config subpackage,
just like TokenHelpers are in the command/token subpackage. The goal is
to allow other clients (in this case, the Vault and Nomad Terraform
providers, but in theory any client that wants to lean on Vault's
default behaviour) to reuse this logic and not drift from Vault, without
vendoring the entirety of Vault.

To retain backwards compatibility, I didn't remove any functions from
the command package; I just copied them into the command/config package,
and update the functions in the command package to call through to the
config package.
2018-02-28 20:09:21 -05:00
..
config Create a new command/config subpackage. (#4055) 2018-02-28 20:09:21 -05:00
server Config parameter "tls_disable_client_certs" is wrongly evaluated. (#4049) 2018-02-28 10:07:23 -05:00
test-fixtures Remove config from Meta; it's only used right now with the token helper. 2016-04-01 16:02:18 -04:00
token Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
approle_concurrency_integ_test.go Fix race in approle integ test 2018-02-09 17:01:10 -05:00
audit.go Make audit a subcommand 2017-10-24 09:30:47 -04:00
audit_disable.go Make audit a subcommand 2017-10-24 09:30:47 -04:00
audit_disable_test.go Make audit a subcommand 2017-10-24 09:30:47 -04:00
audit_enable.go Make audit a subcommand 2017-10-24 09:30:47 -04:00
audit_enable_test.go Adding tests to ensure all backends are mountable (#3861) 2018-02-01 11:30:04 -05:00
audit_list.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
audit_list_test.go Update audit-list command 2017-10-24 09:28:06 -04:00
auth.go Change next major release of Vault to 0.11 or later to make it less scary 2018-01-17 19:31:52 -05:00
auth_disable.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_disable_test.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_enable.go Add TTL related config options on auth enable (#4019) 2018-02-22 10:26:29 -05:00
auth_enable_test.go Adding tests to ensure all backends are mountable (#3861) 2018-02-01 11:30:04 -05:00
auth_help.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_help_test.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_list.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
auth_list_test.go Add new auth-list command 2017-10-24 09:28:06 -04:00
auth_test.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_tune.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
auth_tune_test.go Introduce auth as a subcommand 2017-10-24 09:30:47 -04:00
base.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
base_flags.go Add a custom flag for specifying "system" ttls 2017-10-24 09:30:48 -04:00
base_helpers.go Move more formatting into base_helpers 2017-10-24 09:30:48 -04:00
base_helpers_test.go Expand and centralize helpers 2017-10-24 09:28:05 -04:00
base_predict.go Predict "generic" as a secrets engine 2017-10-24 09:30:47 -04:00
base_predict_test.go Fix outdated test 2018-01-10 11:33:53 -05:00
command_test.go Adding tests to ensure all backends are mountable (#3861) 2018-02-01 11:30:04 -05:00
commands.go Add support for Google Cloud Spanner (#3977) 2018-02-14 20:31:20 -05:00
config.go Create a new command/config subpackage. (#4055) 2018-02-28 20:09:21 -05:00
config_test.go Remove config from Meta; it's only used right now with the token helper. 2016-04-01 16:02:18 -04:00
delete.go Update delete command 2017-10-24 09:30:47 -04:00
delete_test.go Update delete command 2017-10-24 09:30:47 -04:00
format.go Handle missed error case in seal status output format (#4001) 2018-02-17 20:52:42 -05:00
format_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
identity_group_aliases_integ_test.go go vet fixes 2018-02-05 14:26:31 -05:00
lease.go Add lease subcommand 2017-10-24 09:30:47 -04:00
lease_renew.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
lease_renew_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
lease_revoke.go Add lease subcommand 2017-10-24 09:30:47 -04:00
lease_revoke_test.go Add lease subcommand 2017-10-24 09:30:47 -04:00
list.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
list_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
login.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
login_test.go Don't swallow errors on token functions. 2017-10-24 09:39:35 -04:00
main.go Add newline on non-ttl output (#3967) 2018-02-13 14:46:57 -05:00
operator.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_generate_root.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator_generate_root_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator_init.go Re-add lost stored-shares parameter to operator rekey command. (#3974) 2018-02-14 16:10:45 -05:00
operator_init_test.go Also exclude init command from race detector 2018-02-16 11:09:36 -05:00
operator_key_status.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator_key_status_test.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_rekey.go Re-add lost stored-shares parameter to operator rekey command. (#3974) 2018-02-14 16:10:45 -05:00
operator_rekey_test.go Exclude rekey command tests from race detector 2018-02-08 13:34:45 -05:00
operator_seal.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_seal_test.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_step_down.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_step_down_test.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
operator_unseal.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
operator_unseal_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
path_help.go Update path-help command 2017-10-24 09:30:48 -04:00
path_help_test.go Fix bad rebase 2017-10-24 09:39:34 -04:00
path_map_upgrade_api_test.go SHA2-256 salting for AppID (#3806) 2018-01-17 19:48:32 -05:00
pgp_test.go Add helper for decrypting via PGP in tests 2017-10-24 09:28:06 -04:00
policies_deprecated.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
policies_deprecated_test.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_delete.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_delete_test.go Update policy-delete command 2017-10-24 09:29:36 -04:00
policy_fmt.go Use renamed method 2017-10-24 09:39:51 -04:00
policy_fmt_test.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_list.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
policy_list_test.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_read.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
policy_read_test.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_write.go Add "policy" subcommand 2017-10-24 09:30:48 -04:00
policy_write_test.go Update policy-write command 2017-10-24 09:29:37 -04:00
read.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
read_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
rotate.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
rotate_test.go Add "operator" subcommand 2017-10-24 09:30:48 -04:00
secrets.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_disable.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_disable_test.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_enable.go Merge branch 'master-oss' into sethvargo/cli-magic 2018-01-03 14:02:31 -05:00
secrets_enable_test.go Adding tests to ensure all backends are mountable (#3861) 2018-02-01 11:30:04 -05:00
secrets_list.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
secrets_list_test.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_move.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_move_test.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_tune.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
secrets_tune_test.go Rename mounts to secrets engines and add the subcommand 2017-10-24 09:30:48 -04:00
server.go Use atomic values in seal to avoid some data races (#4040) 2018-02-23 17:18:48 -05:00
server_test.go Fix bad rebase 2017-10-24 09:39:34 -04:00
ssh.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
ssh_test.go Update ssh command 2017-10-24 09:30:46 -04:00
status.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
status_test.go Fix bad rebase 2017-10-24 09:39:34 -04:00
token.go Add token as a subcommand 2017-10-24 09:30:47 -04:00
token_capabilities.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_capabilities_test.go Add token as a subcommand 2017-10-24 09:30:47 -04:00
token_create.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_create_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_lookup.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_lookup_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_renew.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_renew_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
token_revoke.go Add token as a subcommand 2017-10-24 09:30:47 -04:00
token_revoke_test.go Update token-revoke command 2017-10-24 09:30:46 -04:00
unwrap.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
unwrap_test.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
util.go Create a new command/config subpackage. (#4055) 2018-02-28 20:09:21 -05:00
version.go Update version command 2017-10-24 09:30:48 -04:00
version_test.go Update version command 2017-10-24 09:30:47 -04:00
write.go CLI Enhancements (#3897) 2018-02-12 18:12:16 -05:00
write_test.go Update write command 2017-10-24 09:30:48 -04:00