aboutsummaryrefslogtreecommitdiff
path: root/internal/cvss/v3metrickey_string.go
blob: 9459daa54d112e89f4e611213ceca3f971c3dd65 (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
// Code generated by "stringer -linecomment -type=V3MetricKey"; 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[V3AttackVector-0]
	_ = x[V3AttackComplexity-1]
	_ = x[V3PrivilegesRequired-2]
	_ = x[V3UserInteraction-3]
	_ = x[V3Scope-4]
	_ = x[V3Confidentiality-5]
	_ = x[V3Integrity-6]
	_ = x[V3Availability-7]
	_ = x[V3ExploitCodeMaturity-8]
	_ = x[V3RemediationLevel-9]
	_ = x[V3ReportConfidence-10]
	_ = x[V3ConfidentialityRequirement-11]
	_ = x[V3IntegrityRequirement-12]
	_ = x[V3AvailabilityRequirement-13]
	_ = x[V3ModifiedAttackVector-14]
	_ = x[V3ModifiedAttackComplexity-15]
	_ = x[V3ModifiedPrivilegesRequired-16]
	_ = x[V3ModifiedUserInteraction-17]
	_ = x[V3ModifiedScope-18]
	_ = x[V3ModifiedConfidentiality-19]
	_ = x[V3ModifiedIntegrity-20]
	_ = x[V3ModifiedAvailability-21]
}

const _V3MetricKey_name = "AVACPRUISCIAERLRCCRIRARMAVMACMPRMUIMSMCMIMA"

var _V3MetricKey_index = [...]uint8{0, 2, 4, 6, 8, 9, 10, 11, 12, 13, 15, 17, 19, 21, 23, 26, 29, 32, 35, 37, 39, 41, 43}

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