Documentation ¶
Index ¶
- func AttachToBridge(br *netlink.Bridge, ifName string, namespace netns.NsHandle) error
- func CreateBridge(name string, namespace netns.NsHandle) (*netlink.Bridge, error)
- func CreateMacVlan(name string, parent string, group int, namespace netns.NsHandle) (*netlink.Macvlan, error)
- func CreateNetns(name string) (netns.NsHandle, error)
- func CreateTbf(ifname string, namespace netns.NsHandle, delay, rate int, bufFactor float64) error
- func CreateVethLink(name string, namespace netns.NsHandle, peerName string, ...) (*netlink.Veth, error)
- func CreateVrf(name string, namespace netns.NsHandle, table int) (*netlink.Vrf, error)
- func DeleteLink(name string, namespace netns.NsHandle) error
- func DeleteNetns(name string) error
- func GetRootNetns() netns.NsHandle
- func IsLinkExist(name string, namespace netns.NsHandle) bool
- func MoveInterfacesNetns(ifNames map[string]IfState, current netns.NsHandle, target netns.NsHandle) error
- func Netem(ifname string, namespace netns.NsHandle, delay int, jitter int, loss float64, ...) error
- func RenameLink(name string, target string, namespace netns.NsHandle) error
- func SetInterfaceState(name string, namespace netns.NsHandle, state IfState) error
- type IfState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachToBridge ¶
func CreateBridge ¶
func CreateMacVlan ¶ added in v0.1.1
func CreateVethLink ¶
func DeleteNetns ¶ added in v0.3.0
func GetRootNetns ¶
func MoveInterfacesNetns ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.