smokerecord

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package smokerecord folds one passed smoke run into verified.json and images.lock.json. Dev and CI tooling only; output is deterministic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(verifiedPath, lockPath string, t catalog.Template, run Run) error

Apply updates the verified file and the lock file for t. The primary image digest goes on the record; every digest goes on the lock.

func CraneDigests

func CraneDigests(ctx context.Context, refs []string) (map[string]string, error)

CraneDigests resolves every ref with crane, which must be on PATH.

func ParseRefs

func ParseRefs(data []byte) map[string]string

ParseRefs reads lines of "ref digest", the format the admission job writes.

Types

type Run

type Run struct {
	Arch       string
	HTTPStatus int
	RunURL     string
	// Digests maps each pinned image ref to its registry digest.
	Digests map[string]string
}

Run is one passed smoke run for a template.

Jump to

Keyboard shortcuts

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