Documentation ¶
Overview ¶
Copyright Authors of Baidu AI Cloud SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FinalizerPrimaryENIEndpoint = "primary-eni"
)
Functions ¶
This section is empty.
Types ¶
type ENIManagerServer ¶
type ENIManagerServer interface { // ADD select an available ENI from the ENI list and assign it to the // network endpoint ADD(owner, containerID, netnsPath string) (ipv4Addr, ipv6Addr *models.IPAMAddressResponse, err error) // DEL recycle the endpoint has been recycled and needs to trigger the // reuse of ENI DEL(owner, containerID, netnsPath string) error // GC the eni manager needs to implement the garbage cleaning logic for // the endpoint. When the endpoint no longer exists, it needs to trigger // the ENI release logic. // Warning When releasing ENI, it also involves device management. It is // necessary to move the network device put into the container namespace // to the host namespace, and rename the device when moving. GC() error }
ENIManagerServer It is mainly used when assigning ENI manager, which is mainly applicable to the scenario of exclusive ENI
func NewENIInitFactoryENIM ¶
func NewENIInitFactoryENIM(c ipam.Configuration, watcher *watchers.K8sWatcher) ENIManagerServer
func NewENIManager ¶
func NewENIManager(c ipam.Configuration, watcher *watchers.K8sWatcher) ENIManagerServer
NewENIManager creates a new ENIManager instance. The eni package will wswitch by type of IPAM The ENI manager determines which method to use to manage ENI based on the
type of eni used by the current node:
If Secondary mode is currently used, policy routing will be configured for ENI If the Primary mode is used, the management of endpoint association relationships will be provided for ENI
Click to show internal directories.
Click to hide internal directories.