firecrackerbootprobejournal

package
v0.0.0-...-804b954 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package firecrackerbootprobejournal owns the host-instance-exclusive durable launch-intent record required before an M4 Jailer may start.

Index

Constants

This section is empty.

Variables

View Source
var ErrLocked = errors.New("Firecracker boot-probe host-instance journal is already locked")

Functions

This section is empty.

Types

type Journal

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

Journal exclusively owns one absolute host-instance journal path.

func Open

func Open(path string) (*Journal, error)

Open recovers the sole canonical journal record and refuses a second host process.

func (*Journal) Close

func (j *Journal) Close() error

Close releases exclusive host-instance ownership.

func (*Journal) LaunchIntent

func (j *Journal) LaunchIntent() (firecrackerbootprobev2.Session, bool)

LaunchIntent returns the recovered immutable intent, if one was fsynced.

func (*Journal) LaunchSnapshot

func (j *Journal) LaunchSnapshot() (firecrackerbootprobev2.Snapshot, bool)

func (*Journal) StageLaunchIntent

func (j *Journal) StageLaunchIntent(session firecrackerbootprobev2.Session) error

StageLaunchIntent fsyncs exactly the authorized current delivery before launch.

func (*Journal) StageLaunchSnapshot

func (j *Journal) StageLaunchSnapshot(snapshot firecrackerbootprobev2.Snapshot) error

StageLaunchSnapshot persists the exact control CAS version with intent.

Jump to

Keyboard shortcuts

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