namespace

package
v1.0.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(pid int, ns specs.LinuxNamespace) error

Bind creates namespace file at ns.Path and mounts corresponding namespace of process with passed pid to it with unix.MS_BIND flag.

func Remove

func Remove(ns specs.LinuxNamespace) error

Remove unmounts and removes namespace file at ns.Path. Remove doesn't return an error if namespace is not mounted or file doesn't exist.

func UnshareAll

func UnshareAll(namespaces []specs.LinuxNamespace) error

UnshareAll is used to create passed namespaces and save them for the later use. After call to UnshareAll passed namespaces can be found at LinuxNamespace.Path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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