keymanager api: lowercase statuses (#13696)

* cleanup

* adding test

* address small comment

* gaz
This commit is contained in:
james-prysm
2024-03-06 10:30:17 -06:00
committed by GitHub
parent 21775eed52
commit e49ed4d554
4 changed files with 13 additions and 9 deletions

View File

@@ -74,13 +74,13 @@ type KeyStatus struct {
type KeyStatusType string
const (
StatusImported KeyStatusType = "IMPORTED"
StatusError KeyStatusType = "ERROR"
StatusDuplicate KeyStatusType = "DUPLICATE"
StatusUnknown KeyStatusType = "UNKNOWN"
StatusNotFound KeyStatusType = "NOT_FOUND"
StatusDeleted KeyStatusType = "DELETED"
StatusNotActive KeyStatusType = "NOT_ACTIVE"
StatusImported KeyStatusType = "imported"
StatusError KeyStatusType = "error"
StatusDuplicate KeyStatusType = "duplicate"
StatusUnknown KeyStatusType = "unknown"
StatusNotFound KeyStatusType = "not_found"
StatusDeleted KeyStatusType = "deleted"
StatusNotActive KeyStatusType = "not_active"
)
// PublicKeyDeleter allows deleting public keys set in keymanager.