ipam

package
v1.3.0-policy Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 5 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 API

type API interface {
	AllocateENI(ctx context.Context, vSwitch string, securityGroup []string, instanceID string, trunk bool, ipCount int, eniTags map[string]string) (*types.ENI, error)
	GetAttachedENIs(ctx context.Context, containsMainENI bool) ([]*types.ENI, error)
	GetSecondaryENIMACs(ctx context.Context) ([]string, error)
	GetENIByMac(ctx context.Context, mac string) (*types.ENI, error)
	FreeENI(ctx context.Context, eniID string, instanceID string) error
	GetENIIPs(ctx context.Context, mac string) ([]net.IP, []net.IP, error)
	AssignNIPsForENI(ctx context.Context, eniID, mac string, count int) ([]net.IP, []net.IP, error)
	UnAssignIPsForENI(ctx context.Context, eniID, mac string, ipv4s []net.IP, ipv6s []net.IP) error
	GetAttachedSecurityGroups(ctx context.Context, instanceID string) ([]string, error)
	CheckEniSecurityGroup(ctx context.Context, sgIDs []string) error
	DescribeInstanceTypes(ctx context.Context, types []string) ([]ecs.InstanceType, error)

	// FIXME remove vendor for vpc
	DescribeVSwitchByID(ctx context.Context, vSwitch string) (*vpc.VSwitch, error)
	// EIP
	AllocateEipAddress(ctx context.Context, bandwidth int, chargeType types.InternetChargeType, eipID, eniID string, eniIP net.IP, allowRob bool, isp, bandwidthPackageID, poolID string) (*types.EIP, error)
	UnassociateEipAddress(ctx context.Context, eipID, eniID, eniIP string) error
	ReleaseEipAddress(ctx context.Context, eipID, eniID string, eniIP net.IP) error
	QueryEniIDByIP(ctx context.Context, vpcID string, address net.IP) (string, error)
}

API the interface of ecs operation set

Jump to

Keyboard shortcuts

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