forked from quay/claircore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
severity_string.go
28 lines (22 loc) · 720 Bytes
/
severity_string.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Code generated by "stringer -type=Severity"; DO NOT EDIT.
package claircore
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Unknown-0]
_ = x[Negligible-1]
_ = x[Low-2]
_ = x[Medium-3]
_ = x[High-4]
_ = x[Critical-5]
}
const _Severity_name = "UnknownNegligibleLowMediumHighCritical"
var _Severity_index = [...]uint8{0, 7, 17, 20, 26, 30, 38}
func (i Severity) String() string {
if i >= Severity(len(_Severity_index)-1) {
return "Severity(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Severity_name[_Severity_index[i]:_Severity_index[i+1]]
}