hyperlight

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package hyperlight is the Hyperlight backend through a helper process; it needs Linux. Elsewhere it opens as a backend that refuses every call.

Index

Constants

This section is empty.

Variables

View Source
var ErrHelper = errors.New("hyperlight: helper error")

Functions

func HelperFlag

func HelperFlag(arg string) bool

HelperFlag reports whether arg, a template argument, is one of the flags fiberd itself gives the helper (--guest, --engine, --template-dir) as the protocol's argument grammar reads it (hack/hyperlight/PROTOCOL.md): after one dash or two, the name up to any =. A helper reads no more than that grammar, so no other argument can name a flag, and a helper whose last flag wins never takes the guest, engine or snapshot a template's author named over fiberd's.

func New

func New(Options) backend.Backend

New returns a backend whose every operation fails with backend.ErrUnsupported.

func PlatformOf

func PlatformOf(version string) (artifact.Platform, error)

PlatformOf is the platform a Hyperlight home records for snapshots made through the helper whose `--version` printed version: its facts, mapped as the backend's Platform maps them. A build of a Hyperlight snapshot artifact records it (artifact.BuildOptions.HyperlightSnapshot), so the parity a home checks is against the helper it runs, not the host the artifact was built on.

Types

type Options

type Options struct {
	Helper string
	Guest  string
}

Options configure the Hyperlight backend.

Jump to

Keyboard shortcuts

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