Documentation
¶
Index ¶
- Constants
- func NormalizeLimit(limit int) int
- type AdvisoryActionSummary
- type AdvisoryCoverageRequest
- type AdvisoryCoverageSummary
- type AdvisoryDailyImpact
- type AdvisoryItem
- type AdvisoryOccurrenceSummary
- type AdvisoryPage
- type AdvisoryQuery
- type AdvisoryRevisionItem
- type AdvisoryRevisionLink
- type AdvisoryRevisionLinkPage
- type AdvisoryRevisionPage
- type AdvisoryRevisionQuery
- type AdvisoryRiskSummary
- type AssessmentPage
- type AssessmentQuery
- type CoverageState
- type Cursor
- type EvaluationLag
- type OccurrencePage
- type OccurrenceQuery
- type Overview
- type RiskTrend
- type SyncRunItem
- type SyncRunPage
- type SyncRunQuery
- type TransitionPage
- type TransitionQuery
Constants ¶
View Source
const MaxPageSize = 500
Variables ¶
This section is empty.
Functions ¶
func NormalizeLimit ¶
Types ¶
type AdvisoryActionSummary ¶
type AdvisoryActionSummary struct {
States []vulnerabilityaction.ActionStatus
}
type AdvisoryCoverageRequest ¶ added in v0.2.0
type AdvisoryCoverageSummary ¶ added in v0.2.0
type AdvisoryCoverageSummary struct {
State CoverageState
Reason string
}
type AdvisoryDailyImpact ¶ added in v0.2.0
type AdvisoryItem ¶
type AdvisoryItem struct {
Canonical advisory.Canonical `json:"canonical"`
Revision int64 `json:"revision"`
ChangedFields []advisory.ChangedField `json:"changed_fields,omitempty"`
ChangedAt time.Time `json:"changed_at"`
ActiveAffectedCount int64 `json:"active_affected_count"`
AffectedAssetCount int64 `json:"affected_asset_count"`
AffectedComponentCount int64 `json:"affected_component_count"`
RiskPriority int `json:"risk_priority"`
PreviousRiskPriority int `json:"previous_risk_priority"`
RiskTrend RiskTrend `json:"risk_trend"`
RiskScore float64 `json:"risk_score"`
RiskScoreChange float64 `json:"risk_score_change"`
DetectionStates []vulnerabilityoccurrence.State `json:"detection_states,omitempty"`
ActionStates []vulnerabilityaction.ActionStatus `json:"action_states,omitempty"`
LastEvaluation *time.Time `json:"last_evaluation,omitempty"`
CoverageState CoverageState `json:"coverage_state"`
CoverageReason string `json:"coverage_reason"`
}
type AdvisoryPage ¶
type AdvisoryPage struct {
Items []AdvisoryItem `json:"items"`
Next string `json:"next,omitempty"`
}
type AdvisoryQuery ¶
type AdvisoryQuery struct {
AfterID string
Search string
Statuses []advisory.Status
KEV *bool
MinCVSS *float64
MaxCVSS *float64
Source string
Limit int
RiskPriorities []int
RiskTrends []RiskTrend
AffectedAsset string
DetectionStates []vulnerabilityoccurrence.State
ActionStates []vulnerabilityaction.ActionStatus
NoActions bool
}
func (AdvisoryQuery) Normalize ¶
func (q AdvisoryQuery) Normalize() AdvisoryQuery
type AdvisoryRevisionItem ¶
type AdvisoryRevisionLink ¶
type AdvisoryRevisionLinkPage ¶
type AdvisoryRevisionLinkPage struct {
Items []AdvisoryRevisionLink
Truncated bool
}
type AdvisoryRevisionPage ¶
type AdvisoryRevisionPage struct {
Items []AdvisoryRevisionItem `json:"items"`
Next int64 `json:"next,omitempty"`
}
type AdvisoryRevisionQuery ¶
type AdvisoryRiskSummary ¶
type AssessmentPage ¶
type AssessmentPage struct {
Items []vulnerabilityrisk.Assessment `json:"items"`
Next *Cursor `json:"next,omitempty"`
}
type AssessmentQuery ¶
type CoverageState ¶ added in v0.2.0
type CoverageState string
CoverageState describes what persisted inventory and completed reconciliation work can prove for one tenant and advisory. A zero match is deliberately not enough to claim that the advisory was evaluated and did not affect the tenant.
const ( CoverageAffected CoverageState = "affected" CoverageEvaluatedNotAffected CoverageState = "evaluated_not_affected" CoverageNotEvaluated CoverageState = "not_evaluated" CoverageUnsupportedIdentity CoverageState = "unsupported_identity" CoverageIncompleteInventory CoverageState = "incomplete_inventory" )
func (CoverageState) Valid ¶ added in v0.2.0
func (value CoverageState) Valid() bool
type EvaluationLag ¶
type OccurrencePage ¶
type OccurrencePage struct {
Items []vulnerabilityoccurrence.Occurrence `json:"items"`
Next *Cursor `json:"next,omitempty"`
}
type OccurrenceQuery ¶
type Overview ¶
type Overview struct {
EnabledSources int `json:"enabled_sources"`
StaleOrFailedSources int `json:"stale_or_failed_sources"`
LastSuccessfulSync *time.Time `json:"last_successful_sync,omitempty"`
ChangedAdvisories24Hours int64 `json:"changed_advisories_24_hours"`
NewlyDisclosed24Hours int64 `json:"newly_disclosed_24_hours"`
NewlyIngested24Hours int64 `json:"newly_ingested_24_hours"`
NewlyAffectedAssets24Hours int64 `json:"newly_affected_assets_24_hours"`
OldestUnevaluated *EvaluationLag `json:"oldest_unevaluated_revision,omitempty"`
OpenHighCriticalExposure int64 `json:"open_high_critical_exposure"`
PendingRiskActions int64 `json:"pending_risk_actions"`
QueueDepth int `json:"queue_depth"`
DeadLetters int `json:"dead_letters"`
}
type SyncRunItem ¶
type SyncRunItem struct {
Run vulnerabilitysync.Run
Attempts int
DeadLettered bool
}
type SyncRunPage ¶
type SyncRunPage struct {
Items []SyncRunItem
Next *Cursor
}
type SyncRunQuery ¶
type TransitionPage ¶
type TransitionPage struct {
Items []vulnerabilityaction.Transition `json:"items"`
Next *Cursor `json:"next,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.