mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Remove structs, mapstructure from PKI storage (#16190)
structs and mapstructure aren't really used within Vault much any more, so we should start removing them. Luckily there was only one externally accessible place where structs was used (AIA URLs config) so that was easy to remove. The rest is mostly structure tag changes. path_roles_tests.go relied on mapstructure in some places that broke, but otherwise backend_test.go hasn't yet been modified to remove the dependency on mapstructure. These didn't break as the underlying CertBundle didn't get mapstructure support removed (as its in the SDK). Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
This commit is contained in:
@@ -21,11 +21,11 @@ const (
|
||||
)
|
||||
|
||||
type legacyBundleMigrationLog struct {
|
||||
Hash string `json:"hash" structs:"hash" mapstructure:"hash"`
|
||||
Created time.Time `json:"created" structs:"created" mapstructure:"created"`
|
||||
CreatedIssuer issuerID `json:"issuer_id" structs:"issuer_id" mapstructure:"issuer_id"`
|
||||
CreatedKey keyID `json:"key_id" structs:"key_id" mapstructure:"key_id"`
|
||||
MigrationVersion int `json:"migrationVersion" structs:"migrationVersion" mapstructure:"migrationVersion"`
|
||||
Hash string `json:"hash"`
|
||||
Created time.Time `json:"created"`
|
||||
CreatedIssuer issuerID `json:"issuer_id"`
|
||||
CreatedKey keyID `json:"key_id"`
|
||||
MigrationVersion int `json:"migrationVersion"`
|
||||
}
|
||||
|
||||
type migrationInfo struct {
|
||||
|
||||
Reference in New Issue
Block a user