mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
fbf1a320d8
Bumps [github.com/vishvananda/netlink](https://github.com/vishvananda/netlink) from 1.3.0 to 1.3.1. - [Release notes](https://github.com/vishvananda/netlink/releases) - [Commits](https://github.com/vishvananda/netlink/compare/v1.3.0...v1.3.1) --- updated-dependencies: - dependency-name: github.com/vishvananda/netlink dependency-version: 1.3.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
57 lines
1.1 KiB
Go
57 lines
1.1 KiB
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package netns
|
|
|
|
import "errors"
|
|
|
|
var ErrNotImplemented = errors.New("not implemented")
|
|
|
|
// Setns sets namespace using golang.org/x/sys/unix.Setns on Linux. It
|
|
// is not implemented on other platforms.
|
|
//
|
|
// Deprecated: Use golang.org/x/sys/unix.Setns instead.
|
|
func Setns(ns NsHandle, nstype int) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func Set(ns NsHandle) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func New() (NsHandle, 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
|
|
}
|
|
|
|
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 int, tid int) (NsHandle, error) {
|
|
return -1, ErrNotImplemented
|
|
}
|
|
|
|
func GetFromDocker(id string) (NsHandle, error) {
|
|
return -1, ErrNotImplemented
|
|
}
|