tencent

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CVMRegionsCmd = &cobra.Command{
	Use:   "cvm",
	Short: "列出腾讯云 CVM 的区域 (List the regions of tencent cloud CVM)",
	Long:  "列出腾讯云 CVM 的区域 (List the regions of tencent cloud CVM)",
	Run: func(cmd *cobra.Command, args []string) {
		regions := tencentcvm.GetCVMRegions()
		var data = make([][]string, len(regions))
		for i, v := range regions {
			SN := strconv.Itoa(i + 1)
			data[i] = []string{SN, *v.Region, *v.RegionName, *v.RegionState}
		}
		var header = []string{"序号 (SN)", "地域名称 (Region)", "地域描述 (Region Name)", "地域是否可用状态 (Region State)"}
		var td = cloud.TableData{Header: header, Body: data}
		cloud.PrintTable(td, "")
	},
}
View Source
var (
	UUID string
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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