diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-01-31 11:09:58 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-01-31 11:09:58 -0500 |
commit | b3dc36421f133ea6983574891720e974cf7974dd (patch) | |
tree | c6375903fa820bd0ac64ce40827c2c8302d38737 /internal/cvss/v3metric_string.go | |
download | cvez-b3dc36421f133ea6983574891720e974cf7974dd.tar.bz2 cvez-b3dc36421f133ea6983574891720e974cf7974dd.zip |
initial commit
Diffstat (limited to 'internal/cvss/v3metric_string.go')
-rw-r--r-- | internal/cvss/v3metric_string.go | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/internal/cvss/v3metric_string.go b/internal/cvss/v3metric_string.go new file mode 100644 index 0000000..e59b024 --- /dev/null +++ b/internal/cvss/v3metric_string.go @@ -0,0 +1,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]] +} |