fcversion

package
v0.0.0-...-e7b3cca Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidVersion = errors.New("invalid firecracker version")

ErrInvalidVersion reports a version string that is in none of the known formats. Callers must not fall back to guessing a format.

Functions

This section is empty.

Types

type Info

type Info struct {
	// contains filtered or unexported fields
}

func New

func New(fcVersion string) (info Info, err error)

func (*Info) E2BVersion

func (v *Info) E2BVersion() (e2bVersion semver.Version, ok bool)

E2BVersion returns the e2b release semver carried by e2b-format versions. ok is false for the other formats.

func (*Info) HasFilesystemSnapshots

func (v *Info) HasFilesystemSnapshots() bool

HasFilesystemSnapshots reports whether this build's release contract includes producing filesystem-only (memoryless) snapshots. Callers refuse the request when false — silently taking a memory snapshot instead would betray an explicit memory:false.

func (*Info) HasFreePageHinting

func (v *Info) HasFreePageHinting() bool

func (*Info) HasFreePageReporting

func (v *Info) HasFreePageReporting() bool

func (*Info) HasHugePages

func (v *Info) HasHugePages() bool

func (*Info) HasInPlaceCheckpoint

func (v *Info) HasInPlaceCheckpoint() bool

HasInPlaceCheckpoint reports whether this build's release contract includes the in-place checkpoint (pause, snapshot, resume the same FC process, with the deferred CoW memory export). Callers fall back to the resume-fresh checkpoint when false.

func (*Info) HasMemfd

func (v *Info) HasMemfd() bool

func (*Info) LDKey

func (v *Info) LDKey() (key string, ok bool)

LDKey returns the key this version resolves through in the LaunchDarkly firecracker-versions map: vX.Y for legacy versions, vX.Y-<e2b-major> for e2b-format versions. ok is false for bare upstream versions, which never came from the release pipeline and have no LD line.

func (*Info) Version

func (v *Info) Version() semver.Version

Version returns the upstream Firecracker version. For the e2b format only the release line is known, so patch is always 0.

Jump to

Keyboard shortcuts

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