agent

package
v0.0.0-...-774bb41 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ENINamePrefix ENI device name prefix
	ENINamePrefix = "cce-eni"
)
View Source
const (
	NatGreLinkName = "natgre"
)

Variables

This section is empty.

Functions

func EnsureRoute

func EnsureRoute(log *logrus.Entry, eniLink netlink.Link, family int, rtTable int, routeDst *net.IPNet) (string, error)

func GenerateENISpec

func GenerateENISpec() (eni *api.ENISpec, err error)

func GetInstanceID

func GetInstanceID() (string, error)

func GetInstanceMetadata

func GetInstanceMetadata() (vpcID, instanceType, instanceSpecType, availabilityZone string, err error)

GetInstanceMetadata get basic metadata information

func GetInstanceType

func GetInstanceType() (metadata.InstanceType, error)

func GetInstanceTypeEx

func GetInstanceTypeEx() (metadata.InstanceTypeEx, error)

func NewPrimaryENIPovider

func NewPrimaryENIPovider(watcher *watchers.K8sWatcher) eniprovider.ENIProvider

NewPrimaryENIPovider create a new primary ENI povider and register it to ENI event handler

func RegisterENIInitFatory

func RegisterENIInitFatory(watcher *watchers.K8sWatcher)

RegisterENIInitFatory create a eniInitFactory and register it to ENI event handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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