firecracker

package
v0.0.0-...-714ef56 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFirecrackerConfig

func NewFirecrackerConfig(templatename string, data any, outpath string) error

Types

type FirecrackerClient

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

func NewFirecrackerClient

func NewFirecrackerClient(binaryPath string) *FirecrackerClient

func NewFirecrackerClientWithTimeout

func NewFirecrackerClientWithTimeout(binaryPath string, timeout time.Duration) *FirecrackerClient

func (*FirecrackerClient) Start

func (c *FirecrackerClient) Start(configPath string) (*FirecrackerExecution, error)

type FirecrackerExecution

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

func (*FirecrackerExecution) Logs

func (f *FirecrackerExecution) Logs() string

func (*FirecrackerExecution) Process

func (f *FirecrackerExecution) Process() *os.Process

func (*FirecrackerExecution) Status

func (f *FirecrackerExecution) Status() vminfo.Status

func (*FirecrackerExecution) Subscribe

func (f *FirecrackerExecution) Subscribe(cb func(vminfo.Status))

type SimpleTemplateData

type SimpleTemplateData struct {
	KernelImagePath string
	InitRdPath      string
	TpmSocket       string
	MemSize         int
	BootArgs        string
}

type StatusCallback

type StatusCallback func(vminfo.Status)

Jump to

Keyboard shortcuts

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