diff

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package diff runs two engine pipelines and classifies their audit deltas.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Audit

type Audit struct {
	Introduced []sdk.Finding
	Resolved   []sdk.Finding
	Persisted  []sdk.Finding
}

Audit groups finding deltas between two audited dependency states.

func AuditSummary

func AuditSummary(baseFindings, headFindings []sdk.Finding) *Audit

AuditSummary computes introduced, resolved, and persisted findings.

type Request

type Request struct {
	Base Target
	Head Target
}

Request defines input for a two-target diff pipeline run.

type Result

type Result struct {
	Base     engine.PipelineResult
	Head     engine.PipelineResult
	Audit    *Audit
	Findings []sdk.Finding
}

Result contains fully resolved pipeline output for a dependency diff.

func Run

func Run(ctx context.Context, req Request) (Result, error)

Run executes the full pipeline for base and head targets and computes audit deltas.

type Target

type Target struct {
	Pipeline *engine.Pipeline
	Request  engine.PipelineRequest
}

Target describes one side of a diff pipeline run.

Jump to

Keyboard shortcuts

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