upgradeassembly

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package upgradeassembly authenticates public release evidence and durably publishes the exact offline bundle consumed by the mandatory runtime gate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assemble

func Assemble(ctx context.Context, o Options) error

Assemble verifies all input evidence before atomically publishing a new runtime bundle. It never signs evidence, replaces output or changes trust state.

func ReadDocument

func ReadDocument(path string) ([]byte, error)

ReadDocument reads a bounded, regular public document without following a final symlink. This is intended for independently pinned roots and trust floors.

Types

type Options

type Options struct {
	Pinned            releasetrust.PinnedTrust
	Floor             releaseidentity.SnapshotFloor
	SnapshotDirectory string
	KeysDirectory     string
	OutputDirectory   string
	Releases          []string
	Nightlies         []string
	Bridges           []string
	// NightlyPolicy is the currently published nightly policy when the caller
	// obtained one online; its revocations then apply to every nightly input.
	NightlyPolicy []byte
	// NightlyPlatform selects native binary and metadata inputs for a v2 bundle.
	// Empty preserves complete v1 offline release assembly.
	NightlyPlatform string
}

Options identifies a closed set of public evidence directories. Pinned must come from an independently trusted source. Floor is the installation's durable trust floor; assembly never advances it. OutputDirectory must not exist and its parent must already exist. Inputs are read with bounded, no-follow semantics.

Jump to

Keyboard shortcuts

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