huawei

package
v0.0.0-...-8e6f2e6 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HClient

type HClient struct {
	Count            int32
	Ak               string
	Sk               string
	EcsEndpoint      string
	VpcEndpoint      string
	ProjectId        string
	AvailabilityZone string
	EcsClient        *ecs.EcsClient
	EipClient        *eip.EipClient
}

func GetDefaultHAuth

func GetDefaultHAuth(ak, sk, projectId, AvailabilityZone string) *HClient

func (*HClient) DeleteIp

func (h *HClient) DeleteIp(ipId string) error

func (*HClient) DeleteServer

func (h *HClient) DeleteServer(serverId string, delPublicIp bool)

func (*HClient) GenerateEipServer

func (h *HClient) GenerateEipServer(count, sizePostPaidServerEipBandwidth, sizePostPaidServerRootVolume int32, eip bool, FlavorRef, ImageRef, Vpcid, SubnetId, adminPass, keyName string) []string

func (*HClient) ListIps

func (h *HClient) ListIps() error

func (*HClient) ListServer

func (h *HClient) ListServer()

func (*HClient) Show

func (h *HClient) Show(serverid string)

Jump to

Keyboard shortcuts

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