pkg/ns, pkg/types: refactored non linux build fix code to

Make GetCurrentNS platform specific instead of getCurrentThreadNetNSPath
This commit is contained in:
Aithal
2017-02-23 09:50:48 -08:00
parent dff808c98e
commit 46deb7b708
4 changed files with 19 additions and 16 deletions

View File

@ -16,18 +16,21 @@
package ns
func getCurrentThreadNetNSPath() string {
return ""
import "github.com/containernetworking/cni/pkg/types"
// Returns an object representing the current OS thread's network namespace
func GetCurrentNS() (NetNS, error) {
return nil, types.NotImplementedError
}
func NewNS() (NetNS, error) {
return nil, NotImplementedError
return nil, types.NotImplementedError
}
func (ns *netNS) Close() error {
return NotImplementedError
return types.NotImplementedError
}
func (ns *netNS) Set() error {
return NotImplementedError
return types.NotImplementedError
}