opencodecodec

package
v1.48.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package opencodecodec contains pure private composition comparisons. Callers must separately authenticate the OS parent and retain its original lifetime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SameCoordinateCalibration

func SameCoordinateCalibration(rawKind string, sourceLo, sourceHi, nativeLo, nativeHi, bound int64) bool

SameCoordinateCalibration compares source-before/source-after with the Go anchor. Each source upper endpoint already contains its fixed quantum; it must not be expanded again or derived from a sender's errorNS. Recognizing a native coordinate grants no row/image qualification.

func ValidOriginalNativeAge

func ValidOriginalNativeAge(key ImageKey, candidate Candidate, mode string) bool

ValidOriginalNativeAge validates trusted metadata, never grants an image row.

Types

type Candidate

type Candidate struct {
	Version, Generation string
}

func LookupCandidate

func LookupCandidate(key ImageKey) (Candidate, bool)

type ClockRow

type ClockRow struct {
	OriginalNativeAge                                        string
	ProfileID, CalibrationID, Generation, RawKind            string
	NativeReadBoundNS, ComparisonBoundNS, TranslationBoundNS int64
}

func LookupQualifiedClock

func LookupQualifiedClock(key ImageKey) (ClockRow, bool)

type ImageKey

type ImageKey struct {
	GOOS, GOARCH, Entry, SHA256 string
}

Row data is separate from algorithm bytes. No semantic IDs are frozen here: root must first bind complete source/native evidence to this changed algorithm.

type SourceDescriptor

type SourceDescriptor struct {
	SourceKind, RawKind string
}

SourceDescriptor is a closed implementation selector, not qualification. Actual image/observer custody and source/math evidence must precede row data.

func LookupSourceDescriptor

func LookupSourceDescriptor(goos, goarch string) (SourceDescriptor, bool)

Jump to

Keyboard shortcuts

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