namespace

package
v0.9.237-pre Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExternalNamespacesForDump

func AddExternalNamespacesForDump(nsTypes ...configs.NamespaceType) types.Adapter[types.Dump]

If the container is running in a network namespace and has a path to the network namespace configured, we will dump that network namespace as an external namespace and we will expect that the namespace exists during restore. This basically means that CRIU will ignore the namespace and expect to be setup correctly.

func CriuNsToKey

func CriuNsToKey(t configs.NamespaceType) string

lifted from libcontainer

func IgnoreNamespacesForDump

func IgnoreNamespacesForDump(nsTypes ...configs.NamespaceType) types.Adapter[types.Dump]

func IgnoreNamespacesForRestore

func IgnoreNamespacesForRestore(nsTypes ...configs.NamespaceType) types.Adapter[types.Restore]

func InheritExternalNamespacesForRestore

func InheritExternalNamespacesForRestore(nsTypes ...configs.NamespaceType) types.Adapter[types.Restore]

If the container is running in a network or PID namespace and has a path to the network or PID namespace configured, we will dump that network or PID namespace as an external namespace and we will expect that the namespace exists during restore. This basically means that CRIU will ignore the namespace and expect it to be setup correctly.

func JoinOtherExternalNamespacesForRestore

func JoinOtherExternalNamespacesForRestore(next types.Restore) types.Restore

For all other namespaces except NET and PID CRIU has a simpler way of joining the existing namespace if set

Types

This section is empty.

Jump to

Keyboard shortcuts

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