delegate

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delegate

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

Delegate is the delegate for each node use nodeName to lookup node related client

func NewDelegate

func NewDelegate(aliyun register.Interface, client client.Client) *Delegate

func (*Delegate) AssignIpv6Addresses

func (d *Delegate) AssignIpv6Addresses(ctx context.Context, eniID string, count int, idempotentKey string) ([]netip.Addr, error)

func (*Delegate) AssignPrivateIPAddress

func (d *Delegate) AssignPrivateIPAddress(ctx context.Context, eniID string, count int, idempotent string) ([]netip.Addr, error)

func (*Delegate) AttachNetworkInterface

func (d *Delegate) AttachNetworkInterface(ctx context.Context, eniID, instanceID, trunkENIID string) error

func (*Delegate) CreateNetworkInterface

func (d *Delegate) CreateNetworkInterface(ctx context.Context, trunk, erdma bool, vSwitchID string, securityGroups []string, resourceGroupID string, ipCount, ipv6Count int, eniTags map[string]string) (*aliyunClient.NetworkInterface, error)

func (*Delegate) DescribeInstanceTypes

func (d *Delegate) DescribeInstanceTypes(ctx context.Context, types []string) ([]ecs.InstanceType, error)

func (*Delegate) DescribeNetworkInterface

func (d *Delegate) DescribeNetworkInterface(ctx context.Context, vpcID string, eniID []string, instanceID string, instanceType string, status string, tags map[string]string) ([]*aliyunClient.NetworkInterface, error)

func (*Delegate) DescribeVSwitchByID

func (d *Delegate) DescribeVSwitchByID(ctx context.Context, vSwitchID string) (*vpc.VSwitch, error)

func (*Delegate) DetachNetworkInterface

func (d *Delegate) DetachNetworkInterface(ctx context.Context, eniID, instanceID, trunkENIID string) error

func (*Delegate) ModifyNetworkInterfaceAttribute

func (d *Delegate) ModifyNetworkInterfaceAttribute(ctx context.Context, eniID string, securityGroupIDs []string) error

func (*Delegate) UnAssignIpv6Addresses

func (d *Delegate) UnAssignIpv6Addresses(ctx context.Context, eniID string, ips []netip.Addr) error

func (*Delegate) UnAssignPrivateIPAddresses

func (d *Delegate) UnAssignPrivateIPAddresses(ctx context.Context, eniID string, ips []netip.Addr) error

func (*Delegate) WaitForNetworkInterface

func (d *Delegate) WaitForNetworkInterface(ctx context.Context, eniID string, status string, backoff wait.Backoff, ignoreNotExist bool) (*aliyunClient.NetworkInterface, error)

Jump to

Keyboard shortcuts

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