Skip to content

Commit

Permalink
Expose named functions when not linux
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFantom authored and jeffwidman committed Oct 28, 2022
1 parent 0c37222 commit e414ad8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions netns_unspecified.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit e414ad8

Please sign in to comment.