report

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCapDiff

func WriteCapDiff(w io.Writer, r CapDiffReport)

func WriteCapDiffJSON

func WriteCapDiffJSON(w io.Writer, r CapDiffReport) error

func WriteCapabilities

func WriteCapabilities(w io.Writer, reports []CapabilityReport)

func WriteCapabilitiesJSON

func WriteCapabilitiesJSON(w io.Writer, reports []CapabilityReport) error

func WriteHealth

func WriteHealth(w io.Writer, reports []HealthReport)

func WriteHealthJSON

func WriteHealthJSON(w io.Writer, reports []HealthReport) error

func WriteImpact

func WriteImpact(w io.Writer, r ImpactReport)

func WriteImpactJSON

func WriteImpactJSON(w io.Writer, r ImpactReport) error

func WriteScan

func WriteScan(w io.Writer, r ScanReport)

func WriteScanJSON

func WriteScanJSON(w io.Writer, r ScanReport) error

func WriteScanSARIF

func WriteScanSARIF(w io.Writer, r ScanReport) error

func WriteTaintFindings added in v0.1.9

func WriteTaintFindings(w io.Writer, findings []taint.TaintFinding)

WriteTaintFindings prints the taint flow findings section. Rows are deduplicated by (module, source, sink) so each unique flow appears once.

func WriteUpgrade

func WriteUpgrade(w io.Writer, r UpgradeReport)

func WriteUpgradeJSON

func WriteUpgradeJSON(w io.Writer, r UpgradeReport) error

Types

type BreakingChange

type BreakingChange struct {
	Kind   string
	Symbol string
	OldSig string
	NewSig string
	UsedIn []string
}

type CapDiffReport

type CapDiffReport struct {
	Module     string
	OldVersion string
	NewVersion string
	Diffs      []PackageCapDiff
	Escalated  bool
}

type CapabilityReport

type CapabilityReport struct {
	Package      string
	Module       string
	Capabilities capability.CapabilitySet
	RiskLevel    string
}

type HealthReport

type HealthReport struct {
	Module   string
	Version  string
	Score    int
	Archived bool
	CVECount int
	CVEs     []string
	Signals  map[string]int
}

type ImpactReport

type ImpactReport struct {
	Module           string
	Version          string
	AffectedPackages []string
	AffectedMains    []string
	LOCTouched       int
	Depth            int
}

type PackageCapDiff

type PackageCapDiff struct {
	Package   string
	Added     []string
	Removed   []string
	Escalated bool
}

type ScanReport

type ScanReport struct {
	SchemaVersion string `json:"schema_version,omitempty"`
	GraphChecksum string `json:"graph_checksum,omitempty"`
	Capabilities  []CapabilityReport
	Health        []HealthReport             // only populated with --online
	TaintFindings []taint.TaintFinding       `json:"taint_findings,omitempty"`
	Topology      *topology.TopologyReport   `json:"topology,omitempty"`
	Integrity     *integrity.IntegrityReport `json:"integrity,omitempty"`
	VersionDiff   *versiondiff.DiffReport    `json:"version_diff,omitempty"`
	Passed        bool
	FailReason    string
}

type UpgradeReport

type UpgradeReport struct {
	Module   string
	OldVer   string
	NewVer   string
	Risk     string
	Breaking []BreakingChange
	NewDeps  []string
}

Jump to

Keyboard shortcuts

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