aboutsummaryrefslogtreecommitdiff
path: root/internal/cvss/v2metrickey_string.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cvss/v2metrickey_string.go')
-rw-r--r--internal/cvss/v2metrickey_string.go43
1 files changed, 22 insertions, 21 deletions
diff --git a/internal/cvss/v2metrickey_string.go b/internal/cvss/v2metrickey_string.go
index 52b9834..5017567 100644
--- a/internal/cvss/v2metrickey_string.go
+++ b/internal/cvss/v2metrickey_string.go
@@ -1,4 +1,4 @@
-// Code generated by "stringer -linecomment -type=V2MetricKey"; DO NOT EDIT.
+// Code generated by "stringer -linecomment -type=v2MetricKey"; DO NOT EDIT.
package cvss
@@ -8,29 +8,30 @@ 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]
+ _ = 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]
+ _ = x[v2InvalidMetricKey-14]
}
-const _V2MetricKey_name = "AVACAuCIAERLRCCDPTDCRIRAR"
+const _v2MetricKey_name = "AVACAuCIAERLRCCDPTDCRIRARinvalid"
-var _V2MetricKey_index = [...]uint8{0, 2, 4, 6, 7, 8, 9, 10, 12, 14, 17, 19, 21, 23, 25}
+var _v2MetricKey_index = [...]uint8{0, 2, 4, 6, 7, 8, 9, 10, 12, 14, 17, 19, 21, 23, 25, 32}
-func (i V2MetricKey) String() string {
- if i >= V2MetricKey(len(_V2MetricKey_index)-1) {
- return "V2MetricKey(" + strconv.FormatInt(int64(i), 10) + ")"
+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]]
+ return _v2MetricKey_name[_v2MetricKey_index[i]:_v2MetricKey_index[i+1]]
}