Documentation
¶
Index ¶
Constants ¶
View Source
const ModelVersion = "risk-v1"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Assessment ¶
type Assessment struct {
TenantID shared.ID
ID shared.ID
EngagementID shared.ID
OccurrenceID shared.ID
AdvisoryID string
ComponentFingerprint string
AdvisoryRevision int64
Severity shared.Severity
CVSSVector string
CVSSScore float64
KEV bool
EPSS float64
Scope string
Reachability string
Impact string
FixedVersion string
OccurrenceState string
RiskScore float64
Priority int
ReasonCodes []string
ModelVersion string
InputHash string
PreviousAssessmentID shared.ID
AssessedAt time.Time
CreatedAt time.Time
}
func (Assessment) Validate ¶
func (a Assessment) Validate() error
type Input ¶
type Input struct {
TenantID shared.ID
EngagementID shared.ID
OccurrenceID shared.ID
AdvisoryID string
AdvisoryRevision int64
ComponentFingerprint string
Severity shared.Severity
CVSSVector string
CVSSScore float64
KEV bool
EPSS float64
Scope string
Reachability string
ClassUnreferenced bool
FixedVersion string
OccurrenceState string
ModelVersion string
ReasonCodes []string
}
type Result ¶
type Result struct {
Assessment Assessment
Created bool
}
Click to show internal directories.
Click to hide internal directories.