receipt

package
v0.0.0-...-19d8ef3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package receipt exposes the reproducibility-receipt REST endpoints: emit a content-addressed receipt for a run, and verify a committed receipt against a run's current persisted state (drift detection).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(c *echo.Context) error

Get handles GET /jobs/:id/runs/:run_id/receipt.

It re-derives the run's reproducibility receipt from persisted state and returns it as JSON — a small, content-addressed artifact intended to be committed to git alongside the pipeline. The receipt's `degraded` flag is honest: if any task ran on an unpinned, mutable image tag, the receipt cannot attest reproducibility and says so.

func Verify

func Verify(c *echo.Context) error

Verify handles POST /jobs/:id/runs/:run_id/receipt/verify.

The request body is a previously-emitted (committed) receipt. The handler re-derives the receipt from the run's current persisted state and returns a drift report: whether the run still matches, and if not, every divergence ("image tag mutated: digest mismatch", "manifest changed", …). A run whose tasks were not digest-pinned is reported as degraded and never as a clean match.

Types

This section is empty.

Jump to

Keyboard shortcuts

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