vault/command/healthcheck
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
..
healthcheck.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
pki_allow_acme_headers.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
pki_allow_if_modified_since.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
pki_audit_visibility.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
pki_ca_validity_period.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
pki_crl_validity_period.go add gosimport to make fmt and run it (#25383) 2024-02-13 14:07:02 -08:00
pki_enable_acme_issuance.go add gosimport to make fmt and run it (#25383) 2024-02-13 14:07:02 -08:00
pki_enable_auto_tidy.go add gosimport to make fmt and run it (#25383) 2024-02-13 14:07:02 -08:00
pki_hardware_backed_root.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
pki_role_allows_glob_wildcards.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
pki_role_allows_localhost.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
pki_role_no_store_false.go add gosimport to make fmt and run it (#25383) 2024-02-13 14:07:02 -08:00
pki_root_issued_leaves.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
pki_tidy_last_run.go add gosimport to make fmt and run it (#25383) 2024-02-13 14:07:02 -08:00
pki_too_many_certs.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
pki.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
resultstatus_enumer.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
shared.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00
util.go [COMPLIANCE] License changes (#22290) 2023-08-10 18:14:03 -07:00