aboutsummaryrefslogtreecommitdiff
path: root/internal/cvss/v2metrickey_string.go
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-01-31 11:09:58 -0500
committerPaul Duncan <pabs@pablotron.org>2022-01-31 11:09:58 -0500
commitb3dc36421f133ea6983574891720e974cf7974dd (patch)
treec6375903fa820bd0ac64ce40827c2c8302d38737 /internal/cvss/v2metrickey_string.go
downloadcvez-b3dc36421f133ea6983574891720e974cf7974dd.tar.bz2
cvez-b3dc36421f133ea6983574891720e974cf7974dd.zip
initial commit
Diffstat (limited to 'internal/cvss/v2metrickey_string.go')
-rw-r--r--internal/cvss/v2metrickey_string.go36
1 files changed, 36 insertions, 0 deletions
diff --git a/internal/cvss/v2metrickey_string.go b/internal/cvss/v2metrickey_string.go
new file mode 100644
index 0000000..52b9834
--- /dev/null
+++ b/internal/cvss/v2metrickey_string.go
@@ -0,0 +1,36 @@
+// Code generated by "stringer -linecomment -type=V2MetricKey"; 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[V2AccessVector-0]
+ _ = x[V2AccessComplexity-1]
+ _ = x[V2Authentication-2]
+ _ = x[V2ConfidentialityImpact-3]
+ _ = x[V2IntegrityImpact-4]
+ _ = x[V2AvailabilityImpact-5]
+ _ = x[V2Exploitability-6]
+ _ = x[V2RemediationLevel-7]
+ _ = x[V2ReportConfidence-8]
+ _ = x[V2CollateralDamagePotential-9]
+ _ = x[V2TargetDistribution-10]
+ _ = x[V2ConfidentialityRequirement-11]
+ _ = x[V2IntegrityRequirement-12]
+ _ = x[V2AvailabilityRequirement-13]
+}
+
+const _V2MetricKey_name = "AVACAuCIAERLRCCDPTDCRIRAR"
+
+var _V2MetricKey_index = [...]uint8{0, 2, 4, 6, 7, 8, 9, 10, 12, 14, 17, 19, 21, 23, 25}
+
+func (i V2MetricKey) String() string {
+ if i >= V2MetricKey(len(_V2MetricKey_index)-1) {
+ return "V2MetricKey(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _V2MetricKey_name[_V2MetricKey_index[i]:_V2MetricKey_index[i+1]]
+}