logic

package
v0.15.1-0...-dc486a4 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachDisk

func AttachDisk(diskID, resourceID, resourceType string)

AttachDisk 挂载硬盘

func BindAlarmTemplate

func BindAlarmTemplate(resourceID, resourceType, alarmTemplateID string)

BindAlarmTemplate 绑定告警模板

func BindEIP

func BindEIP(eipID, resourceID, resourceType string)

BindEIP 绑定外网IP

func CloneDisk

func CloneDisk(srcID string)

CloneDisk 克隆硬盘

func CreateDisk

func CreateDisk()

CreateDisk 创建硬盘

func CreateEIP

func CreateEIP()

CreateEIP 创建外网IP

func CreateSecurityGroup

func CreateSecurityGroup()

CreateSecurityGroup 创建安全组

func CreateSecurityGroupRule

func CreateSecurityGroupRule(sgID string)

CreateSecurityGroupRule 创建安全组规则

func CreateSubnet

func CreateSubnet(vpcID string)

CreateSubnet 创建子网

func CreateUser

func CreateUser(email, password string)

CreateUser 创建租户

func CreateVM

func CreateVM(name string)

CreateVM 创建主机

func CreateVPC

func CreateVPC()

CreateVPC 创建私有网络(VPC)

func DeleteDisk

func DeleteDisk(diskID string)

DeleteDisk 删除硬盘

func DeleteSecurityGroup

func DeleteSecurityGroup(sgID string)

DeleteSecurityGroup 删除安全组

func DeleteSecurityGroupRule

func DeleteSecurityGroupRule(sgID, sgRuleID string)

DeleteSecurityGroupRule 删除安全组规则

func DeleteSubnet

func DeleteSubnet(subnetID string)

DeleteSubnet 查询子网

func DeleteVM

func DeleteVM(vmID string)

DeleteVM 删除主机

func DeleteVPC

func DeleteVPC(vpcID string)

DeleteVPC 删除私有网络(VPC)

func DescribeDisk

func DescribeDisk(diskID string)

DescribeDisk 查询硬盘信息

func DescribeEIP

func DescribeEIP(eipID string)

DescribeEIP 查询外网IP

func DescribeMetric

func DescribeMetric(resourceID, resourceType, metricName string)

DescribeMetric 查询监控信息

func DescribeSecurityGroup

func DescribeSecurityGroup(sgID string)

DescribeSecurityGroup 查询安全组

func DescribeSubnet

func DescribeSubnet(vpcID string)

DescribeSubnet 查询子网

func DescribeUser

func DescribeUser(userID int)

DescribeUser 查询用户信息

func DescribeVM

func DescribeVM(vmID string)

DescribeVM 查询主机信息

func DescribeVPC

func DescribeVPC(vpcID string)

DescribeVPC 创建私有网络(VPC)

func DetachDisk

func DetachDisk(diskID, resourceID string)

DetachDisk 卸载硬盘

func GetDiskPrice

func GetDiskPrice()

GetDiskPrice 获取硬盘价格

func GetEIPPrice

func GetEIPPrice()

GetEIPPrice 获取外网IP价格

func GetVMInstancePrice

func GetVMInstancePrice()

GetVMInstancePrice 获取虚拟机价格

func LoadUcloudStackConfig

func LoadUcloudStackConfig() (*ucloud.Config, *auth.Credential)

LoadUcloudStackConfig 加载配置

func LoginByPassword

func LoginByPassword(email, password string)

LoginByPassword 通过密码登录

func ModifyEIPBandwidth

func ModifyEIPBandwidth(eipID string, bandwidth int)

ModifyEIPBandwidth 调整外网IP带宽

func ModifyNameAndRemark

func ModifyNameAndRemark(resourceID, name, remark string)

ModifyNameAndRemark 修改资源名称和说明

func Recharge

func Recharge(userID int, serialNo string)

Recharge 账户充值

func ReinstallVMInstance

func ReinstallVMInstance(vmID, imageID string)

ReinstallVMInstance 重装系统

func ReleaseEIP

func ReleaseEIP(eipID string)

ReleaseEIP 删除外网IP

func ResetVMInstancePassword

func ResetVMInstancePassword(vmID, password string)

ResetVMInstancePassword 重置密码

func ResizeVMConfig

func ResizeVMConfig(vmID string, cpu, memory int)

ResizeVMConfig 修改系统配置

func RestartVMInstance

func RestartVMInstance(vmID string)

RestartVMInstance 重启主机

func StartVM

func StartVM(vmID string)

StartVM 开机

func StopVM

func StopVM(vmID string)

StopVM 关闭主机

func UnBindEIP

func UnBindEIP(eipID, resourceID, resourceType string)

UnBindEIP 解绑EIP

func UnbindAlarmTemplate

func UnbindAlarmTemplate(resourceID, resourceType string)

UnbindAlarmTemplate 解绑告警模板

func UpdateSecurityGroupRule

func UpdateSecurityGroupRule(sgID string)

UpdateSecurityGroupRule 修改安全组规则

Types

This section is empty.

Jump to

Keyboard shortcuts

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