utils

package
v0.9.280 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const RUNTIME_PATTERN = "io.containerd.(.*).v[0-9]+"

Variables

This section is empty.

Functions

func NamespaceFromRoot

func NamespaceFromRoot(root string) string

Extract the namespace from the root path E.g. /run/containerd/runc/default -> default

func PluginForRuntime

func PluginForRuntime(runtime string) string

E.g. io.containerd.runc.v2 -> runc

func RootFromPlugin

func RootFromPlugin(plugin, namespace string) string

Get the root runtime directory for the plugin in namespace (e.g. runc) E.g. /run/containerd/runc/default

func RootFromRuntime added in v0.9.278

func RootFromRuntime(runtime, namespace string) string

Get the root runtime directory for the runtime in namespace (e.g. io.containerd.runc.v2) E.g. /run/containerd/runc/default

func Runtime added in v0.9.278

func Runtime(container *containerd.Containerd) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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