vault/sdk/logical
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
..
acme_billing.go Start counting ACME certificate issuance as client activity (#20520) 2023-05-17 16:12:04 +00:00
audit_test.go [DO NOT MERGE UNTIL EOY] update year in LICENSE and copywrite files (#24368) 2024-01-02 13:22:15 -08:00
audit.go Audit: LogInput.Request Cloning update (#24885) 2024-01-16 16:57:21 +00:00
auth.go add ns path to granting_policies (#20522) 2023-05-04 15:08:22 -07:00
clienttokensource_enumer.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
connection.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
controlgroup.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
error.go Added Invalid Token Error Message that will be returned for bad tokens (#25953) 2024-03-14 11:15:20 -07:00
event.pb.go lint: fix proto delta and simports (#25825) 2024-03-07 18:10:51 +00:00
event.proto Migrate protobuf generation to Buf (#22099) 2023-07-31 18:44:56 +00:00
events_mock.go database: Emit event notifications (#24718) 2024-02-05 10:30:00 -08:00
events_test.go Relplat 897 copywrite fixes for mutliple licenses (#23722) 2023-10-20 08:40:43 -07:00
events.go events: WebSocket subscriptions support go-bexpr expressions (#22835) 2023-09-07 20:11:53 +00:00
identity.pb.go lint: fix proto delta and simports (#25825) 2024-03-07 18:10:51 +00:00
identity.proto Migrate protobuf generation to Buf (#22099) 2023-07-31 18:44:56 +00:00
keyusage_enumer.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
lease_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
lease.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
logical_storage.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
logical.go Request Limiter (#25093) 2024-01-26 14:26:21 -05:00
managed_key.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
plugin.pb.go lint: fix proto delta and simports (#25825) 2024-03-07 18:10:51 +00:00
plugin.proto Migrate protobuf generation to Buf (#22099) 2023-07-31 18:44:56 +00:00
request_test.go [DO NOT MERGE UNTIL EOY] update year in LICENSE and copywrite files (#24368) 2024-01-02 13:22:15 -08:00
request.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
response_util_test.go Add support for HEAD operations (#19520) 2023-03-21 18:37:17 -04:00
response_util.go Request Limiter (#25093) 2024-01-26 14:26:21 -05:00
response.go VAULT-19237 Add mount_type to secret response (#23047) 2023-09-20 09:28:52 -04:00
secret.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
storage_inmem_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
storage_inmem.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
storage_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
storage_view.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
storage.go add AbortableScanView function (#23245) 2023-09-22 09:03:53 -05:00
system_view.go Add version pinning to plugin catalog (#24960) 2024-01-26 17:21:43 +00:00
testing.go add gosimport to make fmt and run it (#25383) 2024-02-13 14:07:02 -08:00
token_test.go adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
token.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
tokentype_enumer.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
translate_response.go VAULT-19237 Add mount_type to secret response (#23047) 2023-09-20 09:28:52 -04:00
version_grpc.pb.go [QT-645] Restructure dev tools (#24559) 2024-01-09 17:50:46 +00:00
version.pb.go lint: fix proto delta and simports (#25825) 2024-03-07 18:10:51 +00:00
version.proto Migrate protobuf generation to Buf (#22099) 2023-07-31 18:44:56 +00:00