package
0.8.2
Repository: https://github.com/networkop/koko.git
Documentation: pkg.go.dev

# Functions

AddMacVLanInterface creates MacVLan interface by given macvlan object.
AddVLanInterface creates VLan interface by given vlan object.
AddVxLanInterface creates VxLan interface by given vxlan object.
GetDockerContainerNS retrieves container's network namespace from docker container id, given as containerID.
GetVethPair takes two link names and create a veth pair and returnboth links.
IsExistLinkInNS finds interface name in given namespace.
MakeMacVLan makes macvlan interface.
MakeVeth is top-level handler to create veth links given two VEth data objects: veth1 and veth2.
MakeVethPair makes veth pair and returns its link.
MakeVLan makes vlan interface.
MakeVxLan makes vxlan interface and put it into container namespace.
RandomName returns string "veth" with random prefix (hashed from entropy).

# Structs

MacVLan is a structure to descrive vlan endpoint.
VEth is a structure to descrive veth interfaces.
VLan is a structure to descrive vlan endpoint.
VxLan is a structure to descrive vxlan endpoint.