cruntime

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerStatusCreating = "creating"
	ContainerStatusRunning  = "running"
	ContainerStatusStopped  = "stopped"
	ContainerStatusHang     = "hang"
)

Variables

View Source
var ErrPidExistenceControl = fmt.Errorf("unable to find proccess")

Functions

func AttachContainerToPID

func AttachContainerToPID(containerPid, masterPid int) error

func ContainerInitProc added in v1.9.0

func ContainerInitProc()

Executed at namespace environment before real process

func DeRunContainer

func DeRunContainer(c *config.Config)

func Exec added in v1.8.0

func Exec(c []string, chroot string, user string) (exitCode int, err error)

Execute under container chroot

func IsChild

func IsChild() bool

func IsContainerRuning added in v1.9.0

func IsContainerRuning(name string) (bool, error)

func IsPidRunning

func IsPidRunning(pid int) (bool, error)

func Kill

func Kill(c *config.Config, signal int, second int) error

func KillByName added in v1.9.0

func KillByName(name string, signal int, second int) error

func NewLogWriter added in v1.9.0

func NewLogWriter(name, t string) *containerLog

func Run

func Run(c *config.Config) error

func SendSig

func SendSig(pid, sig int) error

func Touch

func Touch(path string) error

func UmountRootfs

func UmountRootfs(c *config.Config) []error

Types

type User added in v1.9.4

type User struct {
	Credential *syscall.Credential
	User       *os_user.User
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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