Documentation ¶
Index ¶
Constants ¶
View Source
const (
MTU = 1500
)
Variables ¶
Functions ¶
Types ¶
type NetnsDriver ¶
type NetnsDriver interface { Setup(hostVeth string, containerVeth string, ipv4Addr *net.IPNet, gateway net.IP, extraRoutes []*types.Route, deviceId int, ingress uint64, egress uint64, netNS ns.NetNS) error Teardown(hostVeth string, containerVeth string, netNS ns.NetNS) error }
NetnsDriver to config container netns interface and routes
var NicDriver NetnsDriver = &rawNicDriver{}
var VethDriver NetnsDriver = &vethDriver{}
Click to show internal directories.
Click to hide internal directories.