firecracker

package
v0.0.0-...-04feab2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderName = "firecracker"
)

Variables

This section is empty.

Functions

func New

func New(binaryPath string, stateService ports.StateService, ds ports.DiskService, fs afero.Fs) ports.VMProvider

Types

type Provider

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

func (*Provider) Create

func (f *Provider) Create(ctx context.Context, vm *domain.VM) (string, error)

Create will create a new vm.

func (*Provider) Delete

func (f *Provider) Delete(ctx context.Context, name string) error

Delete will delete a running vm.

func (*Provider) HasMetadataService

func (f *Provider) HasMetadataService() bool

func (*Provider) Stop

func (f *Provider) Stop(ctx context.Context, name string) error

Stop will stop a running vm.

Jump to

Keyboard shortcuts

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