frozen

package
v0.99.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleEntry

type BundleEntry struct {
	Path string
	Data []byte
}

BundleEntry represents a single entry in the bundle.

type FrozenExportResult

type FrozenExportResult struct {
	OK        bool            `json:"ok"`
	Out       string          `json:"out"`
	Manifest  *FrozenManifest `json:"manifest"`
	FileCount int             `json:"file_count"`
}

FrozenExportResult is the result of export.

func ExportFrozenBundle

func ExportFrozenBundle(root, out string) (*FrozenExportResult, error)

ExportFrozenBundle exports a frozen bundle.

type FrozenImportResult

type FrozenImportResult struct {
	OK        bool     `json:"ok"`
	DryRun    bool     `json:"dry_run"`
	Target    string   `json:"target"`
	Planned   []string `json:"planned"`
	Written   []string `json:"written"`
	Skipped   []string `json:"skipped"`
	Conflicts []string `json:"conflicts"`
	Errors    []string `json:"errors"`
}

FrozenImportResult is the result of import.

func ImportFrozenBundle

func ImportFrozenBundle(bundlePath, target string, dryRun, merge, force bool) (*FrozenImportResult, error)

ImportFrozenBundle imports a frozen bundle.

type FrozenManifest

type FrozenManifest struct {
	SchemaVersion      string               `json:"schema_version"`
	BundleID           string               `json:"bundle_id"`
	XHarnessVersion    string               `json:"x_harness_version"`
	CreatedAt          string               `json:"created_at"`
	SourceCommit       string               `json:"source_commit"`
	MaturityLevel      string               `json:"maturity_level"`
	Benchmark          map[string]any       `json:"benchmark"`
	IncludedComponents []string             `json:"included_components"`
	Files              []FrozenManifestFile `json:"files"`
	Signing            map[string]any       `json:"signing"`
}

FrozenManifest represents the bundle manifest.

type FrozenManifestFile

type FrozenManifestFile struct {
	Path   string `json:"path"`
	Sha256 string `json:"sha256"`
	Size   int    `json:"size"`
}

FrozenManifestFile represents a single file in the manifest.

type FrozenVerifyResult

type FrozenVerifyResult struct {
	OK         bool            `json:"ok"`
	BundlePath string          `json:"bundle_path"`
	Manifest   *FrozenManifest `json:"manifest"`
	FileCount  int             `json:"file_count"`
	Errors     []string        `json:"errors"`
}

FrozenVerifyResult is the result of verify.

func VerifyFrozenBundle

func VerifyFrozenBundle(bundlePath string) (*FrozenVerifyResult, error)

VerifyFrozenBundle verifies a frozen bundle.

Jump to

Keyboard shortcuts

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