netns/netns_unspecified.go

36 lines
558 B
Go
Raw Normal View History

2014-08-31 20:47:35 +00:00
// +build !linux
package netns
import (
"errors"
)
var (
ErrNotImplemented = errors.New("not implemented")
)
func Set(ns NsHandle) (err error) {
2014-08-31 20:47:35 +00:00
return ErrNotImplemented
}
func New() (ns NsHandle, err error) {
2014-08-31 20:47:35 +00:00
return -1, ErrNotImplemented
}
func Get() (NsHandle, error) {
2014-08-31 20:47:35 +00:00
return -1, ErrNotImplemented
}
func GetFromName(name string) (NsHandle, error) {
2014-08-31 20:47:35 +00:00
return -1, ErrNotImplemented
}
func GetFromPid(pid int) (NsHandle, error) {
2014-08-31 20:47:35 +00:00
return -1, ErrNotImplemented
}
func GetFromDocker(id string) (NsHandle, error) {
2014-08-31 20:47:35 +00:00
return -1, ErrNotImplemented
}