2014-08-31 20:47:35 +00:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package netns
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrNotImplemented = errors.New("not implemented")
|
|
|
|
)
|
|
|
|
|
2022-07-11 14:06:45 +00:00
|
|
|
func Setns(ns NsHandle, nstype int) (err error) {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-05-20 18:19:57 +00:00
|
|
|
func Set(ns NsHandle) (err error) {
|
2014-08-31 20:47:35 +00:00
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-05-20 18:19:57 +00:00
|
|
|
func New() (ns NsHandle, err error) {
|
2014-08-31 20:47:35 +00:00
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2022-07-11 14:06:45 +00:00
|
|
|
func NewNamed(name string) (NsHandle, error) {
|
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func DeleteNamed(name string) error {
|
|
|
|
return ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-05-20 18:19:57 +00:00
|
|
|
func Get() (NsHandle, error) {
|
2014-08-31 20:47:35 +00:00
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-17 19:34:24 +00:00
|
|
|
func GetFromPath(path string) (NsHandle, error) {
|
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-05-20 18:19:57 +00:00
|
|
|
func GetFromName(name string) (NsHandle, error) {
|
2014-08-31 20:47:35 +00:00
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-05-20 18:19:57 +00:00
|
|
|
func GetFromPid(pid int) (NsHandle, error) {
|
2014-08-31 20:47:35 +00:00
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2016-12-17 19:34:24 +00:00
|
|
|
func GetFromThread(pid, tid int) (NsHandle, error) {
|
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2015-05-20 18:19:57 +00:00
|
|
|
func GetFromDocker(id string) (NsHandle, error) {
|
2014-08-31 20:47:35 +00:00
|
|
|
return -1, ErrNotImplemented
|
|
|
|
}
|