Versions in this module Expand all Collapse all v0 v0.8.2 Aug 23, 2019 Changes in this version + func AddMacVLanInterface(macvlan MacVLan, devName string) (err error) + func AddVLanInterface(vlan VLan, devName string) (err error) + func AddVxLanInterface(vxlan VxLan, devName string) (err error) + func GetDockerContainerNS(procPrefix, containerID string) (namespace string, err error) + func GetVethPair(name1 string, name2 string) (link1 netlink.Link, link2 netlink.Link, err error) + func IsExistLinkInNS(nsName string, linkName string) (result bool, err error) + func MakeMacVLan(veth1 VEth, macvlan MacVLan) (err error) + func MakeVLan(veth1 VEth, vlan VLan) (err error) + func MakeVeth(veth1 VEth, veth2 VEth) (err error) + func MakeVethPair(name, peer string, mtu int) (netlink.Link, error) + func MakeVxLan(veth1 VEth, vxlan VxLan) (err error) + func RandomName() string + type MacVLan struct + Mode netlink.MacvlanMode + ParentIF string + type VEth struct + IPAddr []net.IPNet + LinkName string + MirrorEgress string + MirrorIngress string + NsName string + func (veth *VEth) RemoveVethLink() (err error) + func (veth *VEth) SetEgressMirror() (err error) + func (veth *VEth) SetIngressMirror() (err error) + func (veth *VEth) SetVethLink(link netlink.Link) (err error) + func (veth *VEth) UnsetEgressMirror() (err error) + func (veth *VEth) UnsetIngressMirror() (err error) + type VLan struct + ID int + ParentIF string + type VxLan struct + ID int + IPAddr net.IP + ParentIF string