pkg/ns: refactored so that builds succeed on non-linux platforms
authorAithal <aithal@amazon.com>
Sat, 18 Feb 2017 01:04:53 +0000 (17:04 -0800)
committerAithal <aithal@amazon.com>
Mon, 20 Feb 2017 18:00:55 +0000 (10:00 -0800)
commitc3cde444806f8a89c7029ffd3b024f98748a85a4
tree65fcc58a5f8f7fd39aa8e95ca6c515f2d0481c44
parent6f3b0abcc7d4ba4bee93fd7a5c64d6a06ea162c2
pkg/ns: refactored so that builds succeed on non-linux platforms

moved functions that depend on linux packages (sys/unix) into a separate file
and added nop methods with a build tag for non-linux platforms in a new file.
pkg/ns/ns.go
pkg/ns/ns_linux.go [new file with mode: 0644]
pkg/ns/ns_unspecified.go [new file with mode: 0644]