Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessComplexity ¶
type AccessComplexity int
AccessComplexity is metric type for Base Metrics
const ( AccessComplexityUnknown AccessComplexity = iota AccessComplexityHigh AccessComplexityMedium AccessComplexityLow )
Constant of AccessComplexity result
func GetAccessComplexity ¶
func GetAccessComplexity(s string) AccessComplexity
GetAccessComplexity returns result of AccessComplexity metric
func (AccessComplexity) IsDefined ¶
func (ac AccessComplexity) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (AccessComplexity) String ¶
func (ac AccessComplexity) String() string
func (AccessComplexity) Value ¶
func (ac AccessComplexity) Value() float64
Value returns value of AccessComplexity metric
type AccessVector ¶
type AccessVector int
AccessVector is metric type for Base Metrics
const ( AccessVectorUnknown AccessVector = iota AccessVectorLocal AccessVectorAdjacent AccessVectorNetwork )
Constant of AccessVector result
func GetAccessVector ¶
func GetAccessVector(s string) AccessVector
GetAccessVector returns result of AccessVector metric
func (AccessVector) IsDefined ¶
func (av AccessVector) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (AccessVector) String ¶
func (av AccessVector) String() string
func (AccessVector) Value ¶
func (av AccessVector) Value() float64
Value returns value of AccessVector metric
type Authentication ¶
type Authentication int
Authentication is metric type for Base Metrics
const ( AuthenticationUnknown Authentication = iota AuthenticationNone AuthenticationSingle AuthenticationMultiple )
Constant of Authentication result
func GetAuthentication ¶
func GetAuthentication(s string) Authentication
GetAuthentication returns result of Authentication metric
func (Authentication) IsDefined ¶
func (av Authentication) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (Authentication) String ¶
func (av Authentication) String() string
func (Authentication) Value ¶
func (av Authentication) Value() float64
Value returns value of Authentication metric
type AvailabilityImpact ¶
type AvailabilityImpact int
AvailabilityImpact is metric type for Base Metrics
const ( AvailabilityImpactUnknown AvailabilityImpact = iota AvailabilityImpactNone AvailabilityImpactPartial AvailabilityImpactComplete )
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) String ¶
func (ai AvailabilityImpact) String() string
func (AvailabilityImpact) Value ¶
func (ai AvailabilityImpact) Value() float64
Value returns value of AvailabilityImpact metric
type ConfidentialityImpact ¶
type ConfidentialityImpact int
ConfidentialityImpact is metric type for Base Metrics
const ( ConfidentialityImpactUnknown ConfidentialityImpact = iota ConfidentialityImpactNone ConfidentialityImpactPartial ConfidentialityImpactComplete )
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) String ¶
func (ci ConfidentialityImpact) String() string
func (ConfidentialityImpact) Value ¶
func (ci ConfidentialityImpact) Value() float64
Value returns value of ConfidentialityImpact metric
type Exploitability ¶
type Exploitability int
Exploitability is metric type for Temporal Metrics
const ( ExploitabilityNotDefined Exploitability = iota ExploitabilityUnproven ExploitabilityProofOfConcept ExploitabilityFunctional ExploitabilityHigh )
Constant of Exploitability result
func GetExploitability ¶
func GetExploitability(s string) Exploitability
GetExploitability returns result of Exploitability metric
func (Exploitability) IsDefined ¶
func (ai Exploitability) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (Exploitability) String ¶
func (ai Exploitability) String() string
func (Exploitability) Value ¶
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 IntegrityImpactPartial IntegrityImpactComplete )
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) String ¶
func (ii IntegrityImpact) String() string
func (IntegrityImpact) Value ¶
func (ii IntegrityImpact) Value() float64
Value returns value of IntegrityImpact metric
type Metrics ¶
type Metrics struct { AV AccessVector AC AccessComplexity Au Authentication C ConfidentialityImpact I IntegrityImpact A AvailabilityImpact E Exploitability RL RemediationLevel RC ReportConfidence }
Metrics is Base Metrics for CVSSv2
func (*Metrics) GetSeverity ¶
GetSeverity returns severity by score of Base metrics
func (*Metrics) TemporalScore ¶
type RemediationLevel ¶
type RemediationLevel int
RemediationLevel is metric type for Temporal Metrics
const ( RemediationLevelNotDefined RemediationLevel = iota RemediationLevelOfficialFix RemediationLevelTemporaryFix RemediationLevelWorkaround )
Constant of RemediationLevel result
func GetRemediationLevel ¶
func GetRemediationLevel(s string) RemediationLevel
GetRemediationLevel returns result of RemediationLevel metric
func (RemediationLevel) IsDefined ¶
func (ai RemediationLevel) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (RemediationLevel) String ¶
func (ai RemediationLevel) String() string
func (RemediationLevel) Value ¶
func (ai RemediationLevel) Value() float64
Value returns value of RemediationLevel metric
type ReportConfidence ¶
type ReportConfidence int
ReportConfidence is metric type for Temporal Metrics
const ( ReportConfidenceNotDefined ReportConfidence = iota ReportConfidenceUnconfirmed ReportConfidenceUncorroborated ReportConfidenceConfirmed )
Constant of ReportConfidence result
func GetReportConfidence ¶
func GetReportConfidence(s string) ReportConfidence
GetReportConfidence returns result of ReportConfidence metric
func (ReportConfidence) IsDefined ¶
func (ai ReportConfidence) IsDefined() bool
IsDefined returns false if undefined result value of metric
func (ReportConfidence) String ¶
func (ai ReportConfidence) String() string
func (ReportConfidence) Value ¶
func (ai ReportConfidence) Value() float64
Value returns value of ReportConfidence metric