repositorycheck

package
v0.46.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

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

func Compose(input Inputs) (Report, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL