utils

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SidecarImagePath = getSidecarImagePath()

Functions

func CheckNamespacesExists added in v1.1.10

func CheckNamespacesExists(namespaces []LinuxNamespaceWithInode, wantedTypes ...specs.LinuxNamespaceType) error

func CopyFileFromProcessToBundle

func CopyFileFromProcessToBundle(bundle string, pid int, path string) error

func IsUsingHostNetwork

func IsUsingHostNetwork(pid int) (bool, error)

IsUsingHostNetwork determines weather the given process has the same network as the init process.

func ReadCgroupPath

func ReadCgroupPath(pid int) (string, error)

func ResolveNamespacesUsingInode added in v1.1.10

func ResolveNamespacesUsingInode(namespaces []LinuxNamespaceWithInode) []specs.LinuxNamespace

func RootCommandContext

func RootCommandContext(ctx context.Context, name string, arg ...string) *exec.Cmd

Types

type LinuxNamespaceWithInode added in v1.1.10

type LinuxNamespaceWithInode struct {
	specs.LinuxNamespace
	Inode uint64
}

func ReadNamespaces

func ReadNamespaces(pid int) ([]LinuxNamespaceWithInode, error)

Jump to

Keyboard shortcuts

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