Documentation ¶
Index ¶
- Variables
- type AttackComplexity
- type AttackVector
- type AvailabilityImpact
- type AvailabilityRequirement
- type CVSSReport
- type ConfidentialityImpact
- type ConfidentialityRequirement
- type Exploitability
- type IntegrityImpact
- type IntegrityRequirement
- type Metrics
- func (m *Metrics) Encode() (string, error)
- func (m *Metrics) EnvironmentalScore() float64
- func (m *Metrics) GetError() error
- func (m *Metrics) GetSeverity() Severity
- func (m *Metrics) NameOfvalue(lang language.Tag) string
- func (m *Metrics) Report(r io.Reader, lang language.Tag) (io.Reader, error)
- func (m *Metrics) Score() float64
- func (m *Metrics) TemporalScore() float64
- func (m *Metrics) Title(lang language.Tag) string
- type ModifiedAttackComplexity
- type ModifiedAttackVector
- type ModifiedAvailabilityImpact
- type ModifiedConfidentialityImpact
- type ModifiedIntegrityImpact
- type ModifiedPrivilegesRequired
- type ModifiedScope
- type ModifiedUserInteraction
- type PrivilegesRequired
- type RemediationLevel
- type ReportConfidence
- type Scope
- type Severity
- type UserInteraction
Constants ¶
This section is empty.
Variables ¶
var AvailabilityRequirementMap = map[AvailabilityRequirement]string{ AvailabilityRequirementNotDefined: "X", AvailabilityRequirementLow: "L", AvailabilityRequirementMedium: "M", AvailabilityRequirementHigh: "H", }
var AvailabilityRequirementValueMap = map[AvailabilityRequirement]float64{ AvailabilityRequirementNotDefined: 1, AvailabilityRequirementLow: 0.5, AvailabilityRequirementMedium: 1, AvailabilityRequirementHigh: 1.5, }
var ConfidentialityRequirementMap = map[ConfidentialityRequirement]string{ ConfidentialityRequirementNotDefined: "X", ConfidentialityRequirementLow: "L", ConfidentialityRequirementMedium: "M", ConfidentialityRequirementHigh: "H", }
var ConfidentialityRequirementValueMap = map[ConfidentialityRequirement]float64{ ConfidentialityRequirementNotDefined: 1, ConfidentialityRequirementLow: 0.5, ConfidentialityRequirementMedium: 1, ConfidentialityRequirementHigh: 1.5, }
var ExploitabilityMap = map[Exploitability]string{ ExploitabilityNotDefined: "X", ExploitabilityUnproven: "U", ExploitabilityProofOfConcept: "P", ExploitabilityFunctional: "F", ExploitabilityHigh: "H", }
var ExploitabilityValueMap = map[Exploitability]float64{ ExploitabilityNotDefined: 1, ExploitabilityUnproven: 0.91, ExploitabilityProofOfConcept: 0.94, ExploitabilityFunctional: 0.97, ExploitabilityHigh: 1, }
var IntegrityRequirementMap = map[IntegrityRequirement]string{ IntegrityRequirementNotDefined: "X", IntegrityRequirementLow: "L", IntegrityRequirementMedium: "M", IntegrityRequirementHigh: "H", }
var IntegrityRequirementValueMap = map[IntegrityRequirement]float64{ IntegrityRequirementNotDefined: 1, IntegrityRequirementLow: 0.5, IntegrityRequirementMedium: 1, IntegrityRequirementHigh: 1.5, }
var ModifiedAttackComplexityMap = map[ModifiedAttackComplexity]string{ ModifiedAttackComplexityNotDefined: "X", ModifiedAttackComplexityHigh: "H", ModifiedAttackComplexityLow: "L", }
var ModifiedAttackComplexityValueMap = map[ModifiedAttackComplexity]float64{ ModifiedAttackComplexityHigh: 0.44, ModifiedAttackComplexityLow: 0.77, }
var ModifiedAttackVectorMap = map[ModifiedAttackVector]string{ ModifiedAttackVectorNotDefined: "X", ModifiedAttackVectorPhysical: "P", ModifiedAttackVectorLocal: "L", ModifiedAttackVectorAdjacent: "A", ModifiedAttackVectorNetwork: "N", }
var ModifiedAttackVectorValueMap = map[ModifiedAttackVector]float64{ ModifiedAttackVectorNotDefined: 0, ModifiedAttackVectorPhysical: 0.20, ModifiedAttackVectorLocal: 0.55, ModifiedAttackVectorAdjacent: 0.62, ModifiedAttackVectorNetwork: 0.85, }
var ModifiedAvailabilityImpactMap = map[ModifiedAvailabilityImpact]string{ ModifiedAvailabilityImpactNotDefined: "X", ModifiedAvailabilityImpactNone: "N", ModifiedAvailabilityImpactLow: "L", ModifiedAvailabilityImpactHigh: "H", }
var ModifiedAvailabilityImpactValueMap = map[ModifiedAvailabilityImpact]float64{ ModifiedAvailabilityImpactNone: 0.00, ModifiedAvailabilityImpactLow: 0.22, ModifiedAvailabilityImpactHigh: 0.56, }
var ModifiedConfidentialityImpactMap = map[ModifiedConfidentialityImpact]string{ ModifiedConfidentialityImpactNotDefined: "X", ModifiedConfidentialityImpactNone: "N", ModifiedConfidentialityImpactLow: "L", ModifiedConfidentialityImpactHigh: "H", }
var ModifiedConfidentialityImpactValueMap = map[ModifiedConfidentialityImpact]float64{ ModifiedConfidentialityImpactNone: 0.00, ModifiedConfidentialityImpactLow: 0.22, ModifiedConfidentialityImpactHigh: 0.56, }
var ModifiedIntegrityImpactMap = map[ModifiedIntegrityImpact]string{ ModifiedIntegrityImpactNotDefined: "X", ModifiedIntegrityImpactNone: "N", ModifiedIntegrityImpactLow: "L", ModifiedIntegrityImpactHigh: "H", }
var ModifiedIntegrityImpactValueMap = map[ModifiedIntegrityImpact]float64{ ModifiedIntegrityImpactNone: 0.00, ModifiedIntegrityImpactLow: 0.22, ModifiedIntegrityImpactHigh: 0.56, }
var ModifiedPrivilegesRequiredMap = map[ModifiedPrivilegesRequired]string{ ModifiedPrivilegesRequiredNotDefined: "X", ModifiedPrivilegesRequiredHigh: "H", ModifiedPrivilegesRequiredLow: "L", ModifiedPrivilegesRequiredNone: "N", }
var ModifiedPrivilegesRequiredWithCValueMap = map[ModifiedPrivilegesRequired]float64{ ModifiedPrivilegesRequiredNotDefined: 0.85, ModifiedPrivilegesRequiredHigh: 0.50, ModifiedPrivilegesRequiredLow: 0.68, ModifiedPrivilegesRequiredNone: 0.85, }
var ModifiedPrivilegesRequiredWithUValueMap = map[ModifiedPrivilegesRequired]float64{ ModifiedPrivilegesRequiredNotDefined: 0.85, ModifiedPrivilegesRequiredHigh: 0.27, ModifiedPrivilegesRequiredLow: 0.62, ModifiedPrivilegesRequiredNone: 0.85, }
var ModifiedScopeMap = map[ModifiedScope]string{ ModifiedScopeNotDefined: "X", ModifiedScopeUnchanged: "U", ModifiedScopeChanged: "C", }
var ModifiedUserInteractionMap = map[ModifiedUserInteraction]string{ ModifiedUserInteractionNotDefined: "X", ModifiedUserInteractionRequired: "R", ModifiedUserInteractionNone: "N", }
var ModifiedUserInteractionValueMap = map[ModifiedUserInteraction]float64{ ModifiedUserInteractionRequired: 0.62, ModifiedUserInteractionNone: 0.85, }
var RemediationLevelMap = map[RemediationLevel]string{ RemediationLevelNotDefined: "X", RemediationLevelOfficialFix: "O", RemediationLevelTemporaryFix: "T", RemediationLevelWorkaround: "W", RemediationLevelUnavailable: "U", }
var RemediationLevelValueMap = map[RemediationLevel]float64{ RemediationLevelNotDefined: 1, RemediationLevelOfficialFix: 0.95, RemediationLevelTemporaryFix: 0.96, RemediationLevelWorkaround: 0.97, RemediationLevelUnavailable: 1, }
var ReportConfidenceMap = map[ReportConfidence]string{ ReportConfidenceNotDefined: "X", ReportConfidenceUnknown: "U", ReportConfidenceReasonable: "R", ReportConfidenceConfirmed: "C", }
var ReportConfidenceValueMap = map[ReportConfidence]float64{ ReportConfidenceNotDefined: 1, ReportConfidenceUnknown: 0.92, ReportConfidenceReasonable: 0.96, ReportConfidenceConfirmed: 1, }
Functions ¶
This section is empty.
Types ¶
type AttackComplexity ¶
type AttackComplexity int
AttackComplexity is metric type for Base Metrics
const ( AttackComplexityUnknown AttackComplexity = iota AttackComplexityHigh AttackComplexityLow )
Constant of AttackComplexity result
func GetAttackComplexity ¶
func GetAttackComplexity(s string) AttackComplexity
GetAttackComplexity returns result of AttackComplexity metric
func (AttackComplexity) IsDefined ¶
func (ac AttackComplexity) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (AttackComplexity) NameOfValue ¶
func (ac AttackComplexity) NameOfValue(lang language.Tag) string
NameOfValue returns string name of value for display
func (AttackComplexity) String ¶
func (ac AttackComplexity) String() string
func (AttackComplexity) Title ¶
func (ac AttackComplexity) Title(lang language.Tag) string
Title returns string instance name for display
func (AttackComplexity) Value ¶
func (ac AttackComplexity) Value() float64
Value returns value of AttackComplexity metric
type AttackVector ¶
type AttackVector int
AttackVector is metric type for Base Metrics
const ( AttackVectorUnknown AttackVector = iota AttackVectorPhysical AttackVectorLocal AttackVectorAdjacent AttackVectorNetwork )
Constant of AttackVector result
func GetAttackVector ¶
func GetAttackVector(s string) AttackVector
GetAttackVector returns result of AttackVector metric
func (AttackVector) IsDefined ¶
func (av AttackVector) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (AttackVector) NameOfValue ¶
func (av AttackVector) NameOfValue(lang language.Tag) string
NameOfValue returns string name of value for display
func (AttackVector) String ¶
func (av AttackVector) String() string
func (AttackVector) Title ¶
func (av AttackVector) Title(lang language.Tag) string
Title returns string instance name for display
func (AttackVector) Value ¶
func (av AttackVector) Value() float64
Value returns value of AttackVector metric
type AvailabilityImpact ¶
type AvailabilityImpact int
AvailabilityImpact is metric type for Base Metrics
const ( AvailabilityImpactUnknown AvailabilityImpact = iota AvailabilityImpactNone AvailabilityImpactLow AvailabilityImpactHigh )
Constant of AvailabilityImpact result
func GetAvailabilityImpact ¶
func GetAvailabilityImpact(s string) AvailabilityImpact
GetAvailabilityImpact returns result of AvailabilityImpact metric
func (AvailabilityImpact) IsDefined ¶
func (ai AvailabilityImpact) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (AvailabilityImpact) NameOfValue ¶
func (a AvailabilityImpact) NameOfValue(lang language.Tag) string
NameOfValue returns string name of value for display
func (AvailabilityImpact) String ¶
func (ai AvailabilityImpact) String() string
func (AvailabilityImpact) Title ¶
func (a AvailabilityImpact) Title(lang language.Tag) string
Title returns string instance name for display
func (AvailabilityImpact) Value ¶
func (ai AvailabilityImpact) Value() float64
Value returns value of AvailabilityImpact metric
type AvailabilityRequirement ¶ added in v1.1.0
type AvailabilityRequirement int
AttackVector is metric type for Base Metrics
const ( AvailabilityRequirementNotDefined AvailabilityRequirement = iota AvailabilityRequirementLow AvailabilityRequirementMedium AvailabilityRequirementHigh )
Constant of AttackVector result
func GetAvailabilityRequirement ¶ added in v1.1.0
func GetAvailabilityRequirement(s string) AvailabilityRequirement
GetAvailabilityRequirement returns result of ConfidentalityRequirement metric
func (AvailabilityRequirement) IsDefined ¶ added in v1.1.0
func (ar AvailabilityRequirement) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (AvailabilityRequirement) String ¶ added in v1.1.0
func (ar AvailabilityRequirement) String() string
func (AvailabilityRequirement) Value ¶ added in v1.1.0
func (ar AvailabilityRequirement) Value() float64
Value returns value of AttackVector metric
type CVSSReport ¶
type CVSSReport struct {
BaseMetrics, MetricValue string //titles
AVName, AVValue string //AttackVector
ACName, ACValue string //AttackComplexity
PRName, PRValue string //PrivilegesRequired
UIName, UIValue string //UserInteraction
SName, SValue string //Scope
CName, CValue string //ConfidentialityImpact
IName, IValue string //IntegrityImpact
AName, AValue string //AvailabilityImpact
}
CVSSReport is dataset for CVSS report
type ConfidentialityImpact ¶
type ConfidentialityImpact int
ConfidentialityImpact is metric type for Base Metrics
const ( ConfidentialityImpactUnknown ConfidentialityImpact = iota ConfidentialityImpactNone ConfidentialityImpactLow ConfidentialityImpactHigh )
Constant of ConfidentialityImpact result
func GetConfidentialityImpact ¶
func GetConfidentialityImpact(s string) ConfidentialityImpact
GetConfidentialityImpact returns result of ConfidentialityImpact metric
func (ConfidentialityImpact) IsDefined ¶
func (ci ConfidentialityImpact) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ConfidentialityImpact) NameOfValue ¶
func (c ConfidentialityImpact) NameOfValue(lang language.Tag) string
NameOfValue returns string name of value for display
func (ConfidentialityImpact) String ¶
func (ci ConfidentialityImpact) String() string
func (ConfidentialityImpact) Title ¶
func (c ConfidentialityImpact) Title(lang language.Tag) string
Title returns string instance name for display
func (ConfidentialityImpact) Value ¶
func (ci ConfidentialityImpact) Value() float64
Value returns value of ConfidentialityImpact metric
type ConfidentialityRequirement ¶ added in v1.1.0
type ConfidentialityRequirement int
AttackVector is metric type for Base Metrics
const ( ConfidentialityRequirementNotDefined ConfidentialityRequirement = iota ConfidentialityRequirementLow ConfidentialityRequirementMedium ConfidentialityRequirementHigh )
Constant of AttackVector result
func GetConfidentialityRequirement ¶ added in v1.1.0
func GetConfidentialityRequirement(s string) ConfidentialityRequirement
GetConfidentialityRequirement returns result of ConfidentalityRequirement metric
func (ConfidentialityRequirement) IsDefined ¶ added in v1.1.0
func (cr ConfidentialityRequirement) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ConfidentialityRequirement) String ¶ added in v1.1.0
func (cr ConfidentialityRequirement) String() string
func (ConfidentialityRequirement) Value ¶ added in v1.1.0
func (cr ConfidentialityRequirement) Value() float64
Value returns value of AttackVector metric
type Exploitability ¶ added in v1.1.0
type Exploitability int
Exploitability is metric type for Temporal Metrics
const ( ExploitabilityNotDefined Exploitability = iota ExploitabilityUnproven ExploitabilityProofOfConcept ExploitabilityFunctional ExploitabilityHigh )
Constant of Exploitability result
func GetExploitability ¶ added in v1.1.0
func GetExploitability(s string) Exploitability
GetExploitability returns result of Exploitability metric
func (Exploitability) IsDefined ¶ added in v1.1.0
func (ai Exploitability) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (Exploitability) String ¶ added in v1.1.0
func (ai Exploitability) String() string
func (Exploitability) Value ¶ added in v1.1.0
func (ai Exploitability) Value() float64
Value returns value of Exploitability metric
type IntegrityImpact ¶
type IntegrityImpact int
IntegrityImpact is metric type for Base Metrics
const ( IntegrityImpactUnknown IntegrityImpact = iota IntegrityImpactNone IntegrityImpactLow IntegrityImpactHigh )
Constant of IntegrityImpact result
func GetIntegrityImpact ¶
func GetIntegrityImpact(s string) IntegrityImpact
GetIntegrityImpact returns result of IntegrityImpact metric
func (IntegrityImpact) IsDefined ¶
func (ii IntegrityImpact) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (IntegrityImpact) NameOfValue ¶
func (i IntegrityImpact) NameOfValue(lang language.Tag) string
NameOfValue returns string name of value for display
func (IntegrityImpact) String ¶
func (ii IntegrityImpact) String() string
func (IntegrityImpact) Title ¶
func (i IntegrityImpact) Title(lang language.Tag) string
Title returns string instance name for display
func (IntegrityImpact) Value ¶
func (ii IntegrityImpact) Value() float64
Value returns value of IntegrityImpact metric
type IntegrityRequirement ¶ added in v1.1.0
type IntegrityRequirement int
AttackVector is metric type for Base Metrics
const ( IntegrityRequirementNotDefined IntegrityRequirement = iota IntegrityRequirementLow IntegrityRequirementMedium IntegrityRequirementHigh )
Constant of AttackVector result
func GetIntegrityRequirement ¶ added in v1.1.0
func GetIntegrityRequirement(s string) IntegrityRequirement
GetIntegrityRequirement returns result of ConfidentalityRequirement metric
func (IntegrityRequirement) IsDefined ¶ added in v1.1.0
func (ir IntegrityRequirement) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (IntegrityRequirement) String ¶ added in v1.1.0
func (ir IntegrityRequirement) String() string
func (IntegrityRequirement) Value ¶ added in v1.1.0
func (ir IntegrityRequirement) Value() float64
Value returns value of AttackVector metric
type Metrics ¶
type Metrics struct { Ver version.Num AV AttackVector AC AttackComplexity PR PrivilegesRequired UI UserInteraction S Scope C ConfidentialityImpact I IntegrityImpact A AvailabilityImpact E Exploitability RL RemediationLevel RC ReportConfidence CR ConfidentialityRequirement IR IntegrityRequirement AR AvailabilityRequirement MAV ModifiedAttackVector MAC ModifiedAttackComplexity MPR ModifiedPrivilegesRequired MUI ModifiedUserInteraction MS ModifiedScope MC ModifiedConfidentialityImpact MI ModifiedIntegrityImpact MA ModifiedAvailabilityImpact }
Metrics is Base Metrics for CVSSv3
func (*Metrics) EnvironmentalScore ¶ added in v1.1.0
func (*Metrics) GetSeverity ¶
GetSeverity returns severity by score of Base metrics
func (*Metrics) NameOfvalue ¶
NameOfvalue returns string instance name for display
func (*Metrics) TemporalScore ¶ added in v1.1.0
type ModifiedAttackComplexity ¶ added in v1.1.0
type ModifiedAttackComplexity int
ModifiedAttackComplexity is metric type for Base Metrics
const ( ModifiedAttackComplexityNotDefined ModifiedAttackComplexity = iota ModifiedAttackComplexityHigh ModifiedAttackComplexityLow )
Constant of ModifiedAttackComplexity result
func GetModifiedAttackComplexity ¶ added in v1.1.0
func GetModifiedAttackComplexity(s string) ModifiedAttackComplexity
GetModifiedAttackComplexity returns result of ModifiedAttackComplexity metric
func (ModifiedAttackComplexity) IsDefined ¶ added in v1.1.0
func (mac ModifiedAttackComplexity) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ModifiedAttackComplexity) String ¶ added in v1.1.0
func (mac ModifiedAttackComplexity) String() string
func (ModifiedAttackComplexity) Value ¶ added in v1.1.0
func (mac ModifiedAttackComplexity) Value() float64
Value returns value of ModifiedAttackComplexity metric
type ModifiedAttackVector ¶ added in v1.1.0
type ModifiedAttackVector int
ModifiedAttackVector is metric type for Base Metrics
const ( ModifiedAttackVectorNotDefined ModifiedAttackVector = iota ModifiedAttackVectorPhysical ModifiedAttackVectorLocal ModifiedAttackVectorAdjacent ModifiedAttackVectorNetwork )
Constant of ModifiedAttackVector result
func GetModifiedAttackVector ¶ added in v1.1.0
func GetModifiedAttackVector(s string) ModifiedAttackVector
GetModifiedAttackVector returns result of ModifiedAttackVector metric
func (ModifiedAttackVector) IsDefined ¶ added in v1.1.0
func (mav ModifiedAttackVector) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ModifiedAttackVector) String ¶ added in v1.1.0
func (mav ModifiedAttackVector) String() string
func (ModifiedAttackVector) Value ¶ added in v1.1.0
func (mav ModifiedAttackVector) Value() float64
Value returns value of ModifiedAttackVector metric
type ModifiedAvailabilityImpact ¶ added in v1.1.0
type ModifiedAvailabilityImpact int
ModifiedAvailabilityImpact is metric type for Base Metrics
const ( ModifiedAvailabilityImpactNotDefined ModifiedAvailabilityImpact = iota ModifiedAvailabilityImpactNone ModifiedAvailabilityImpactLow ModifiedAvailabilityImpactHigh )
Constant of ModifiedAvailabilityImpact result
func GetModifiedAvailabilityImpact ¶ added in v1.1.0
func GetModifiedAvailabilityImpact(s string) ModifiedAvailabilityImpact
GetModifiedAvailabilityImpact returns result of ModifiedAvailabilityImpact metric
func (ModifiedAvailabilityImpact) IsDefined ¶ added in v1.1.0
func (mai ModifiedAvailabilityImpact) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ModifiedAvailabilityImpact) String ¶ added in v1.1.0
func (mai ModifiedAvailabilityImpact) String() string
func (ModifiedAvailabilityImpact) Value ¶ added in v1.1.0
func (mai ModifiedAvailabilityImpact) Value() float64
Value returns value of ModifiedAvailabilityImpact metric
type ModifiedConfidentialityImpact ¶ added in v1.1.0
type ModifiedConfidentialityImpact int
ModifiedConfidentialityImpact is metric type for Base Metrics
const ( ModifiedConfidentialityImpactNotDefined ModifiedConfidentialityImpact = iota ModifiedConfidentialityImpactNone ModifiedConfidentialityImpactLow ModifiedConfidentialityImpactHigh )
Constant of ModifiedConfidentialityImpact result
func GetModifiedConfidentialityImpact ¶ added in v1.1.0
func GetModifiedConfidentialityImpact(s string) ModifiedConfidentialityImpact
GetModifiedConfidentialityImpact returns result of ModifiedConfidentialityImpact metric
func (ModifiedConfidentialityImpact) IsDefined ¶ added in v1.1.0
func (mci ModifiedConfidentialityImpact) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ModifiedConfidentialityImpact) String ¶ added in v1.1.0
func (mci ModifiedConfidentialityImpact) String() string
func (ModifiedConfidentialityImpact) Value ¶ added in v1.1.0
func (mci ModifiedConfidentialityImpact) Value() float64
Value returns value of ModifiedConfidentialityImpact metric
type ModifiedIntegrityImpact ¶ added in v1.1.0
type ModifiedIntegrityImpact int
ModifiedIntegrityImpact is metric type for Base Metrics
const ( ModifiedIntegrityImpactNotDefined ModifiedIntegrityImpact = iota ModifiedIntegrityImpactNone ModifiedIntegrityImpactLow ModifiedIntegrityImpactHigh )
Constant of ModifiedIntegrityImpact result
func GetModifiedIntegrityImpact ¶ added in v1.1.0
func GetModifiedIntegrityImpact(s string) ModifiedIntegrityImpact
GetModifiedIntegrityImpact returns result of ModifiedIntegrityImpact metric
func (ModifiedIntegrityImpact) IsDefined ¶ added in v1.1.0
func (mii ModifiedIntegrityImpact) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ModifiedIntegrityImpact) String ¶ added in v1.1.0
func (mii ModifiedIntegrityImpact) String() string
func (ModifiedIntegrityImpact) Value ¶ added in v1.1.0
func (mii ModifiedIntegrityImpact) Value() float64
Value returns value of ModifiedIntegrityImpact metric
type ModifiedPrivilegesRequired ¶ added in v1.1.0
type ModifiedPrivilegesRequired int
ModifiedPrivilegesRequired is metric type for Base Metrics
const ( ModifiedPrivilegesRequiredUnknown ModifiedPrivilegesRequired = iota ModifiedPrivilegesRequiredNotDefined ModifiedPrivilegesRequiredHigh ModifiedPrivilegesRequiredLow ModifiedPrivilegesRequiredNone )
Constant of ModifiedPrivilegesRequired result
func GetModifiedPrivilegesRequired ¶ added in v1.1.0
func GetModifiedPrivilegesRequired(s string) ModifiedPrivilegesRequired
GetModifiedPrivilegesRequired returns result of ModifiedPrivilegesRequired metric
func (ModifiedPrivilegesRequired) IsDefined ¶ added in v1.1.0
func (mpr ModifiedPrivilegesRequired) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ModifiedPrivilegesRequired) String ¶ added in v1.1.0
func (mpr ModifiedPrivilegesRequired) String() string
func (ModifiedPrivilegesRequired) Value ¶ added in v1.1.0
func (mpr ModifiedPrivilegesRequired) Value(s Scope) float64
Value returns value of ModifiedPrivilegesRequired metric
type ModifiedScope ¶ added in v1.1.0
type ModifiedScope int
ModifiedScope is metric type for Base Metrics
const ( ModifiedScopeNotDefined ModifiedScope = iota ModifiedScopeUnchanged ModifiedScopeChanged )
Constant of ModifiedScope result
func GetModifiedScope ¶ added in v1.1.0
func GetModifiedScope(s string) ModifiedScope
GetModifiedScope returns result of ModifiedScope metric
func (ModifiedScope) IsDefined ¶ added in v1.1.0
func (msc ModifiedScope) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ModifiedScope) String ¶ added in v1.1.0
func (msc ModifiedScope) String() string
type ModifiedUserInteraction ¶ added in v1.1.0
type ModifiedUserInteraction int
ModifiedUserInteraction is metric type for Base Metrics
const ( ModifiedUserInteractionNotDefined ModifiedUserInteraction = iota ModifiedUserInteractionRequired ModifiedUserInteractionNone )
Constant of ModifiedUserInteraction result
func GetModifiedUserInteraction ¶ added in v1.1.0
func GetModifiedUserInteraction(s string) ModifiedUserInteraction
GetModifiedUserInteraction returns result of ModifiedUserInteraction metric
func (ModifiedUserInteraction) IsDefined ¶ added in v1.1.0
func (mui ModifiedUserInteraction) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ModifiedUserInteraction) String ¶ added in v1.1.0
func (mui ModifiedUserInteraction) String() string
func (ModifiedUserInteraction) Value ¶ added in v1.1.0
func (mui ModifiedUserInteraction) Value() float64
Value returns value of ModifiedUserInteraction metric
type PrivilegesRequired ¶
type PrivilegesRequired int
PrivilegesRequired is metric type for Base Metrics
const ( PrivilegesRequiredUnknown PrivilegesRequired = iota PrivilegesRequiredHigh PrivilegesRequiredLow PrivilegesRequiredNone )
Constant of PrivilegesRequired result
func GetPrivilegesRequired ¶
func GetPrivilegesRequired(s string) PrivilegesRequired
GetPrivilegesRequired returns result of PrivilegesRequired metric
func (PrivilegesRequired) IsDefined ¶
func (pr PrivilegesRequired) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (PrivilegesRequired) NameOfValue ¶
func (pr PrivilegesRequired) NameOfValue(lang language.Tag) string
NameOfValue returns string name of value for display
func (PrivilegesRequired) String ¶
func (pr PrivilegesRequired) String() string
func (PrivilegesRequired) Title ¶
func (pr PrivilegesRequired) Title(lang language.Tag) string
Title returns string instance name for display
func (PrivilegesRequired) Value ¶
func (pr PrivilegesRequired) Value(s Scope) float64
Value returns value of PrivilegesRequired metric
type RemediationLevel ¶ added in v1.1.0
type RemediationLevel int
RemediationLevel is metric type for Temporal Metrics
const ( RemediationLevelNotDefined RemediationLevel = iota RemediationLevelOfficialFix RemediationLevelTemporaryFix RemediationLevelWorkaround )
Constant of RemediationLevel result
func GetRemediationLevel ¶ added in v1.1.0
func GetRemediationLevel(s string) RemediationLevel
GetRemediationLevel returns result of RemediationLevel metric
func (RemediationLevel) IsDefined ¶ added in v1.1.0
func (ai RemediationLevel) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (RemediationLevel) String ¶ added in v1.1.0
func (ai RemediationLevel) String() string
func (RemediationLevel) Value ¶ added in v1.1.0
func (ai RemediationLevel) Value() float64
Value returns value of RemediationLevel metric
type ReportConfidence ¶ added in v1.1.0
type ReportConfidence int
ReportConfidence is metric type for Temporal Metrics
const ( ReportConfidenceNotDefined ReportConfidence = iota ReportConfidenceUnknown ReportConfidenceReasonable ReportConfidenceConfirmed )
Constant of ReportConfidence result
func GetReportConfidence ¶ added in v1.1.0
func GetReportConfidence(s string) ReportConfidence
GetReportConfidence returns result of ReportConfidence metric
func (ReportConfidence) IsDefined ¶ added in v1.1.0
func (ai ReportConfidence) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ReportConfidence) String ¶ added in v1.1.0
func (ai ReportConfidence) String() string
func (ReportConfidence) Value ¶ added in v1.1.0
func (ai ReportConfidence) Value() float64
Value returns value of ReportConfidence metric
type Scope ¶
type Scope int
Scope is metric type for Base Metrics
func (Scope) NameOfValue ¶
NameOfValue returns string name of value for display
type Severity ¶
type Severity int
Severity is severity for Base Metrics
const ( SeverityUnknown Severity = iota SeverityNone SeverityLow SeverityMedium SeverityHigh SeverityCritical )
Constant of severity
func (Severity) NameOfValue ¶
NameOfValue returns string name of value for display
type UserInteraction ¶
type UserInteraction int
UserInteraction is metric type for Base Metrics
const ( UserInteractionUnknown UserInteraction = iota UserInteractionRequired UserInteractionNone )
Constant of UserInteraction result
func GetUserInteraction ¶
func GetUserInteraction(s string) UserInteraction
GetUserInteraction returns result of UserInteraction metric
func (UserInteraction) IsDefined ¶
func (ui UserInteraction) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (UserInteraction) NameOfValue ¶
func (ui UserInteraction) NameOfValue(lang language.Tag) string
NameOfValue returns string name of value for display
func (UserInteraction) String ¶
func (ui UserInteraction) String() string
func (UserInteraction) Title ¶
func (ui UserInteraction) Title(lang language.Tag) string
Title returns string instance name for display
func (UserInteraction) Value ¶
func (ui UserInteraction) Value() float64
Value returns value of UserInteraction metric
Source Files ¶
- base.go
- metric-a.go
- metric-ac.go
- metric-ar.go
- metric-av.go
- metric-c.go
- metric-cr.go
- metric-i.go
- metric-ir.go
- metric-ma.go
- metric-mac.go
- metric-mav.go
- metric-mc.go
- metric-mi.go
- metric-mpr.go
- metric-ms.go
- metric-mui.go
- metric-pr.go
- metric-s.go
- metric-ui.go
- metrics-e.go
- metrics-rc.go
- metrics-rl.go
- names-a.go
- names-ac.go
- names-av.go
- names-base.go
- names-c.go
- names-i.go
- names-pr.go
- names-s.go
- names-severity.go
- names-ui.go
- report.go
- severity.go