child

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Child

func Child(opt Opt) error

func NewNetNsWithPathWithoutEnter

func NewNetNsWithPathWithoutEnter(p string) error

Types

type Opt

type Opt struct {
	PipeFDEnvKey              string              // needs to be set
	RunActivationHelperEnvKey string              // needs to be set
	ChildUseActivationEnvKey  string              // needs to be set
	StateDirEnvKey            string              // needs to be set
	TargetCmd                 []string            // needs to be set
	NetworkDriver             network.ChildDriver // nil for HostNetwork
	CopyUpDriver              copyup.ChildDriver  // cannot be nil if len(CopyUpDirs) != 0
	CopyUpDirs                []string
	DetachNetNS               bool
	PortDriver                port.ChildDriver
	MountProcfs               bool   // needs to be set if (and only if) parent.Opt.CreatePIDNS is set
	Propagation               string // mount propagation type
	Reaper                    bool
	EvacuateCgroup2           bool // needs to correspond to parent.Opt.EvacuateCgroup2 is set
}

Jump to

Keyboard shortcuts

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