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
View Source
var PrioMap = map[string]uint32{ string(types.NetworkPrioGuaranteed): netlink.MakeHandle(1, 1), string(types.NetworkPrioBurstable): netlink.MakeHandle(1, 2), string(types.NetworkPrioBestEffort): netlink.MakeHandle(1, 3), "": netlink.MakeHandle(1, 2), }
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
func (*PolicyRoute) Teardown ¶ added in v1.3.0
func (d *PolicyRoute) Teardown(cfg *types.TeardownCfg, netNS ns.NetNS) error
Click to show internal directories.
Click to hide internal directories.