vault/sdk/helper/testcluster
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
..
docker Vault-22903: add option to disable TLS in test clusters (#25764) 2024-03-11 11:59:36 -05:00
consts.go Relplat 897 copywrite fixes for mutliple licenses (#23722) 2023-10-20 08:40:43 -07:00
exec.go adding support for four cluster docker based test scenario (#20492) 2023-05-03 10:49:45 -07:00
generaterootkind_enumer.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
logging.go Add tests based on vault binary (#20224) 2023-04-24 09:57:37 -04:00
replication.go Add replication.SetCorePerf to create a ReplicationSet using NewTestCluster (#25381) 2024-02-16 09:00:47 -05:00
types.go Redacted Information With Valid Token (#25735) 2024-03-01 13:20:31 -05:00
util.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00