factory

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 Factory

type Factory interface {
	CreateNetworkInterface(ipv4, ipv6 int, eniType string) (*daemon.ENI, []netip.Addr, []netip.Addr, error)
	AssignNIPv4(eniID string, count int, mac string) ([]netip.Addr, error)
	AssignNIPv6(eniID string, count int, mac string) ([]netip.Addr, error)

	// UnAssignNIPv4 unassign ip from eni, the primary ip is not allowed to unassign
	UnAssignNIPv4(eniID string, ips []netip.Addr, mac string) error
	UnAssignNIPv6(eniID string, ips []netip.Addr, mac string) error

	DeleteNetworkInterface(eniID string) error

	LoadNetworkInterface(mac string) ([]netip.Addr, []netip.Addr, error)

	GetAttachedNetworkInterface(preferTrunkID string) ([]*daemon.ENI, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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