aboutsummaryrefslogtreecommitdiff
path: root/internal/cvss/v3metric_string.go
blob: e59b024dbabf69946d34c38bc416326e74933408 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
// Code generated by "stringer -linecomment -type=V3Metric"; DO NOT EDIT.

package cvss

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[V3AVNetwork-0]
	_ = x[V3AVAdjacentNetwork-1]
	_ = x[V3AVLocal-2]
	_ = x[V3AVPhysical-3]
	_ = x[V3ACLow-4]
	_ = x[V3ACHigh-5]
	_ = x[V3PRNone-6]
	_ = x[V3PRLow-7]
	_ = x[V3PRHigh-8]
	_ = x[V3UINone-9]
	_ = x[V3UIRequired-10]
	_ = x[V3SUnchanged-11]
	_ = x[V3SChanged-12]
	_ = x[V3CHigh-13]
	_ = x[V3CLow-14]
	_ = x[V3CNone-15]
	_ = x[V3IHigh-16]
	_ = x[V3ILow-17]
	_ = x[V3INone-18]
	_ = x[V3AHigh-19]
	_ = x[V3ALow-20]
	_ = x[V3ANone-21]
	_ = x[V3ENotDefined-22]
	_ = x[V3EHigh-23]
	_ = x[V3EFunctional-24]
	_ = x[V3EProofOfConcept-25]
	_ = x[V3EUnproven-26]
	_ = x[V3RLNotDefined-27]
	_ = x[V3RLUnavailable-28]
	_ = x[V3RLWorkaround-29]
	_ = x[V3RLTemporaryFix-30]
	_ = x[V3RLOfficialFix-31]
	_ = x[V3RCNotDefined-32]
	_ = x[V3RCConfirmed-33]
	_ = x[V3RCReasonable-34]
	_ = x[V3RCUnknown-35]
	_ = x[V3CRNotDefined-36]
	_ = x[V3CRHigh-37]
	_ = x[V3CRMedium-38]
	_ = x[V3CRLow-39]
	_ = x[V3IRNotDefined-40]
	_ = x[V3IRHigh-41]
	_ = x[V3IRMedium-42]
	_ = x[V3IRLow-43]
	_ = x[V3ARNotDefined-44]
	_ = x[V3ARHigh-45]
	_ = x[V3ARMedium-46]
	_ = x[V3ARLow-47]
	_ = x[V3MAVNotDefined-48]
	_ = x[V3MAVNetwork-49]
	_ = x[V3MAVAdjacentNetwork-50]
	_ = x[V3MAVLocal-51]
	_ = x[V3MAVPhysical-52]
	_ = x[V3MACNotDefined-53]
	_ = x[V3MACLow-54]
	_ = x[V3MACHigh-55]
	_ = x[V3MMRNotDefined-56]
	_ = x[V3MPRLow-57]
	_ = x[V3MPRHigh-58]
	_ = x[V3MUINotDefined-59]
	_ = x[V3MUINone-60]
	_ = x[V3MUIRequired-61]
	_ = x[V3MSNotDefined-62]
	_ = x[V3MSUnchanged-63]
	_ = x[V3MSChanged-64]
	_ = x[V3MCNotDefined-65]
	_ = x[V3MCHigh-66]
	_ = x[V3MCLow-67]
	_ = x[V3MCNone-68]
	_ = x[V3MINotDefined-69]
	_ = x[V3MIHigh-70]
	_ = x[V3MILow-71]
	_ = x[V3MINone-72]
	_ = x[V3MANotDefined-73]
	_ = x[V3MAHigh-74]
	_ = x[V3MALow-75]
	_ = x[V3MANone-76]
	_ = x[V3UnknownMetric-77]
}

const _V3Metric_name = "AV:NAV:AAV:LAV:PAC:LAC:HPR:NPR:LPR:HUI:NUI:RS:US:CC:HC:LC:NI:HI:LI:NA:HA:LA:NE:XE:HE:FE:PE:URL:XRL:URL:WRL:TRL:ORC:XRC:CRC:RRC:UCR:XCR:HCR:MCR:LIR:XIR:HIR:MIR:LAR:XAR:HAR:MAR:LMAV:XMAV:NMAV:AMAV:LMAV:PMAC:XMAC:LMAC:HMPR:XMPR:LMPR:HMUI:XMUI:NMUI:RMMS:XMMS:UMMS:CMC:XMC:HMC:LMC:NMI:XMI:HMI:LMI:NMA:XMA:HMA:LMA:Nunknown"

var _V3Metric_index = [...]uint16{0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74, 77, 80, 83, 86, 89, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 148, 152, 156, 160, 164, 168, 172, 176, 181, 186, 191, 196, 201, 206, 211, 216, 221, 226, 231, 236, 241, 246, 251, 256, 261, 265, 269, 273, 277, 281, 285, 289, 293, 297, 301, 305, 309, 316}

func (i V3Metric) String() string {
	if i >= V3Metric(len(_V3Metric_index)-1) {
		return "V3Metric(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _V3Metric_name[_V3Metric_index[i]:_V3Metric_index[i+1]]
}