aliyun

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 20 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.ENIConfig) *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

type Eflo added in v1.8.0

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

func NewEflo added in v1.8.0

func NewEflo(ctx context.Context, openAPI *client.OpenAPI, vsw *vswpool.SwitchPool, cfg *types.ENIConfig) *Eflo

func (*Eflo) AssignNIPv4 added in v1.8.0

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

func (*Eflo) AssignNIPv6 added in v1.8.0

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

func (*Eflo) CreateNetworkInterface added in v1.8.0

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

func (*Eflo) DeleteNetworkInterface added in v1.8.0

func (p *Eflo) DeleteNetworkInterface(eniID string) error

func (*Eflo) GetAttachedNetworkInterface added in v1.8.0

func (p *Eflo) GetAttachedNetworkInterface(preferTrunkID string) ([]*daemon.ENI, error)

func (*Eflo) LoadNetworkInterface added in v1.8.0

func (p *Eflo) LoadNetworkInterface(mac string) ([]netip.Addr, []netip.Addr, error)

func (*Eflo) UnAssignNIPv4 added in v1.8.0

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

func (*Eflo) UnAssignNIPv6 added in v1.8.0

func (p *Eflo) 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