|
|
|
|
@ -18,20 +18,22 @@ const (
|
|
|
|
|
State
|
|
|
|
|
External
|
|
|
|
|
VaultToken
|
|
|
|
|
Configuration
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (e Kind) String() string {
|
|
|
|
|
return map[Kind]string{
|
|
|
|
|
Other: "unknown",
|
|
|
|
|
Parameter: "parameter violation",
|
|
|
|
|
Integrity: "integrity violation",
|
|
|
|
|
Search: "search issue",
|
|
|
|
|
Password: "password violation",
|
|
|
|
|
Transaction: "db transaction issue",
|
|
|
|
|
Encryption: "encryption issue",
|
|
|
|
|
Encoding: "encoding issue",
|
|
|
|
|
State: "state violation",
|
|
|
|
|
External: "external system issue",
|
|
|
|
|
VaultToken: "vault token issue",
|
|
|
|
|
Other: "unknown",
|
|
|
|
|
Parameter: "parameter violation",
|
|
|
|
|
Integrity: "integrity violation",
|
|
|
|
|
Search: "search issue",
|
|
|
|
|
Password: "password violation",
|
|
|
|
|
Transaction: "db transaction issue",
|
|
|
|
|
Encryption: "encryption issue",
|
|
|
|
|
Encoding: "encoding issue",
|
|
|
|
|
State: "state violation",
|
|
|
|
|
External: "external system issue",
|
|
|
|
|
VaultToken: "vault token issue",
|
|
|
|
|
Configuration: "configuration issue",
|
|
|
|
|
}[e]
|
|
|
|
|
}
|
|
|
|
|
|