package
Version:
v0.6.1
Opens a new window with list of versions in this module.
Published: Oct 28, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package cni provides the core logic to call CNI.
GetNS returns the netns object for the current thread
NewNS creates a new persistent (bind-mounted) network namespace and
returns an object representing that namespace, without switching to it.
Remove removes the CNI network for the given container.
Setup sets up the CNI network for the given container.
UnmountNS unmounts the NS held by the netns object
Source Files
¶
Click to show internal directories.
Click to hide internal directories.