mirror of https://github.com/k3s-io/k3s
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
727 B
44 lines
727 B
6 years ago
|
// +build !linux
|
||
|
|
||
|
package netns
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
ErrNotImplemented = errors.New("not implemented")
|
||
|
)
|
||
|
|
||
|
func Set(ns NsHandle) (err error) {
|
||
|
return ErrNotImplemented
|
||
|
}
|
||
|
|
||
|
func New() (ns NsHandle, err error) {
|
||
|
return -1, ErrNotImplemented
|
||
|
}
|
||
|
|
||
|
func Get() (NsHandle, error) {
|
||
|
return -1, ErrNotImplemented
|
||
|
}
|
||
|
|
||
|
func GetFromPath(path string) (NsHandle, error) {
|
||
|
return -1, ErrNotImplemented
|
||
|
}
|
||
|
|
||
|
func GetFromName(name string) (NsHandle, error) {
|
||
|
return -1, ErrNotImplemented
|
||
|
}
|
||
|
|
||
|
func GetFromPid(pid int) (NsHandle, error) {
|
||
|
return -1, ErrNotImplemented
|
||
|
}
|
||
|
|
||
|
func GetFromThread(pid, tid int) (NsHandle, error) {
|
||
|
return -1, ErrNotImplemented
|
||
|
}
|
||
|
|
||
|
func GetFromDocker(id string) (NsHandle, error) {
|
||
|
return -1, ErrNotImplemented
|
||
|
}
|