Documentation ¶
Index ¶
- func AddSecurityGroupPolicy(regionId, securityGroupId, ipProtocol, portRange, cidrIp string) bool
- func CheckCloudAssistantStatus(regionId, instanceId string) bool
- func CreateRamUser(username string, password string) bool
- func DeleteRamUser(username string) bool
- func EcsRunCommand(regionId, scriptType, commandContent string, instanceId string) bool
- func GetAllInstances(regionId string, printInfo bool) (instances []ecs.Instance)
- func GetEcsSecurityGroupInfo(regionId, securityGroupId string) ecs.DescribeSecurityGroupAttributeResponse
- func GetRegionInstances(regionId string) (instances []ecs.Instance)
- func ListRamUser()
- func QuerySingleInstance(regionId string, instanceId string) (instances ecs.Instance)
- func RemoveSecurityGroupPolicy(regionId, securityGroupId, ipProtocol, portRange, cidrIp string) bool
- func ShowEcsSecurityGroupInfo(securityGroup ecs.DescribeSecurityGroupAttributeResponse)
- func ShowInstanceInfo(instance ecs.Instance)
- func ShowInstancesInfo(instances []ecs.Instance, isRunner bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSecurityGroupPolicy ¶
AddSecurityGroupPolicy 添加指定安全组ID的端口策略
func CheckCloudAssistantStatus ¶
CheckCloudAssistantStatus 检测云助手安装情况
func CreateRamUser ¶ added in v1.0.5
CreateRamUser 创建RAM用户
func DeleteRamUser ¶ added in v1.0.5
DeleteRamUser 删除指定RAM用户
func EcsRunCommand ¶
EcsRunCommand 执行命令
func GetAllInstances ¶
GetAllInstances 获取所有实例
func GetEcsSecurityGroupInfo ¶
func GetEcsSecurityGroupInfo(regionId, securityGroupId string) ecs.DescribeSecurityGroupAttributeResponse
GetEcsSecurityGroupInfo 获取安全组信息
func GetRegionInstances ¶
GetRegionInstances 获取指定区域的所有实例列表
func QuerySingleInstance ¶
QuerySingleInstance 查询单个实例
func RemoveSecurityGroupPolicy ¶
func RemoveSecurityGroupPolicy(regionId, securityGroupId, ipProtocol, portRange, cidrIp string) bool
RemoveSecurityGroupPolicy 删除指定安全组ID的端口
func ShowEcsSecurityGroupInfo ¶
func ShowEcsSecurityGroupInfo(securityGroup ecs.DescribeSecurityGroupAttributeResponse)
ShowEcsSecurityGroupInfo 显示ecs安全组的信息
func ShowInstancesInfo ¶
ShowInstancesInfo 显示传入的实例列表具体信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.