Code to accompany the "Namespaces in Go" series of articles.
- Part 1: Linux Namespaces
- Part 2: Namespaces in Go - Basics
- Part 3: Namespaces in Go - User
- Part 4: Namespaces in Go - reexec
- Part 5: Namespaces in Go - Mount
- Part 6: Namespaces in Go - Network
- Part 7: Namespaces in Go - UTS
Each of the code extracts in the articles reference a git tag, which can be checked out from this repo. The code is buildable and runnable at each tag, but note that it will only run successfully on Linux machines.
The test suite isn't explicitly mentioned in the articles, but if you'd like to run the tests you'll need to install ginkgo and gomega. Note that some of the tests may require root privileges.