From e414ad8e04b4f8524eb127231bf548ee85768d88 Mon Sep 17 00:00:00 2001 From: Will Fantom Date: Mon, 11 Jul 2022 15:06:45 +0100 Subject: [PATCH] Expose named functions when not linux --- netns_unspecified.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/netns_unspecified.go b/netns_unspecified.go index d06af62..a78a535 100644 --- a/netns_unspecified.go +++ b/netns_unspecified.go @@ -10,6 +10,10 @@ var ( ErrNotImplemented = errors.New("not implemented") ) +func Setns(ns NsHandle, nstype int) (err error) { + return ErrNotImplemented +} + func Set(ns NsHandle) (err error) { return ErrNotImplemented } @@ -18,6 +22,14 @@ func New() (ns NsHandle, err error) { return -1, ErrNotImplemented } +func NewNamed(name string) (NsHandle, error) { + return -1, ErrNotImplemented +} + +func DeleteNamed(name string) error { + return ErrNotImplemented +} + func Get() (NsHandle, error) { return -1, ErrNotImplemented }