Documentation
¶
Overview ¶
Package repositorycheck owns policy-free ordered aggregation of repository check results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitWarnings ¶
func SplitWarnings(result checkresult.Result) (withoutWarnings, warnings checkresult.Result, err error)
SplitWarnings separates a completed owner result for explicitly different aggregate destinations without deriving a rank from evidence.
Types ¶
type Inputs ¶
type Inputs struct {
Tracking Slot
ProducerResults []Slot
OrdinaryAdvisories Slot
TrackingInformation Slot
}
Inputs names the established working-check destinations. Callers place each completed owner result in its semantic slot before aggregation.
type Report ¶
type Report struct {
Result checkresult.Result
// DirectResult excludes aggregate advisories so a direct drift check reports
// only producer-owned failures and explicitly included information.
DirectResult checkresult.Result
// contains filtered or unexported fields
}
Report carries the typed aggregate and its explicitly placed direct result.
func Compose ¶
Compose aggregates completed owner results in their explicit established order. It does not select result destinations from evidence spelling.
func (Report) AggregateAdvisoryResult ¶
func (r Report) AggregateAdvisoryResult() checkresult.Result
AggregateAdvisoryResult returns the typed non-plan Warning and Information partition.
func (Report) TrackingInformationResult ¶
func (r Report) TrackingInformationResult() checkresult.Result
TrackingInformationResult returns the typed aggregate tracking Information partition.
type Slot ¶
type Slot struct {
Result checkresult.Result
IncludeInformationInDirect bool
}
Slot supplies one completed owner result and whether its unranked information contributes to the direct result consumed by repository checks.