mountns

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Executes

func Executes(run func() error) error

Executes runs the closure in a new mount namespace.

NOTE: The caller should not call runtime.UnlockOSThread or fork any new goroutines, because it's risk. The thread in the new mount namespace should be cleanup by Go runtime when it exits without unlock OS thread.

Types

This section is empty.

Jump to

Keyboard shortcuts

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