1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/pkg/event/reason.go
Charles-Edouard Brétéché 0099ef54ad
chore: enable gofmt and gofumpt linters (#3931)
Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
2022-05-17 06:19:03 +00:00

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]
}