Documentation
¶
Index ¶
- Constants
- func FuncShieldNameSeverity() func(sev string) (string, error)
- func IsEqualString(sev, compSev string) (bool, error)
- func IsHigherString(sev, compSev string) (bool, error)
- func IsLowerString(sev, compSev string) (bool, error)
- func NeedsRemediation(sev string) bool
- func ParseSeveritiesString(sevs []string) ([]string, error)
- func SeveritiesAll() []string
- func SeveritiesAnalyzed() []string
- func SeveritiesFinding() []string
- func SeveritiesHigher(sevs []string, sev string, inclusive bool) ([]string, error)
- func SeveritiesLower(sevs []string, sev string, inclusive bool) ([]string, error)
- func SeverityCountColorHex(sev, sevCutoffIncl string, count int) (string, error)
- type MapBool
- type Severity
- type SeverityCountsSet
- type SeverityMapCVSS
Constants ¶
View Source
const ( // Common severities SeverityCritical = "Critical" SeverityHigh = "High" SeverityMedium = "Medium" SeverityLow = "Low" SeverityInformational = "Informational" SeverityNone = "None" SeverityUnknown = "Unknown" SeverityPlusNeedsRemediation = "Needs Remediation" )
Variables ¶
This section is empty.
Functions ¶
func FuncShieldNameSeverity ¶ added in v0.9.0
func IsEqualString ¶ added in v0.9.2
IsEqualString tests if `sev` is of equal severity to the refererence severity `refSev`.
func IsHigherString ¶ added in v0.9.2
IsHigherString tests if `sev` is of higher severity than the refererence severity `refSev`.
func IsLowerString ¶ added in v0.9.2
IsLowerString tests if `sev` is of lower severity than the refererence severity `refSev`.
func NeedsRemediation ¶ added in v0.9.2
func ParseSeveritiesString ¶ added in v0.9.2
func SeveritiesAll ¶
func SeveritiesAll() []string
func SeveritiesAnalyzed ¶
func SeveritiesAnalyzed() []string
func SeveritiesFinding ¶
func SeveritiesFinding() []string
func SeveritiesHigher ¶ added in v0.4.0
SeveritiesHigher returns a subset of the provided severities with elements that with a lower index than the provided severity. The provided severities mus be ranked from high to low.
func SeveritiesLower ¶ added in v0.5.0
SeveritiesLower returns a subset of the provided severities with elements that with a higher index than the provided severity. The provided severities mus be ranked from high to low.
Types ¶
type MapBool ¶
func NewMapBool ¶
type Severity ¶ added in v0.9.0
type Severity int
func ParseSeverities ¶ added in v0.7.0
func (Severity) NeedsRemediation ¶ added in v0.9.2
type SeverityCountsSet ¶ added in v0.9.0
type SeverityMapCVSS ¶ added in v0.7.0
func NewSeverityMapCVSSSeveritiesOnly ¶ added in v0.7.0
func NewSeverityMapCVSSSeveritiesOnly(severities []string) (SeverityMapCVSS, error)
func NewSeverityMapFromFloat32 ¶
func NewSeverityMapFromFloat32(m map[string]float32) (SeverityMapCVSS, error)
func SeverityMapScoreDefault ¶ added in v0.4.0
func SeverityMapScoreDefault() SeverityMapCVSS
func (SeverityMapCVSS) SeverityFromScore ¶ added in v0.7.0
func (sm SeverityMapCVSS) SeverityFromScore(score decimal.Decimal) (string, error)
func (SeverityMapCVSS) SeverityFromScoreFloat32 ¶ added in v0.7.0
func (sm SeverityMapCVSS) SeverityFromScoreFloat32(score float32) (string, error)
Click to show internal directories.
Click to hide internal directories.