diff options
Diffstat (limited to 'internal/cvss/v3metric_string.go')
-rw-r--r-- | internal/cvss/v3metric_string.go | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/internal/cvss/v3metric_string.go b/internal/cvss/v3metric_string.go deleted file mode 100644 index 612ed83..0000000 --- a/internal/cvss/v3metric_string.go +++ /dev/null @@ -1,100 +0,0 @@ -// 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[v3InvalidMetric-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:Ninvalid" - -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]] -} |