eniprovider

package
v0.0.0-...-ec72bf4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ENIProvider

type ENIProvider interface {
	// AllocateENI select an available ENI from the ENI list and assign it
	// to the network endpoint
	// Warning that the provider must implement the resource competition mechanism
	// to ensure that the resource application can be processed correctly when the
	// allocate and deallocate are concurrent.
	AllocateENI(ctx context.Context, endpoint *ccev2.ObjectReference) (*ccev2.ENI, error)

	// ReleaseENI frees up a resource assigned to a network endpoint
	// If no endpoint uses ENI, the provider is also required to return success
	//
	// Before calling this function, please make sure netlink is already in the
	// initial namespace.
	ReleaseENI(ctx context.Context, endpoint *ccev2.ObjectReference) error
}

ENIProvider manages ENI configuration for different platforms

Jump to

Keyboard shortcuts

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