container

package
v0.0.0-...-5eca219 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenCgroupFD

func OpenCgroupFD(name string) (int, error)

func Start

func Start(controlSocket *os.File, c *config.Config, cred *NamespaceCreds) (*exec.Cmd, error)

func Wait

func Wait(cmd *exec.Cmd, done <-chan struct{}) error

Wait for process to exit. It is requested to exit via the executor API; the done channel just tells us if it was expected or not.

Types

type NamespaceCreds

type NamespaceCreds struct {
	Container config.Cred
	Executor  config.Cred
}

NamespaceCreds for user namespace.

func ParseCreds

func ParseCreds(c *config.NamespaceConfig) (*NamespaceCreds, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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