starter

package
v0.0.0-...-81cdc2d Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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         *lumberjack.Logger
}

type Starter

type Starter interface {
	Start() error
	Command() *exec.Cmd
	Wait() error
	Release() 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