1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg/netlink/netlink_unsupported.go

62 lines
1.1 KiB
Go
Raw Normal View History

// +build !linux !amd64
2013-10-25 00:45:37 -04:00
package netlink
import (
"errors"
2013-10-25 00:45:37 -04:00
"net"
)
var (
ErrNotImplemented = errors.New("not implemented")
)
func NetworkGetRoutes() ([]Route, error) {
return nil, ErrNotImplemented
2013-10-25 00:45:37 -04:00
}
func NetworkLinkAdd(name string, linkType string) error {
return ErrNotImplemented
2013-10-25 00:45:37 -04:00
}
func NetworkLinkUp(iface *net.Interface) error {
return ErrNotImplemented
2013-10-25 00:45:37 -04:00
}
func NetworkLinkAddIp(iface *net.Interface, ip net.IP, ipNet *net.IPNet) error {
return ErrNotImplemented
2013-10-25 00:45:37 -04:00
}
func AddDefaultGw(ip net.IP) error {
return ErrNotImplemented
2013-10-25 00:45:37 -04:00
}
func NetworkSetMTU(iface *net.Interface, mtu int) error {
return ErrNotImplemented
}
func NetworkCreateVethPair(name1, name2 string) error {
return ErrNotImplemented
}
func NetworkChangeName(iface *net.Interface, newName string) error {
return ErrNotImplemented
}
func NetworkSetNsFd(iface *net.Interface, fd int) error {
return ErrNotImplemented
}
func NetworkSetNsPid(iface *net.Interface, nspid int) error {
return ErrNotImplemented
}
func NetworkSetMaster(iface, master *net.Interface) error {
return ErrNotImplemented
}
func NetworkLinkDown(iface *net.Interface) error {
return ErrNotImplemented
}