compute

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const RuntimeFirecracker = "firecracker"
View Source
const RuntimeQEMU = "qemu-kvm"
View Source
const RuntimeShellDocker = "shell-docker"

Variables

This section is empty.

Functions

func Capabilities

func Capabilities(runtime string) worker.Descriptor

func New

func New(commandPath ...string) worker.Driver

New preserves the command-backed constructor used by the fleet-worker config loader. Use NewNative for the shell/docker implementation.

func NewFirecracker

func NewFirecracker(engine vmexec.Engine) worker.Driver

NewFirecracker returns a compute driver whose execution is locked to the supplied VM engine and advertised as vm/firecracker.

func NewNative

func NewNative() worker.Driver

NewNative returns the native shell/docker implementation.

func NewQEMU

func NewQEMU(engine vmexec.Engine) worker.Driver

NewQEMU returns a compute driver whose execution is locked to the supplied libvirt QEMU/KVM engine and advertised as vm/qemu-kvm.

Types

type Driver

type Driver struct {
	Runtime string
	// contains filtered or unexported fields
}

Driver owns compute method routing, request lifecycle, cancellation, and outcome construction. Execution is delegated to a backend-specific executor.

func (*Driver) Capabilities

func (d *Driver) Capabilities() worker.Descriptor

func (*Driver) Execute

func (d *Driver) Execute(ctx context.Context, method string, params worker.Params) (worker.Outcome, error)

Jump to

Keyboard shortcuts

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