Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LinkIP = net.IPv4(169, 254, 1, 1) LinkIPv6 = net.ParseIP("fe80::1") LinkIPNet = &net.IPNet{ IP: LinkIP, Mask: net.CIDRMask(32, 32), } LinkIPNetv6 = &net.IPNet{ IP: LinkIPv6, Mask: net.CIDRMask(128, 128), } )
default addrs
Functions ¶
func CheckIPVLanAvailable ¶
CheckIPVLanAvailable checks if current kernel version meet the requirement (>= 4.19)
Types ¶
type ExclusiveENI ¶
type ExclusiveENI struct{}
ExclusiveENI put nic in net ns
func NewExclusiveENIDriver ¶
func NewExclusiveENIDriver() *ExclusiveENI
func (*ExclusiveENI) Check ¶
func (r *ExclusiveENI) Check(cfg *types.CheckConfig) error
func (*ExclusiveENI) Setup ¶
func (r *ExclusiveENI) Setup(cfg *types.SetupConfig, netNS ns.NetNS) error
type IPvlanDriver ¶
type IPvlanDriver struct{}
func NewIPVlanDriver ¶
func NewIPVlanDriver() *IPvlanDriver
func (*IPvlanDriver) Check ¶
func (d *IPvlanDriver) Check(cfg *types.CheckConfig) error
func (*IPvlanDriver) Setup ¶
func (d *IPvlanDriver) Setup(cfg *types.SetupConfig, netNS ns.NetNS) error
func (*IPvlanDriver) Teardown ¶
func (d *IPvlanDriver) Teardown(cfg *types.TeardownCfg, netNS ns.NetNS) error
type PolicyRoute ¶
type PolicyRoute struct{}
func NewPolicyRoute ¶
func NewPolicyRoute() *PolicyRoute
func (*PolicyRoute) Check ¶
func (d *PolicyRoute) Check(cfg *types.CheckConfig) error
func (*PolicyRoute) Setup ¶
func (d *PolicyRoute) Setup(cfg *types.SetupConfig, netNS ns.NetNS) error
Click to show internal directories.
Click to hide internal directories.