Documentation
¶
Index ¶
- func AddSecurityGroupPolicy(regionId, securityGroupId, ipProtocol, portRange, cidrIp string) bool
- func CheckCloudAssistantStatus(regionId, instanceId 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 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 ¶
添加指定安全组ID的端口策略
func CheckCloudAssistantStatus ¶
检测云助手安装情况
func EcsRunCommand ¶
执行命令
func GetAllInstances ¶
获取所有实例
func GetEcsSecurityGroupInfo ¶
func GetEcsSecurityGroupInfo(regionId, securityGroupId string) ecs.DescribeSecurityGroupAttributeResponse
获取安全组信息
func GetRegionInstances ¶
获取指定区域的所有实例列表
func QuerySingleInstance ¶
查询单个实例
func RemoveSecurityGroupPolicy ¶
func RemoveSecurityGroupPolicy(regionId, securityGroupId, ipProtocol, portRange, cidrIp string) bool
删除指定安全组ID的端口
func ShowEcsSecurityGroupInfo ¶
func ShowEcsSecurityGroupInfo(securityGroup ecs.DescribeSecurityGroupAttributeResponse)
显示ecs安全组的信息
func ShowInstancesInfo ¶
显示传入的实例列表具体信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.