container

package
v0.0.0-...-9ccd474 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: BSD-3-Clause Imports: 18 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) (creds *NamespaceCreds, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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