aliyun

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aliyun

type Aliyun struct {
	// contains filtered or unexported fields
}

Aliyun the local eni factory impl for aliyun.

func NewAliyun

func NewAliyun(ctx context.Context, openAPI *client.OpenAPI, getter eni.ENIInfoGetter, vsw *vswpool.SwitchPool, cfg *types.PoolConfig) *Aliyun

func (*Aliyun) AssignNIPv4

func (a *Aliyun) AssignNIPv4(eniID string, count int, mac string) ([]netip.Addr, error)

func (*Aliyun) AssignNIPv6

func (a *Aliyun) AssignNIPv6(eniID string, count int, mac string) ([]netip.Addr, error)

func (*Aliyun) CreateNetworkInterface

func (a *Aliyun) CreateNetworkInterface(ipv4, ipv6 int, eniType string) (*daemon.ENI, []netip.Addr, []netip.Addr, error)

func (*Aliyun) DeleteNetworkInterface

func (a *Aliyun) DeleteNetworkInterface(eniID string) error

func (*Aliyun) GetAttachedNetworkInterface

func (a *Aliyun) GetAttachedNetworkInterface(trunkENIID string) ([]*daemon.ENI, error)

func (*Aliyun) LoadNetworkInterface

func (a *Aliyun) LoadNetworkInterface(mac string) (ipv4Set []netip.Addr, ipv6Set []netip.Addr, err error)

func (*Aliyun) UnAssignNIPv4

func (a *Aliyun) UnAssignNIPv4(eniID string, ips []netip.Addr, mac string) error

func (*Aliyun) UnAssignNIPv6

func (a *Aliyun) UnAssignNIPv6(eniID string, ips []netip.Addr, mac string) error

Jump to

Keyboard shortcuts

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