Documentation ¶
Index ¶
- func AddDefaultRoute(ip net.IP, dev netlink.Link) error
- func AttachVethToBridge(veth netlink.Link, bridge netlink.Link) error
- func CalculateContainerIP(cid int) (net.IP, error)
- func CreateVeth() (netlink.Link, netlink.Link, error)
- func EnableIPForward() error
- func ExecInNS(pid int, fn func() error) error
- func GetCIDR(ip net.IP, mask net.IPMask) string
- func Masquerade(bridge Bridge) error
- type Bridge
- type Container
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableIPForward ¶
func EnableIPForward() error
func Masquerade ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.