report

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintTerminal

func PrintTerminal(report *verify.VerificationReport)

PrintTerminal outputs the verification report to the terminal with colors.

func SignReport

func SignReport(report *verify.VerificationReport, keyID string) error

SignReport adds a GPG attestation signature to the verification report. The signature covers the SHA-256 hash of the report data (excluding the attestation field). NOTE: Any existing attestation on the report is replaced.

func VerifyAttestation

func VerifyAttestation(report *verify.VerificationReport) (bool, error)

VerifyAttestation verifies the GPG signature on a report.

func WriteBatchJSON

func WriteBatchJSON(report *BatchReport, path string) error

WriteBatchJSON writes the batch verification report to a JSON file.

func WriteJSON

func WriteJSON(report *verify.VerificationReport, path string) error

WriteJSON writes the verification report to a JSON file.

Types

type BatchRepoResult

type BatchRepoResult struct {
	SourceRepo string               `json:"source_repo"`
	TargetRepo string               `json:"target_repo"`
	Status     string               `json:"status"` // succeeded, failed, skipped
	Error      string               `json:"error,omitempty"`
	Checks     []verify.CheckResult `json:"checks,omitempty"`
}

BatchRepoResult holds the outcome of a single repo within a batch operation.

type BatchReport

type BatchReport struct {
	SourceOrg    string            `json:"source_org"`
	TargetOrg    string            `json:"target_org"`
	SourceHost   string            `json:"source_host"`
	TargetHost   string            `json:"target_host"`
	SearchFilter string            `json:"search_filter"`
	Timestamp    time.Time         `json:"timestamp"`
	Summary      BatchSummary      `json:"summary"`
	Repos        []BatchRepoResult `json:"repos"`
}

BatchReport is the combined verification report for a batch copy operation.

type BatchSummary

type BatchSummary struct {
	Total           int `json:"total"`
	Succeeded       int `json:"succeeded"`
	Failed          int `json:"failed"`
	Skipped         int `json:"skipped"`
	ReleasesSkipped int `json:"releases_skipped,omitempty"`
}

BatchSummary holds counts for the batch operation.

type VerificationReport

type VerificationReport = verify.VerificationReport

Re-export for convenience

Jump to

Keyboard shortcuts

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