starter

package
v0.0.0-...-6898250 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitConfig

type InitConfig struct {
	CmdLine         []string
	Env             []string
	ContainerConfig *runtime.ContainerConfig
	Rootfs          string
	WorkingDir      string
	LogFile         *logutils.ReopenableLogger
}

type Starter

type Starter interface {
	Start() error
	Command() *exec.Cmd
	Wait() error
	Release() error
	ReopenContainerLog() error
	CloseContainerLog() error
}

func NewChrootStarter

func NewChrootStarter(c *InitConfig) (Starter, error)

func NewProotStarter

func NewProotStarter(c *InitConfig) (Starter, error)

func NewRawStarter

func NewRawStarter(c *InitConfig) (Starter, error)

Jump to

Keyboard shortcuts

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