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 ¶
var ErrHelper = errors.New("hyperlight: helper error")
Functions ¶
func HelperFlag ¶
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 PlatformOf ¶
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.