github.com/vishvananda/netns
Package netns allows ultra-simple network namespace handling. NsHandles can be retrieved and set. Note that the current namespace is thread local so actions that set and reset namespaces should use LockOSThread to make sure the namespace doesn't change due to a goroutine switch. It is best to close NsHandles when you are done with them. This can be accomplished via a `defer ns.Close()` on the handle. Changing namespaces requires elevated privileges, so in most cases this code needs to be run as root.
Ecosystem
proxy.golang.org
proxy.golang.org
Latest Release
over 1 year ago
v0.0.5
over 1 year ago
Versions
5
5
Dependent Packages
2,918
2,918
Dependent Repos
21,989
21,989
Loading...
Readme
Loading...
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/vishvananda/netns
spec |
| License | Apache-2.0 |
| Namespace | github.com/vishvananda |
| First Release | over 3 years ago |
| Last Synced | about 2 hours ago |
Repository
| Stars | 403 on GitHub |
| Forks | 134 on GitHub |
| Docker Dependents | 3,359 |
| Docker Downloads | 15,164,733,358 |
| Commits | 71 |
| Committers | 42 |
| Avg per Author | 1.69 |
| DDS | 0.845 |
Rankings on proxy.golang.org
Overall
Top 1.1%
Dependent packages
Top 0.1%
Dependent repos
Top 0.1%
Forks
Top 2.3%
Docker downloads
Top 0.1%