mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
18 lines
255 B
Go
18 lines
255 B
Go
package event
|
|
|
|
// Reason types of Event Reasons
|
|
type Reason int
|
|
|
|
const (
|
|
PolicyViolation Reason = iota
|
|
PolicyApplied
|
|
PolicyError
|
|
)
|
|
|
|
func (r Reason) String() string {
|
|
return [...]string{
|
|
"PolicyViolation",
|
|
"PolicyApplied",
|
|
"PolicyError",
|
|
}[r]
|
|
}
|