vault/command/agentproxyshared/cache
Christopher Swenson 961bf20bdb
Use enumer to generate String() methods for most enums (#25705)
We have many hand-written String() methods (and similar) for enums.
These require more maintenance and are more error-prone than using
automatically generated methods. In addition, the auto-generated
versions can be more efficient.

Here, we switch to using https://github.com/loggerhead/enumer, itself
a fork of https://github.com/diegostamigni/enumer, no longer maintained,
and a fork of the mostly standard tool
https://pkg.go.dev/golang.org/x/tools/cmd/stringer.
We use this fork of enumer for Go 1.20+ compatibility and because
we require the `-transform` flag to be able to generate
constants that match our current code base.

Some enums were not targeted for this change:
2024-04-17 11:14:14 -07:00
..
cacheboltdb Use our fork of bbolt to improve freelist performance (#24010) 2023-11-21 10:08:18 -05:00
cachememdb add gosimport to make fmt and run it (#25383) 2024-02-13 14:07:02 -08:00
keymanager [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
api_proxy.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
api_proxy_test.go VAULT-23742 Fix issue with use_auto_auth_token being always on (#26391) 2024-04-12 13:51:53 -04:00
cache_test.go VAULT-23742 Fix issue with use_auto_auth_token being always on (#26391) 2024-04-12 13:51:53 -04:00
enforceconsistency_enumer.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
handler.go VAULT-23742 Fix issue with use_auto_auth_token being always on (#26391) 2024-04-12 13:51:53 -04:00
lease_cache.go Fix bug in static secret caching where no token is present in a request to Proxy (#24287) 2023-11-29 09:35:59 -05:00
lease_cache_test.go Fix flaky restore test (#24490) 2023-12-12 10:27:26 -05:00
listener.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
proxy.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
static_secret_cache_updater.go Auto Auth Healing for Proxy (#26307) 2024-04-09 12:35:39 -07:00
static_secret_cache_updater_test.go Auto Auth Healing for Proxy (#26307) 2024-04-09 12:35:39 -07:00
static_secret_capability_manager.go VAULT-19232 Add static secret capability manager to Vault Proxy (#23677) 2023-10-25 16:43:24 -04:00
static_secret_capability_manager_test.go Fix data race with readable paths in our tests (#25127) 2024-01-30 14:33:06 +00:00
testing.go add gosimport to make fmt and run it (#25383) 2024-02-13 14:07:02 -08:00
wheninconsistentaction_enumer.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00