2015-05-06 20:09:12 -04:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package netns
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrNotImplemented = errors.New("not implemented")
|
|
|
|
)
|
|
|
|
|
2015-06-05 18:02:56 -04:00
|
|
|
func Set(ns NsHandle) (err error) {
|
2015-05-06 20:09:12 -04:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-06-05 18:02:56 -04:00
|
|
|
func New() (ns NsHandle, err error) {
|
2015-05-06 20:09:12 -04:00
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-06-05 18:02:56 -04:00
|
|
|
func Get() (NsHandle, error) {
|
2015-05-06 20:09:12 -04:00
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-06-05 18:02:56 -04:00
|
|
|
func GetFromName(name string) (NsHandle, error) {
|
2015-05-06 20:09:12 -04:00
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-06-05 18:02:56 -04:00
|
|
|
func GetFromPid(pid int) (NsHandle, error) {
|
2015-05-06 20:09:12 -04:00
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-06-05 18:02:56 -04:00
|
|
|
func GetFromDocker(id string) (NsHandle, error) {
|
2015-05-06 20:09:12 -04:00
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|