Documentation
¶
Index ¶
- func NewVsockDialer(vsockSocket string, vsockCID int64) hypervisor.VsockDialer
- func SetCustomBinaryPath(path string)
- type Firecracker
- func (f *Firecracker) Capabilities() hypervisor.Capabilities
- func (f *Firecracker) DeleteVM(ctx context.Context) error
- func (f *Firecracker) GetVMInfo(ctx context.Context) (*hypervisor.VMInfo, error)
- func (f *Firecracker) Pause(ctx context.Context) error
- func (f *Firecracker) ResizeMemory(ctx context.Context, bytes int64) error
- func (f *Firecracker) ResizeMemoryAndWait(ctx context.Context, bytes int64, timeout time.Duration) error
- func (f *Firecracker) Resume(ctx context.Context) error
- func (f *Firecracker) Shutdown(ctx context.Context) error
- func (f *Firecracker) Snapshot(ctx context.Context, destPath string) error
- type Starter
- func (s *Starter) GetBinaryPath(p *paths.Paths, version string) (string, error)
- func (s *Starter) GetVersion(p *paths.Paths) (string, error)
- func (s *Starter) PrepareFork(ctx context.Context, req hypervisor.ForkPrepareRequest) (hypervisor.ForkPrepareResult, error)
- func (s *Starter) RestoreVM(ctx context.Context, p *paths.Paths, version string, socketPath string, ...) (int, hypervisor.Hypervisor, error)
- func (s *Starter) SocketName() string
- func (s *Starter) StartVM(ctx context.Context, p *paths.Paths, version string, socketPath string, ...) (int, hypervisor.Hypervisor, error)
- type Version
- type VsockDialer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVsockDialer ¶
func NewVsockDialer(vsockSocket string, vsockCID int64) hypervisor.VsockDialer
func SetCustomBinaryPath ¶
func SetCustomBinaryPath(path string)
SetCustomBinaryPath configures a runtime override for the firecracker binary. When set, this path always takes precedence over embedded binaries.
Types ¶
type Firecracker ¶
type Firecracker struct {
// contains filtered or unexported fields
}
Firecracker implements hypervisor.Hypervisor for the Firecracker VMM.
func New ¶
func New(socketPath string) (*Firecracker, error)
func (*Firecracker) Capabilities ¶
func (f *Firecracker) Capabilities() hypervisor.Capabilities
func (*Firecracker) GetVMInfo ¶
func (f *Firecracker) GetVMInfo(ctx context.Context) (*hypervisor.VMInfo, error)
func (*Firecracker) ResizeMemory ¶
func (f *Firecracker) ResizeMemory(ctx context.Context, bytes int64) error
func (*Firecracker) ResizeMemoryAndWait ¶
type Starter ¶
type Starter struct{}
Starter implements hypervisor.VMStarter for Firecracker.
func NewStarter ¶
func NewStarter() *Starter
func (*Starter) GetBinaryPath ¶
func (*Starter) PrepareFork ¶
func (s *Starter) PrepareFork(ctx context.Context, req hypervisor.ForkPrepareRequest) (hypervisor.ForkPrepareResult, error)
PrepareFork updates Firecracker restore metadata for forked snapshots. Firecracker snapshot restore supports network overrides, but does not expose a public API for rewriting other snapshotted device paths. For standby/running forks, we persist source/target directory mapping so RestoreVM can temporarily alias source paths during snapshot load.
func (*Starter) SocketName ¶
func (*Starter) StartVM ¶
func (s *Starter) StartVM(ctx context.Context, p *paths.Paths, version string, socketPath string, config hypervisor.VMConfig) (int, hypervisor.Hypervisor, error)
type VsockDialer ¶
type VsockDialer struct {
// contains filtered or unexported fields
}
func (*VsockDialer) Key ¶
func (d *VsockDialer) Key() string
Click to show internal directories.
Click to hide internal directories.