aliyun

package
v0.0.0-...-5746ace Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliyunCommService

type AliyunCommService struct {
}

func NewAliyunCommService

func NewAliyunCommService() *AliyunCommService

func (AliyunCommService) CreateEciClient

func (s AliyunCommService) CreateEciClient(endpoint, accessKeyId, accessKeySecret string) (
	result *eci.Client, err error)

func (AliyunCommService) CreateEcsClient

func (s AliyunCommService) CreateEcsClient(endpoint, accessKeyId, accessKeySecret string) (
	result *ecs.Client, err error)

func (AliyunCommService) CreateEip

func (s AliyunCommService) CreateEip(region string, client *vpc.Client) (id string, err error)

func (AliyunCommService) CreateEnsClient

func (s AliyunCommService) CreateEnsClient(url string, accessKeyId string, accessKeySecret string) (client *ens.Client, err error)

func (AliyunCommService) CreateVpcClient

func (s AliyunCommService) CreateVpcClient(endpoint, accessKeyId, accessKeySecret string) (
	result *vpc.Client, err error)

func (AliyunCommService) DestroyEip

func (s AliyunCommService) DestroyEip(id, region string, client *vpc.Client) (err error)

func (AliyunCommService) GetAvailableEip

func (s AliyunCommService) GetAvailableEip(region string, client *vpc.Client) (id string, err error)

func (AliyunCommService) GetRegion

func (s AliyunCommService) GetRegion(region string, client *ecs.Client) (id, name string, err error)

func (AliyunCommService) GetSwitch

func (s AliyunCommService) GetSwitch(vpcId, regionId string, vpcClient *vpc.Client) (switchId, name string, err error)

func (AliyunCommService) QuerySecurityGroupByVpc

func (s AliyunCommService) QuerySecurityGroupByVpc(vpcId, regionId string, client *ecs.Client) (id string, err error)

type AliyunEciService

type AliyunEciService struct {
	AliyunCommService *AliyunCommService `inject:""`
}

func NewAliyunEciService

func NewAliyunEciService() *AliyunEciService

func (AliyunEciService) CreateInst

func (s AliyunEciService) CreateInst(groupName, image, imageCacheId string, cmd []string,
	eipId, switchId, securityGroupId, regionId string,
	eciClient *eci.Client) (
	id string, err error)

func (AliyunEciService) Destroy

func (s AliyunEciService) Destroy(containerGroupId, region string, client *eci.Client) (
	ret domain.CciRepsDestroy, err error)

type AliyunEcsService

type AliyunEcsService struct {
	AliyunCommService *AliyunCommService `inject:""`
}

func NewAliyunEcsService

func NewAliyunEcsService() *AliyunEcsService

func (AliyunEcsService) AllocateIp

func (s AliyunEcsService) AllocateIp(id string, ecsClient *ecs.Client) (ip string, err error)

func (AliyunEcsService) CreateInst

func (s AliyunEcsService) CreateInst(vmName, imageName, switchId, securityGroupId, region string, client *ecs.Client) (id, name string, err error)

func (AliyunEcsService) QueryImage

func (s AliyunEcsService) QueryImage(imageName, regionId string, client *ecs.Client) (imageId string, err error)

func (AliyunEcsService) QueryInst

func (s AliyunEcsService) QueryInst(id, regionId string, client *ecs.Client) (status, macAddress string, err error)

func (AliyunEcsService) QuerySpec

func (s AliyunEcsService) QuerySpec(regionId string, client *ecs.Client) (zoneId, spec string, err error)

func (AliyunEcsService) QueryVncPassword

func (s AliyunEcsService) QueryVncPassword(id, regionId string, client *ecs.Client) (password string, err error)

func (AliyunEcsService) QueryVncUrl

func (s AliyunEcsService) QueryVncUrl(id, vncPassword, regionId string, isWindows bool, client *ecs.Client) (url string, err error)

func (AliyunEcsService) RemoveInst

func (s AliyunEcsService) RemoveInst(id string, ecsClient *ecs.Client) (err error)

func (AliyunEcsService) StartInst

func (s AliyunEcsService) StartInst(id string, ecsClient *ecs.Client) (err error)

Jump to

Keyboard shortcuts

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