start

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultWatchHostAgentEventsTimeout = 10 * time.Minute

DefaultWatchHostAgentEventsTimeout is the duration to wait for the instance to be running before timing out.

Variables

View Source
var SysProcAttr = &syscall.SysProcAttr{}

Functions

func LimactlShellCmd

func LimactlShellCmd(instName string) string

func Register added in v0.18.0

func Register(ctx context.Context, inst *store.Instance) error

func ShowMessage added in v0.8.0

func ShowMessage(inst *store.Instance) error

func Start

func Start(ctx context.Context, inst *store.Instance) error

Start starts the instance. Start calls Prepare by itself, so you do not need to call Prepare manually before calling Start.

func WithWatchHostAgentTimeout added in v0.14.0

func WithWatchHostAgentTimeout(ctx context.Context, timeout time.Duration) context.Context

WithWatchHostAgentEventsTimeout sets the value of the timeout to use for watchHostAgentEvents in the given Context.

Types

type Prepared added in v0.17.0

type Prepared struct {
	Driver              driver.Driver
	NerdctlArchiveCache string
}

func Prepare added in v0.17.0

func Prepare(_ context.Context, inst *store.Instance) (*Prepared, error)

Prepare ensures the disk, the nerdctl archive, etc.

Jump to

Keyboard shortcuts

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