Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LinuxLink ¶
type LinuxLink interface { Up() error Down() error SetName(name string) error Ifconfig(ip net.IP, netmask net.IPMask) error SetToNetNs(nspid int, newName string, ip net.IP, mask net.IPMask) error SetToDockerNs(containerID, newName string, ip net.IP, mask net.IPMask) error }
LinuxLink is the main interface towards the outside It describes the API of the link
func LinuxLinkByName ¶
LinuxLinkByName is used to get the link object
type VethLinkPair ¶
type VethLinkPair interface {
SetPeerIntoNetNS(netnspid int, newName string, ip net.IP, mask net.IPMask) error
}
VethLinkPair is the interface of linux veth link pair
func NewVethLinkPair ¶
func NewVethLinkPair(ifcName, peerName string) (VethLinkPair, error)
NewVethLinkPair ...
Click to show internal directories.
Click to hide internal directories.