huawei

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: Apache-2.0 Imports: 6 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 {
	Zone      string
	EcsClient *ecs.EcsClient
	EipClient *eip.EipClient
}

func NewClientWithAccessKey

func NewClientWithAccessKey(ak, sk string) *HClient

func (*HClient) DeleteInstances

func (h *HClient) DeleteInstances(serverId []string, delPublicIp bool) (*model.DeleteServersResponse, error)

func (*HClient) Describe

func (h *HClient) Describe(serverId string) (*model.ShowServerResponse, error)

func (*HClient) RunInstances

func (h *HClient) RunInstances(amount int, dryRun bool, bandwidthOut bool) ([]string, error)

Jump to

Keyboard shortcuts

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