releasecandidate

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 24 Imported by: 0

Documentation

Overview

Package releasecandidate closes the already-qualified core and companion artifacts into one immutable, versioned local publication candidate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallCore

func InstallCore(ctx context.Context, candidateDirectory, store string) (string, error)

InstallCore extracts the host core archive into a new version/platform path. It never writes or changes a current/latest selector, so coexistence and rollback are explicit selection of an already-verified immutable path.

Types

type Asset

type Asset struct {
	Path      string `json:"path"`
	Role      string `json:"role"`
	SHA256    string `json:"sha256"`
	SizeBytes int64  `json:"sizeBytes"`
}

type Manifest

type Manifest struct {
	Profile        string           `json:"profile"`
	Version        string           `json:"version"`
	BuildNumber    string           `json:"buildNumber"`
	CorvintVersion string           `json:"corvintVersion"`
	GoVersion      string           `json:"goVersion"`
	GitVersion     string           `json:"gitVersion"`
	Sources        []SourceIdentity `json:"sources"`
	Assets         []Asset          `json:"assets"`
}

type Options

type Options struct {
	CoreDirectory      string
	CompanionDirectory string
	SourceRoot         string
	Scratch            string
	OutputParent       string
	Version            string
}

type Qualification

type Qualification struct {
	Profile string             `json:"profile"`
	Rows    []QualificationRow `json:"rows"`
}

type QualificationRow

type QualificationRow struct {
	Platform string `json:"platform"`
	Workflow string `json:"workflow"`
	Status   string `json:"status"`
	Evidence string `json:"evidence"`
}

type Result

type Result struct {
	Directory     string
	Manifest      Manifest
	Qualification Qualification
}

func Assemble

func Assemble(ctx context.Context, options Options) (_ *Result, err error)

type SourceIdentity

type SourceIdentity struct {
	Name   string `json:"name"`
	Commit string `json:"commit"`
	Tree   string `json:"tree"`
}

type VerifiedCandidate

type VerifiedCandidate struct {
	Directory     string
	Manifest      Manifest
	Qualification Qualification
	// contains filtered or unexported fields
}

func Verify

func Verify(directory string) (*VerifiedCandidate, error)

Verify admits a closed candidate only when its checksum, manifest asset inventory, and qualification rows agree with every retained regular file.

func VerifyContext

func VerifyContext(ctx context.Context, directory string) (*VerifiedCandidate, error)

VerifyContext is Verify with caller cancellation propagated to the only executed child: the exact host core version probe.

Jump to

Keyboard shortcuts

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