runner

package
v0.0.0-...-2278081 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OverlayLinkFilesToRootFSHandlerName = "fcinit.OverlayLinkFilesToRootFS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OverlayChrootStrategy

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

func NewOverlayChrootStrategy

func NewOverlayChrootStrategy(runner *Runner) OverlayChrootStrategy

func (OverlayChrootStrategy) AdaptHandlers

func (s OverlayChrootStrategy) AdaptHandlers(handlers *firecracker.Handlers) error

func (*OverlayChrootStrategy) OverlayLinkFilesHandler

func (s *OverlayChrootStrategy) OverlayLinkFilesHandler() firecracker.Handler

type Runner

type Runner struct {
	CpuCount   int64
	MemorySize int64
	SMT        bool
	DiskSize   int64

	Interactive bool
	// contains filtered or unexported fields
}

func New

func New(logger *slog.Logger, id string, bridgeInterface string, ipv4 netip.Addr, ipv6 netip.Addr, kernel, filesystem, jailerBinary, firecrackerBinary string, organization string, labels []string, group string, bridgeIPv4 netip.Addr, bridgeIPv6 netip.Addr, ephemeral bool) (*Runner, error)

func (*Runner) ID

func (r *Runner) ID() string

func (*Runner) IPv4

func (r *Runner) IPv4() netip.Addr

func (*Runner) IPv6

func (r *Runner) IPv6() netip.Addr

func (*Runner) Start

func (r *Runner) Start(ctx context.Context, token string) error

func (*Runner) Stop

func (r *Runner) Stop(ctx context.Context) error

func (*Runner) Wait

func (r *Runner) Wait(ctx context.Context) error

Jump to

Keyboard shortcuts

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