delegate

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) ([]net.IP, error)

func (*Delegate) AssignPrivateIPAddress

func (d *Delegate) AssignPrivateIPAddress(ctx context.Context, eniID string, count int, idempotentKey string) ([]net.IP, 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 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 []net.IP) error

func (*Delegate) UnAssignPrivateIPAddresses

func (d *Delegate) UnAssignPrivateIPAddresses(ctx context.Context, eniID string, ips []net.IP) 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