smokerecord

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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