bootstrapmanifest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package bootstrapmanifest derives embedded generation identity from canonical catalog bytes without rewriting unchanged generations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Changed              bool      `json:"changed"`
	PreviousGenerationID string    `json:"previous_generation_id,omitempty"`
	GenerationID         string    `json:"generation_id"`
	GeneratedAt          time.Time `json:"generated_at"`
	PayloadChecksum      string    `json:"payload_checksum"`
	PayloadSizeBytes     int64     `json:"payload_size_bytes"`
}

Report describes whether canonical catalog bytes require a new embedded generation.

func Derive

func Derive(reader catalogs.Reader, current *catalogs.BootstrapManifest, generatedAt time.Time) (catalogs.BootstrapManifest, Report, error)

Derive compares canonical reader bytes with the current manifest. Unchanged input returns the exact current identity; changed input gets a new logical ID.

Jump to

Keyboard shortcuts

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