datapath

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

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

func CheckIPVLanAvailable() (bool, error)

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

type VPCRoute

type VPCRoute struct{}

func NewVPCRoute

func NewVPCRoute() *VPCRoute

func (*VPCRoute) Check

func (d *VPCRoute) Check(cfg *types.CheckConfig) error

func (*VPCRoute) Setup

func (d *VPCRoute) Setup(cfg *types.SetupConfig, netNS ns.NetNS) error

type Vlan

type Vlan struct{}

func NewVlan

func NewVlan() *Vlan

func (*Vlan) Check

func (d *Vlan) Check(cfg *types.CheckConfig) error

func (*Vlan) Setup

func (d *Vlan) Setup(cfg *types.SetupConfig, netNS ns.NetNS) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL