2019-05-10 00:05:21 -07:00
|
|
|
package event
|
|
|
|
|
2022-05-17 08:19:03 +02:00
|
|
|
// Reason types of Event Reasons
|
2019-05-10 00:05:21 -07:00
|
|
|
type Reason int
|
|
|
|
|
|
|
|
const (
|
|
|
|
PolicyViolation Reason = iota
|
2021-06-30 00:43:11 +03:00
|
|
|
PolicyApplied
|
2022-05-01 22:14:32 -07:00
|
|
|
PolicyError
|
2022-07-28 11:31:50 +05:30
|
|
|
PolicySkipped
|
2019-05-10 00:05:21 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
func (r Reason) String() string {
|
|
|
|
return [...]string{
|
|
|
|
"PolicyViolation",
|
2021-06-30 00:43:11 +03:00
|
|
|
"PolicyApplied",
|
2022-05-01 22:14:32 -07:00
|
|
|
"PolicyError",
|
2022-07-28 11:31:50 +05:30
|
|
|
"PolicySkipped",
|
2019-05-10 00:05:21 -07:00
|
|
|
}[r]
|
|
|
|
}
|