Documentation ¶
Index ¶
Constants ¶
const ( CACHED_IMAGE_STATUS_INIT = "init" CACHED_IMAGE_STATUS_SAVING = "saving" CACHED_IMAGE_STATUS_CACHING = "caching" CACHED_IMAGE_STATUS_ACTIVE = "active" CACHED_IMAGE_STATUS_DELETING = "deleting" CACHED_IMAGE_STATUS_CACHE_FAILED = "cache_fail" CACHED_IMAGE_STATUS_UNKNOWN = "unknown" )
const ( CDN_DOMAIN_STATUS_ONLINE = "online" CDN_DOMAIN_STATUS_OFFLINE = "offline" CDN_DOMAIN_STATUS_PROCESSING = "processing" CDN_DOMAIN_STATUS_REJECTED = "rejected" CDN_DOMAIN_AREA_MAINLAND = "mainland" CDN_DOMAIN_AREA_OVERSEAS = "overseas" CDN_DOMAIN_AREA_GLOBAL = "global" CDN_DOMAIN_ORIGIN_TYPE_BUCKET = "bucket" )
const ( CLOUD_PROVIDER_ONECLOUD = "OneCloud" CLOUD_PROVIDER_VMWARE = "VMware" CLOUD_PROVIDER_NUTANIX = "Nutanix" CLOUD_PROVIDER_ALIYUN = "Aliyun" CLOUD_PROVIDER_APSARA = "Apsara" CLOUD_PROVIDER_QCLOUD = "Qcloud" CLOUD_PROVIDER_AZURE = "Azure" CLOUD_PROVIDER_AWS = "Aws" CLOUD_PROVIDER_HUAWEI = "Huawei" CLOUD_PROVIDER_HCSO = "HCSO" CLOUD_PROVIDER_HCS = "HCS" CLOUD_PROVIDER_HCSOP = "HCSOP" CLOUD_PROVIDER_OPENSTACK = "OpenStack" CLOUD_PROVIDER_UCLOUD = "Ucloud" CLOUD_PROVIDER_ZSTACK = "ZStack" CLOUD_PROVIDER_GOOGLE = "Google" CLOUD_PROVIDER_CTYUN = "Ctyun" CLOUD_PROVIDER_ECLOUD = "Ecloud" CLOUD_PROVIDER_JDCLOUD = "JDcloud" CLOUD_PROVIDER_CLOUDPODS = "Cloudpods" CLOUD_PROVIDER_BINGO_CLOUD = "BingoCloud" CLOUD_PROVIDER_INCLOUD_SPHERE = "InCloudSphere" CLOUD_PROVIDER_PROXMOX = "Proxmox" CLOUD_PROVIDER_REMOTEFILE = "RemoteFile" CLOUD_PROVIDER_H3C = "H3C" CLOUD_PROVIDER_KSYUN = "Ksyun" CLOUD_PROVIDER_BAIDU = "Baidu" CLOUD_PROVIDER_CUCLOUD = "ChinaUnion" CLOUD_PROVIDER_QINGCLOUD = "QingCloud" CLOUD_PROVIDER_VOLCENGINE = "VolcEngine" CLOUD_PROVIDER_ORACLE = "OracleCloud" CLOUD_PROVIDER_GENERICS3 = "S3" CLOUD_PROVIDER_CEPH = "Ceph" CLOUD_PROVIDER_XSKY = "Xsky" CLOUD_PROVIDER_HEALTH_NORMAL = "normal" // 远端处于健康状态 CLOUD_PROVIDER_HEALTH_INSUFFICIENT = "insufficient" // 不足按需资源余额 CLOUD_PROVIDER_HEALTH_SUSPENDED = "suspended" // 远端处于冻结状态 CLOUD_PROVIDER_HEALTH_ARREARS = "arrears" // 远端处于欠费状态 CLOUD_PROVIDER_HEALTH_UNKNOWN = "unknown" // 未知状态,查询失败 CLOUD_PROVIDER_HEALTH_NO_PERMISSION = "no permission" // 没有权限获取账单信息 ZSTACK_BRAND_DSTACK = "DStack" )
const ( CLOUD_ACCESS_ENV_AWS_GLOBAL = CLOUD_PROVIDER_AWS + "-int" CLOUD_ACCESS_ENV_AWS_CHINA = CLOUD_PROVIDER_AWS CLOUD_ACCESS_ENV_AZURE_GLOBAL = CLOUD_PROVIDER_AZURE + "-int" CLOUD_ACCESS_ENV_AZURE_GERMAN = CLOUD_PROVIDER_AZURE + "-de" CLOUD_ACCESS_ENV_AZURE_US_GOVERNMENT = CLOUD_PROVIDER_AZURE + "-us-gov" CLOUD_ACCESS_ENV_AZURE_CHINA = CLOUD_PROVIDER_AZURE CLOUD_ACCESS_ENV_ALIYUN_GLOBAL = CLOUD_PROVIDER_ALIYUN CLOUD_ACCESS_ENV_ALIYUN_FINANCE = CLOUD_PROVIDER_ALIYUN + "-fin" CLOUD_ACCESS_ENV_CTYUN_CHINA = CLOUD_PROVIDER_CTYUN CLOUD_ACCESS_ENV_ECLOUD_CHINA = CLOUD_PROVIDER_ECLOUD CLOUD_ACCESS_ENV_JDCLOUD_CHINA = CLOUD_PROVIDER_JDCLOUD CLOUD_ACCESS_ENV_VOLCENGINE_CHINA = CLOUD_PROVIDER_VOLCENGINE )
const ( CLOUD_REGION_STATUS_INSERVER = "inservice" CLOUD_REGION_STATUS_OUTOFSERVICE = "outofservice" // 中国 CITY_QING_DAO = "Qingdao" //青岛 CITY_BEI_JING = "Beijing" //北京 CITY_ZHANG_JIA_KOU = "Zhangjiakou" //张家口 CITY_HU_HE_HAO_TE = "Huhehaote" //呼和浩特 CITY_HANG_ZHOU = "Hangzhou" //杭州 CITY_SHANG_HAI = "Shanghai" //上海 CITY_QING_YANG = "Qingyang" //庆阳 CITY_SHEN_ZHEN = "Shenzhen" //深圳 CITY_HONG_KONG = "Hongkong" //香港 CITY_NING_XIA = "Ningxia" //宁夏 CITY_GUANG_ZHOU = "Guangzhou" //广州 CITY_TAI_WAN = "Taiwan" //台湾 CITY_GUI_YANG = "Guiyang" //贵阳 CITY_HAE_BIN = "HaerBin" //哈尔滨 CITY_TAIPEI = "Taipei" //台北市 CITY_KAOHSIUNG = "Kaohsiung" //高雄市 CITY_CHENG_DU = "Chengdu" //成都 CITY_CHENG_ZHOU = "ChengZhou" //郴州 CITY_JIANG_XI = "JiangXi" //江西 CITY_HE_YUAN = "HeYuan" //河源 CITY_CHONG_QING = "Chongqing" //重庆 CITY_LAN_ZHOU = "Lanzhou" //兰州 CITY_TAI_YUAN = "Taiyuan" //太原 CITY_TIAN_JIN = "Tianjin" //天津 CITY_WU_LU_MU_QI = "Wulumuqi" //乌鲁木齐 CITY_NAN_NING = "NanNing" //南宁 CITY_ZHENG_ZHOU = "ZhengZhou" //郑州 CITY_KUN_MING = "KunMing" //昆明 CITY_HE_FEI = "HeFei" //合肥 CITY_FU_JIAN = "FuJian" //福建 CITY_JIN_ZHONG = "JingZhong" //晋中 CITY_XI_AN = "Xian" //西安 CITY_HAI_KOU = "Haikou" //海口 CITY_WU_HU = "WuHu" //芜湖 CITY_FU_ZHOU = "Fuzhou" //福州 CITY_WU_HAN = "Wuhan" //武汉 CITY_CHANG_SHA = "Changsha" //长沙 CITY_SU_ZHOU = "Suzhou" //苏州 CITY_BAO_DING = "Baoding" //保定 CITY_NAN_JING = "Nanjing" //南京 CITY_FO_SHAN = "Foshan" //佛山 CITY_QUAN_ZHOU = "Quanzhou" //泉州 CITY_NEI_MENG_GU = "Neimenggu" //内蒙古 CITY_WU_LAN_CHA_BU = "Wulanchabu" //乌兰察布 CITY_JI_NAM = "JiNan" //济南 CITY_CHANG_CHUN = "ChangChun" //长春 CITY_XIANG_YANG = "XiangYang" //襄阳 CITY_NAN_CHANG = "NanChang" //南昌 CITY_SHEN_YANG = "ShenYang" //沈阳 CITY_SHI_JIA_ZHUANG = "ShiJiaZhuang" //石家庄 CITY_XIA_MEN = "XiaMen" //厦门 CITY_HUAI_NAN = "HuaiNan" //淮南 CITY_SU_QIAN = "SuQian" //宿迁 CITY_DA_LIAN = "Dalian" //大连 // 日本 CITY_TOKYO = "Tokyo" //东京 CITY_OSAKA = "Osaka" //大阪市 // 新加坡 CITY_SINGAPORE = "Singapore" //新加坡 // 澳大利亚 CITY_SYDNEY = "Sydney" //悉尼 CITY_YARRALUMLA = "Yarralumla" //亚拉伦拉 CITY_MELBOURNE = "Melbourne" //墨尔本 //芬兰 CITY_FINLAND = "Finland" //比利时 CITY_BELGIUM = "Belgium" //比利时 //瑞士 CITY_ZURICH = "Zurich" //苏黎世 CITY_GENEVA = "Geneva" //日内瓦 // 挪威 CITY_STAVANGER = "Stavanger" //斯塔万格 CITY_OSLO = "Oslo" // 奥斯陆 // 马来西亚 CITY_KUALA_LUMPUR = "Kuala Lumpur" //吉隆坡 // 印度尼西亚 CITY_JAKARTA = "Jakarta" //雅加达 // 印度 CITY_DELHI = "Delhi" // 德里 CITY_MUMBAI = "Mumbai" // 孟买 CITY_KANCHIPURAM = "Kanchipuram" // 甘吉布勒姆 CITY_MAHARASHTRA = "Maharashtra" // 马哈拉施特拉邦 CITY_JAMNAGAR = "Jamnagar" // 贾姆讷格尔 CITY_NAGPUR = "Nagpur" // 那格浦尔 CITY_HYDERABAD = "Hyderabad" // 海得拉巴 // 美国 CITY_VIRGINIA = "Virginia" //弗吉尼亚 CITY_SILICONVALLEY = "Siliconvalley" //硅谷 CITY_OHIO = "Ohio" //俄亥俄州 CITY_N_VIRGINIA = "N. Virginia" //北弗吉尼亚 CITY_N_CALIFORNIA = "N. California" //北加州 CITY_OREGON = "Oregon" //俄勒冈州 CITY_LOS_ANGELES = "Los Angeles" //洛杉矶 CITY_SAN_FRANCISCO = "San Francisco" //旧金山 CITY_UTAH = "Utah" //犹他州 CITY_WASHINGTON = "Washington" //华盛顿 CITY_TEXAS = "Texas" //德克萨斯 CITY_CHICAGO = "Chicago" //芝加哥 CITY_IOWA = "Iowa" //爱荷华 CITY_US_GOV_WEST = "us-gov-west" //??? CITY_SOUTH_CAROLINA = "South Carolina" //南卡罗来纳州 CITY_SALT_LAKE_CITY = "Salt Lake City" //盐湖城 CITY_LAS_VEGAS = "Las Vegas" //拉斯维加斯 CITY_PHOENIX = "Phoenix" //菲尼克斯 CITY_DALLAS = "Dallas" //达拉斯 CITY_COLUMBUS = "Columbus" //哥伦布 // 英国 CITY_LONDON = "London" //伦敦 CITY_HALTON = "Halton" //哈尔顿 CITY_WEST_SUSSEX = "West Sussex" //西苏塞克斯 // 阿拉伯联合酋长国 CITY_DUBAI = "Dubai" //迪拜 CITY_DAMMAN = "Damman" //达曼 CITY_ABU_DHABI = "Abu Dhabi" // 阿布扎比 // 德国 CITY_FRANKFURT = "Frankfurt" // 法兰克福 CITY_DELMENHORST = "Delmenhorst" // 代尔门霍斯特 // 韩国 CITY_SEOUL = "Seoul" //首尔 CITY_BUSAN = "Busan" //釜山 // 加拿大 CITY_CANADA_CENTRAL = "Canada Central" //加拿大中部 CITY_QUEBEC = "Quebec" //魁北克市 CITY_TORONTO = "Toronto" //多伦多 CITY_MONTREAL = "Montreal" //蒙特利尔 // 爱尔兰 CITY_IRELAND = "Ireland" //爱尔兰 CITY_DUBLIN = "Dublin" //都柏林 // 法国 CITY_PARIS = "Paris" //巴黎 CITY_ALLIER = "Allier" //阿利埃河 CITY_TARN = "Tarn" //塔恩 // 瑞典 CITY_STOCKHOLM = "Stockholm" //斯德哥尔摩 // 波兰 CITY_WARSAW = "Warsaw" // 华沙 // 巴西 CITY_SAO_PAULO = "Sao Paulo" //圣保罗 CITY_RIO_DE_JANEIRO = "Rio de Janeiro" // 里约热内卢 // 智利 CITY_SANTIAGO = "Santiago" // 圣地亚哥 // 墨西哥 CITY_MEXICO = "Mexico" // 墨西哥 // 荷兰 CITY_HOLLAND = "Holland" //荷兰 // 南非 CITY_PRETORIA = "Pretoria" //比勒陀利亚 CITY_CAPE_TOWN = "Cape Town" //开普敦 CITY_JOHANNESBURG = "Johannesburg" //约翰内斯堡 // 泰国 CITY_BANGKOK = "Bangkok" //曼谷 // 俄罗斯 CITY_MOSCOW = "Moscow" //莫斯科 // 尼日利亚 CITY_LAGOS = "Lagos" //拉哥斯 // 巴林王国 (中东国家) CITY_BAHRAIN = "Bahrain" // 巴林 // 越南 CITY_HO_CHI_MINH = "Ho Chi Minh" //??? // 以色列 CITY_TEL_AVIV = "Tel Aviv" // 拉斯维夫 // 意大利 CITY_MILAN = "Milan" // 米兰 CITY_TURIN = "Turin" // 都灵 // 西班牙 CITY_MADRID = "Madrid" // 马德里 // 卡塔尔 CITY_DOHA = "Doha" // 多哈 COUNTRY_CODE_CN = "CN" //中国 COUNTRY_CODE_JP = "JP" //日本 COUNTRY_CODE_SG = "SG" //新加坡 COUNTRY_CODE_AU = "AU" //澳大利亚 COUNTRY_CODE_MY = "MY" //马来西亚 COUNTRY_CODE_ID = "ID" //印度尼西亚 COUNTRY_CODE_IN = "IN" //印度 COUNTRY_CODE_US = "US" //美国 COUNTRY_CODE_GB = "GB" //英国 COUNTRY_CODE_AE = "AE" //阿拉伯联合酋长国 COUNTRY_CODE_DE = "DE" //德国 COUNTRY_CODE_KR = "KR" //韩国 COUNTRY_CODE_CA = "CA" //加拿大 COUNTRY_CODE_IE = "IE" //爱尔兰 COUNTRY_CODE_FR = "FR" //法国 COUNTRY_CODE_SE = "SE" //瑞典 COUNTRY_CODE_BR = "BR" //巴西 COUNTRY_CODE_NL = "NL" //荷兰 COUNTRY_CODE_ZA = "ZA" //南非 COUNTRY_CODE_TH = "TH" //泰国 COUNTRY_CODE_RU = "RU" //俄罗斯 COUNTRY_CODE_NG = "NG" //尼日利亚 COUNTRY_CODE_VN = "VN" //越南 COUNTRY_CODE_CH = "CH" //瑞士 COUNTRY_CODE_NO = "NO" //挪威 COUNTRY_CODE_MX = "MX" //墨西哥 COUNTRY_CODE_CL = "CL" //智利 COUNTRY_CODE_BH = "BH" //巴林 COUNTRY_CODE_PL = "PL" //波兰 COUNTRY_CODE_FI = "FI" //芬兰 COUNTRY_CODE_BE = "BE" //比利时 COUNTRY_CODE_IL = "IL" //以色列 COUNTRY_CODE_IT = "IT" //意大利 COUNTRY_CODE_ES = "ES" //西班牙 COUNTRY_CODE_QA = "QA" //卡塔尔 )
const ( //实例状态 DBINSTANCE_INIT = "init" //初始化 DBINSTANCE_DEPLOYING = "deploying" //部署中 DBINSTANCE_RUNNING = "running" //运行中 DBINSTANCE_REBOOTING = "rebooting" //重启中 DBINSTANCE_MIGRATING = "migrating" //迁移中 DBINSTANCE_BACKING_UP = "backing_up" //备份中 DBINSTANCE_RESTORING = "restoring" //备份恢复中 DBINSTANCE_IMPORTING = "importing" //数据导入中 DBINSTANCE_CLONING = "cloning" //克隆中 DBINSTANCE_DELETING = "deleting" //删除中 DBINSTANCE_MAINTENANCE = "maintenance" //维护中 DBINSTANCE_ISOLATING = "isolating" //隔离中 DBINSTANCE_ISOLATE = "isolate" //已隔离 DBINSTANCE_UPGRADING = "upgrading" //升级中 DBINSTANCE_UNKNOWN = "unknown" DBINSTANCE_CHANGE_CONFIG = "change_config" //调整配置 DBINSTANCE_CREATE_FAILED = "create_failed" //创建失败 //备份状态 DBINSTANCE_BACKUP_READY = "ready" //正常 DBINSTANCE_BACKUP_CREATING = "creating" //创建中 DBINSTANCE_BACKUP_CREATE_FAILED = "create_failed" //创建失败 DBINSTANCE_BACKUP_DELETING = "deleting" //删除中 DBINSTANCE_BACKUP_FAILED = "failed" //异常 DBINSTANCE_BACKUP_UNKNOWN = "unknown" //未知 //备份模式 BACKUP_MODE_AUTOMATED = "automated" //自动 BACKUP_MODE_MANUAL = "manual" //手动 //实例数据库状态 DBINSTANCE_DATABASE_CREATING = "creating" //创建中 DBINSTANCE_DATABASE_RUNNING = "running" //正常 DBINSTANCE_DATABASE_DELETING = "deleting" //删除中 //实例用户状态 DBINSTANCE_USER_UNAVAILABLE = "unavailable" //不可用 DBINSTANCE_USER_AVAILABLE = "available" //正常 DBINSTANCE_USER_CREATING = "creating" //创建中 DBINSTANCE_USER_DELETING = "deleting" //删除中 //数据库权限 DATABASE_PRIVILEGE_RW = "rw" //读写 DATABASE_PRIVILEGE_R = "r" //只读 DATABASE_PRIVILEGE_DDL = "ddl" DATABASE_PRIVILEGE_DML = "dml" DATABASE_PRIVILEGE_OWNER = "owner" DATABASE_PRIVILEGE_CUSTOM = "custom" //自定义 DBINSTANCE_TYPE_MYSQL = "MySQL" DBINSTANCE_TYPE_SQLSERVER = "SQLServer" DBINSTANCE_TYPE_POSTGRESQL = "PostgreSQL" DBINSTANCE_TYPE_MARIADB = "MariaDB" DBINSTANCE_TYPE_ORACLE = "Oracle" DBINSTANCE_TYPE_PPAS = "PPAS" DBINSTANCE_TYPE_PERCONA = "Percona" DBINSTANCE_TYPE_AURORA = "Aurora" //阿里云实例类型 ALIYUN_DBINSTANCE_CATEGORY_BASIC = "basic" //基础版 ALIYUN_DBINSTANCE_CATEGORY_HA = "high_availability" //高可用 ALIYUN_DBINSTANCE_CATEGORY_ALWAYSON = "always_on" //集群版 ALIYUN_DBINSTANCE_CATEGORY_FINANCE = "finance" //金融版 //腾讯云实例类型 QCLOUD_DBINSTANCE_CATEGORY_BASIC = "basic" //基础版 QCLOUD_DBINSTANCE_CATEGORY_HA = "ha" //高可用 QCLOUD_DBINSTANCE_CATEGORY_FINANCE = "fe" //金融版 QCLOUD_DBINSTANCE_CATEGORY_TDSQL = "tdsql" //TDSQL //华为云实例类型 HUAWEI_DBINSTANCE_CATEGORY_HA = "ha" //主备 HUAWEI_DBINSTANCE_CATEGORY_SINGLE = "single" //单机 HUAWEI_DBINSTANCE_CATEGORY_REPLICA = "replica" //只读 //谷歌云实例类型 GOOGLE_DBINSTANCE_CATEGORY_REGIONAL = "Regional" // 高可用性(区域级) GOOGLE_DBINSTANCE_CATEGORY_ZONAL = "Zonal" // 单个地区 // Azure AZURE_DBINSTANCE_CATEGORY_BASIC = "basic" // Aws // SQLServer AWS_DBINSTANCE_CATEGORY_ENTERPRISE_EDITION = "Enterprise Edition" AWS_DBINSTANCE_CATEGORY_EXPRESS_EDITION = "Express Edition" AWS_DBINSTANCE_CATEGORY_STANDARD_EDITION = "Standard Edition" AWS_DBINSTANCE_CATEGORY_WEB_EDITION = "Web Edition" // Oracle AWS_DBINSTANCE_CATEGORY_STANDARD_EDITION_TWO = "Standard Edition Two" AWS_DBINSTANCE_CATEGORY_GENERAL_PURPOSE = "General Purpose" AWS_DBINSTANCE_CATEGORY_MEMORY_OPTIMIZED = "Memory Optimized" //阿里云存储类型 ALIYUN_DBINSTANCE_STORAGE_TYPE_LOCAL_SSD = "local_ssd" //本地盘SSD盘 ALIYUN_DBINSTANCE_STORAGE_TYPE_CLOUD_ESSD = "cloud_essd" //ESSD云盘 ALIYUN_DBINSTANCE_STORAGE_TYPE_CLOUD_SSD = "cloud_ssd" //SSD云盘 //华为云存储类型 HUAWEI_DBINSTANCE_STORAGE_TYPE_ULTRAHIGH = "ULTRAHIGH" //超高IO云硬盘 HUAWEI_DBINSTANCE_STORAGE_TYPE_ULTRAHIGHPRO = "ULTRAHIGHPRO" HUAWEI_DBINSTANCE_STORAGE_TYPE_COMMON = "COMMON" HUAWEI_DBINSTANCE_STORAGE_TYPE_HIGH = "HIGH" //腾讯云 QCLOUD_DBINSTANCE_STORAGE_TYPE_LOCAL_SSD = "local_ssd" //本地盘SSD盘 QCLOUD_DBINSTANCE_STORAGE_TYPE_CLOUD_SSD = "cloud_ssd" //SSD云盘 // Azure AZURE_DBINSTANCE_STORAGE_TYPE_DEFAULT = "default" )
const ( DBINSTANCE_SKU_AVAILABLE = "available" DBINSTANCE_SKU_SOLDOUT = "soldout" )
const ( DISK_INIT = "init" DISK_REBUILD = "rebuild" DISK_ALLOC_FAILED = "alloc_failed" DISK_BACKUP_STARTALLOC = "backup_start_alloc" DISK_BACKUP_ALLOC_FAILED = "backup_alloc_failed" DISK_ALLOCATING = "allocating" DISK_READY = "ready" DISK_RESET = "reset" DISK_RESET_FAILED = "reset_failed" DISK_DEALLOC = "deallocating" DISK_DEALLOC_FAILED = "dealloc_failed" DISK_UNKNOWN = "unknown" DISK_DETACHING = "detaching" DISK_ATTACHING = "attaching" DISK_CLONING = "cloning" // 硬盘克隆 DISK_SAVING = "saving" DISK_RESIZING = "resizing" DISK_RESIZE_FAILED = "resize_failed" DISK_TYPE_SYS = "sys" DISK_TYPE_SWAP = "swap" DISK_TYPE_DATA = "data" DISK_PREALLOCATION_OFF = "off" // 精简置备 DISK_PREALLOCATION_METADATA = "metadata" // 厚置备延迟归零 DISK_PREALLOCATION_FALLOC = "falloc" // 厚置备快速归零 DISK_PREALLOCATION_FULL = "full" )
const ( DNS_ZONE_STATUS_AVAILABLE = "available" // 可用 DNS_ZONE_STATUS_UNKNOWN = "unknown" // 未知 )
const ( ELASTIC_SEARCH_STATUS_AVAILABLE = "available" ELASTIC_SEARCH_STATUS_UNAVAILABLE = "unavailable" ELASITC_SEARCH_STATUS_CREATING = "creating" ELASTIC_SEARCH_STATUS_DELETING = "deleting" )
const ( ELASTIC_CACHE_STATUS_RUNNING = "running" //(正常) ELASTIC_CACHE_STATUS_RESTARTING = "restarting" //(重启中) ELASTIC_CACHE_STATUS_DEPLOYING = "deploying" //(创建中) ELASTIC_CACHE_STATUS_CREATE_FAILED = "create_failed" //(创建失败) ELASTIC_CACHE_STATUS_CHANGING = "changing" //(修改中) ELASTIC_CACHE_STATUS_CHANGE_FAILED = "change_failed" //(修改失败) ELASTIC_CACHE_STATUS_INACTIVE = "inactive" //(被禁用) ELASTIC_CACHE_STATUS_FLUSHING = "flushing" //(清除中) ELASTIC_CACHE_STATUS_RELEASING = "releasing" //(释放中) ELASTIC_CACHE_STATUS_RELEASED = "released" //(已释放) ELASTIC_CACHE_STATUS_TRANSFORMING = "transforming" //(转换中) ELASTIC_CACHE_STATUS_UNAVAILABLE = "unavailable" //(服务停止) ELASTIC_CACHE_STATUS_ERROR = "error" //(删除失败) ELASTIC_CACHE_STATUS_MIGRATING = "migrating" //(迁移中) ELASTIC_CACHE_STATUS_BACKUPRECOVERING = "backuprecovering" //(备份恢复中) ELASTIC_CACHE_STATUS_MINORVERSIONUPGRADING = "minorversionupgrading" //(小版本升级中) ELASTIC_CACHE_STATUS_NETWORKMODIFYING = "networkmodifying" //(网络变更中) ELASTIC_CACHE_STATUS_SSLMODIFYING = "sslmodifying" //(SSL变更中) ELASTIC_CACHE_STATUS_MAJORVERSIONUPGRADING = "majorversionupgrading" //(大版本升级中,可正常访问) ELASTIC_CACHE_STATUS_UNKNOWN = "unknown" //(未知状态) ELASTIC_CACHE_STATUS_DELETING = "deleting" // (删除) ELASTIC_CACHE_STATUS_SNAPSHOTTING = "snapshotting" //(快照) ELASTIC_CACHE_ENGINE_REDIS = "redis" ELASTIC_CACHE_ENGINE_MEMCACHED = "memcached" )
const ( ELASTIC_CACHE_ACCOUNT_STATUS_AVAILABLE = "available" // 正常可用 ELASTIC_CACHE_ACCOUNT_STATUS_UNAVAILABLE = "unavailable" // 不可用 ELASTIC_CACHE_ACCOUNT_STATUS_CREATING = "creating" // 创建中 ELASTIC_CACHE_ACCOUNT_STATUS_MODIFYING = "modifying" // 修改中 ELASTIC_CACHE_ACCOUNT_STATUS_DELETING = "deleting" // 删除中 ELASTIC_CACHE_ACCOUNT_STATUS_DELETED = "deleted" // 已删除 )
const ( ELASTIC_CACHE_ACCOUNT_TYPE_NORMAL = "normal" // 普通账号 ELASTIC_CACHE_ACCOUNT_TYPE_ADMIN = "admin" // 管理账号 )
const ( ELASTIC_CACHE_ACCOUNT_PRIVILEGE_READ = "read" // 只读 ELASTIC_CACHE_ACCOUNT_PRIVILEGE_WRITE = "write" // 读写 ELASTIC_CACHE_ACCOUNT_PRIVILEGE_REPL = "repl" // 复制,复制权限支持读写,且支持使用SYNC/PSYNC命令。 )
const ( ELASTIC_CACHE_BACKUP_STATUS_CREATING = "creating" // 备份中 ELASTIC_CACHE_BACKUP_STATUS_RESTORING = "restoring" ELASTIC_CACHE_BACKUP_STATUS_COPYING = "copying" ELASTIC_CACHE_BACKUP_STATUS_CREATE_EXPIRED = "expired" //(备份文件已过期) ELASTIC_CACHE_BACKUP_STATUS_CREATE_DELETED = "deleted" //(备份文件已删除) ELASTIC_CACHE_BACKUP_STATUS_DELETING = "deleting" // 删除中 ELASTIC_CACHE_BACKUP_STATUS_SUCCESS = "success" // 备份成功 ELASTIC_CACHE_BACKUP_STATUS_FAILED = "failed" // 备份失败 ELASTIC_CACHE_BACKUP_STATUS_UNKNOWN = "unknown" // 未知 )
const ( ELASTIC_CACHE_BACKUP_TYPE_FULL = "full" // 全量备份 ELASTIC_CACHE_BACKUP_TYPE_INCREMENTAL = "incremental" // 增量备份 )
const ( ELASTIC_CACHE_BACKUP_MODE_AUTOMATED = "automated" // 自动备份 ELASTIC_CACHE_BACKUP_MODE_MANUAL = "manual" // 手动触发备份 )
const ( ELASTIC_CACHE_ARCH_TYPE_SINGLE = "single" // 单副本 ELASTIC_CACHE_ARCH_TYPE_MASTER = "master" // 主备 ELASTIC_CACHE_ARCH_TYPE_CLUSTER = "cluster" // 集群 ELASTIC_CACHE_ARCH_TYPE_RWSPLIT = "rwsplit" // 读写分离 )
const ( ELASTIC_CACHE_NODE_TYPE_SINGLE = "single" ELASTIC_CACHE_NODE_TYPE_DOUBLE = "double" ELASTIC_CACHE_NODE_TYPE_THREE = "three" ELASTIC_CACHE_NODE_TYPE_FOUR = "four" ELASTIC_CACHE_NODE_TYPE_FIVE = "five" ELASTIC_CACHE_NODE_TYPE_SIX = "six" )
const ( EIP_MODE_INSTANCE_PUBLICIP = "public_ip" EIP_MODE_STANDALONE_EIP = "elastic_ip" EIP_ASSOCIATE_TYPE_SERVER = "server" EIP_ASSOCIATE_TYPE_NAT_GATEWAY = "natgateway" EIP_ASSOCIATE_TYPE_LOADBALANCER = "loadbalancer" EIP_ASSOCIATE_TYPE_UNKNOWN = "unknown" EIP_ASSOCIATE_TYPE_INSTANCE_GROUP = "instancegroup" EIP_STATUS_READY = "ready" EIP_STATUS_UNKNOWN = "unknown" EIP_STATUS_ALLOCATE = "allocate" EIP_STATUS_ALLOCATE_FAIL = "allocate_fail" EIP_STATUS_DEALLOCATE = "deallocate" EIP_STATUS_ASSOCIATE = "associate" EIP_STATUS_DISSOCIATE = "dissociate" EIP_CHARGE_TYPE_BY_TRAFFIC = "traffic" EIP_CHARGE_TYPE_BY_BANDWIDTH = "bandwidth" )
const ( EXTERNAL_PROJECT_STATUS_AVAILABLE = "available" // 可用 EXTERNAL_PROJECT_STATUS_UNAVAILABLE = "unavailable" // 不可用 EXTERNAL_PROJECT_STATUS_CREATING = "creating" // 创建中 EXTERNAL_PROJECT_STATUS_DELETING = "deleting" // 删除中 EXTERNAL_PROJECT_STATUS_UNKNOWN = "unknown" // 未知 )
const ( // 可用 NAS_STATUS_AVAILABLE = "available" // 不可用 NAS_STATUS_UNAVAILABLE = "unavailable" // 扩容中 NAS_STATUS_EXTENDING = "extending" // 创建中 NAS_STATUS_CREATING = "creating" // 创建失败 NAS_STATUS_CREATE_FAILED = "create_failed" // 未知 NAS_STATUS_UNKNOWN = "unknown" // 删除中 NAS_STATUS_DELETING = "deleting" )
const ( GLOBAL_VPC_STATUS_AVAILABLE = "available" GLOBAL_VPC_STATUS_UNKNOWN = "unknown" )
const ( VM_INIT = "init" VM_UNKNOWN = "unknown" VM_CREATE_FAILED = "create_fail" VM_DEPLOYING = "deploying" VM_DEPLOY_FAILED = "deploy_fail" VM_READY = "ready" VM_START_START = "start_start" VM_STARTING = "starting" VM_RUNNING = "running" VM_START_STOP = "start_stop" VM_STOPPING = "stopping" VM_BACKUP_CREATING = "backup_creating" VM_SUSPENDING = "suspending" VM_SUSPEND = "suspend" VM_RESUMING = "resuming" VM_DELETING = "deleting" VM_DEALLOCATED = "deallocated" VM_MIGRATING = "migrating" VM_CHANGE_FLAVOR = "change_flavor" VM_REBUILD_ROOT = "rebuild_root" VM_SYNC_CONFIG = "sync_config" VM_POWER_STATES_OFF = "off" VM_POWER_STATES_ON = "on" HYPERVISOR_ESXI = "esxi" HYPERVISOR_ALIYUN = "aliyun" HYPERVISOR_APSARA = "apsara" HYPERVISOR_QCLOUD = "qcloud" HYPERVISOR_AZURE = "azure" HYPERVISOR_AWS = "aws" HYPERVISOR_HUAWEI = "huawei" HYPERVISOR_HCS = "hcs" HYPERVISOR_HCSOP = "hcsop" HYPERVISOR_HCSO = "hcso" HYPERVISOR_OPENSTACK = "openstack" HYPERVISOR_UCLOUD = "ucloud" HYPERVISOR_ZSTACK = "zstack" HYPERVISOR_GOOGLE = "google" HYPERVISOR_CTYUN = "ctyun" HYPERVISOR_ECLOUD = "ecloud" HYPERVISOR_JDCLOUD = "jdcloud" HYPERVISOR_CLOUDPODS = "cloudpods" HYPERVISOR_NUTANIX = "nutanix" HYPERVISOR_BINGO_CLOUD = "bingocloud" HYPERVISOR_INCLOUD_SPHERE = "incloudsphere" HYPERVISOR_PROXMOX = "proxmox" HYPERVISOR_REMOTEFILE = "remotefile" HYPERVISOR_H3C = "h3c" HYPERVISOR_KSYUN = "ksyun" HYPERVISOR_BAIDU = "baidu" HYPERVISOR_CUCLOUD = "cucloud" HYPERVISOR_QINGCLOUD = "qingcloud" HYPERVISOR_VOLCENGINE = "volcengine" HYPERVISOR_ORACLE = "oracle" )
const ( VM_DEFAULT_WINDOWS_LOGIN_USER = "Administrator" VM_DEFAULT_LINUX_LOGIN_USER = "root" VM_AWS_DEFAULT_LOGIN_USER = "ec2user" VM_AWS_DEFAULT_WINDOWS_LOGIN_USER = "Administrator" VM_JDCLOUD_DEFAULT_WINDOWS_LOGIN_USER = "administrator" VM_AZURE_DEFAULT_LOGIN_USER = "azureuser" VM_ZSTACK_DEFAULT_LOGIN_USER = "root" )
const ( HOST_TYPE_ESXI = "esxi" // # VMWare vSphere ESXi HOST_TYPE_ALIYUN = "aliyun" HOST_TYPE_APSARA = "apsara" HOST_TYPE_AWS = "aws" HOST_TYPE_QCLOUD = "qcloud" HOST_TYPE_AZURE = "azure" HOST_TYPE_HUAWEI = "huawei" HOST_TYPE_HCSO = "hcso" HOST_TYPE_HCS = "hcs" HOST_TYPE_HCSOP = "hcsop" HOST_TYPE_OPENSTACK = "openstack" HOST_TYPE_UCLOUD = "ucloud" HOST_TYPE_ZSTACK = "zstack" HOST_TYPE_GOOGLE = "google" HOST_TYPE_CTYUN = "ctyun" HOST_TYPE_ECLOUD = "ecloud" HOST_TYPE_JDCLOUD = "jdcloud" HOST_TYPE_CLOUDPODS = "cloudpods" HOST_TYPE_NUTANIX = "nutanix" HOST_TYPE_BINGO_CLOUD = "bingocloud" HOST_TYPE_INCLOUD_SPHERE = "incloudsphere" HOST_TYPE_PROXMOX = "proxmox" HOST_TYPE_REMOTEFILE = "remotefile" HOST_TYPE_H3C = "h3c" HOST_TYPE_KSYUN = "ksyun" HOST_TYPE_BAIDU = "baidu" HOST_TYPE_CUCLOUD = "cucloud" HOST_TYPE_QINGCLOUD = "qingcloud" HOST_TYPE_VOLCENGINE = "volcengine" HOST_TYPE_ORACLE = "oracle" // # possible status HOST_ONLINE = "online" HOST_OFFLINE = "offline" NIC_TYPE_IPMI = TNicType("ipmi") NIC_TYPE_ADMIN = TNicType("admin") NIC_TYPE_NORMAL = TNicType("") BAREMETAL_READY = "ready" BAREMETAL_RUNNING = "running" BAREMETAL_UNKNOWN = "unknown" HOST_STATUS_RUNNING = BAREMETAL_RUNNING HOST_STATUS_READY = BAREMETAL_READY HOST_STATUS_UNKNOWN = BAREMETAL_UNKNOWN )
const ( INTER_VPC_NETWORK_STATUS_AVAILABLE = "available" INTER_VPC_NETWORK_STATUS_CREATING = "creating" INTER_VPC_NETWORK_STATUS_DELETING = "deleting" INTER_VPC_NETWORK_STATUS_UNKNOWN = "unknown" )
const ( KAFKA_STATUS_AVAILABLE = "available" KAFKA_STATUS_UNAVAILABLE = "unavailable" KAFKA_STATUS_CREATING = "creating" KAFKA_STATUS_DELETING = "deleting" KAFKA_STATUS_UNKNOWN = "unknown" )
const ( KUBE_CLUSTER_STATUS_RUNNING = "running" KUBE_CLUSTER_STATUS_CREATING = "creating" KUBE_CLUSTER_STATUS_DELETING = "deleting" KUBE_CLUSTER_STATUS_ABNORMAL = "abnormal" // 升级中 KUBE_CLUSTER_STATUS_UPDATING = "updating" // 升级失败 KUBE_CLUSTER_STATUS_UPDATING_FAILED = "updating_failed" // 伸缩中 KUBE_CLUSTER_STATUS_SCALING = "scaling" // 停止 KUBE_CLUSTER_STATUS_STOPPED = "stopped" )
const ( LB_STATUS_ENABLED = "enabled" LB_STATUS_DISABLED = "disabled" LB_STATUS_INIT = "init" LB_CREATING = "creating" LB_SYNC_CONF = "sync_conf" LB_STATUS_DELETING = "deleting" LB_STATUS_DELETED = "deleted" LB_STATUS_START_FAILED = "start_failed" LB_STATUS_UNKNOWN = "unknown" )
Load balancer status transition (for spec status)
create start stop delete init running - - - running - - stopped stopped stopped - running - -
Each entity will have spec and runtime version. Spec version will increment on entity attribute update. Runtime version will be filled by the scheduler to the newest spec it has seen and committed
When spec and runtime version differ, scheduler will set runtime version to "configuring", "stopping" and will finally transition to a terminal state.
In the case of instance has PendingDeleted marked, it is also the scheduler's duty to make the runtime status to stopped and finally the entity in question
const ( //默认后端服务器组 LB_BACKENDGROUP_TYPE_DEFAULT = "default" //普通后端服务器组 LB_BACKENDGROUP_TYPE_NORMAL = "normal" //主备后端服务器组 LB_BACKENDGROUP_TYPE_MASTER_SLAVE = "master_slave" )
const ( LB_AWS_SPEC_APPLICATION = "application" LB_AWS_SPEC_NETWORK = "network" )
const ( LB_ADDR_TYPE_INTRANET = "intranet" LB_ADDR_TYPE_INTERNET = "internet" )
Load Balancer network type (vpc or classic) determines viable backend servers (they should be from the same network type as the load balancer).
Load Balancer address type (intranet or internet) determins the scope the service provided by load balancer can be accessed. If it's intranet, then it will only be accessible from the specified network. If it's internet, then it's public and can be accessed from outside the cloud region
const ( LB_NETWORK_TYPE_CLASSIC = "classic" LB_NETWORK_TYPE_VPC = "vpc" )
const ( LB_LISTENER_TYPE_TCP = "tcp" LB_LISTENER_TYPE_UDP = "udp" LB_LISTENER_TYPE_TCP_UDP = "tcp_udp" LB_LISTENER_TYPE_HTTP = "http" LB_LISTENER_TYPE_HTTPS = "https" LB_LISTENER_TYPE_TERMINATED_HTTPS = "terminated_https" )
TODO https_direct sni
const ( LB_ACL_TYPE_BLACK = "black" LB_ACL_TYPE_WHITE = "white" )
const ( LB_TLS_CERT_FINGERPRINT_ALGO_SHA1 = "sha1" LB_TLS_CERT_FINGERPRINT_ALGO_SHA256 = "sha256" )
const ( LB_STICKY_SESSION_TYPE_INSERT = "insert" LB_STICKY_SESSION_TYPE_SERVER = "server" )
const ( LB_HEALTH_CHECK_PING = "ping" LB_HEALTH_CHECK_TCP = "tcp" LB_HEALTH_CHECK_UDP = "udp" LB_HEALTH_CHECK_HTTP = "http" LB_HEALTH_CHECK_HTTPS = "https" )
TODO maybe https check when field need comes ;)
const ( LB_HEALTH_CHECK_HTTP_CODE_1xx = "http_1xx" LB_HEALTH_CHECK_HTTP_CODE_2xx = "http_2xx" LB_HEALTH_CHECK_HTTP_CODE_3xx = "http_3xx" LB_HEALTH_CHECK_HTTP_CODE_4xx = "http_4xx" LB_HEALTH_CHECK_HTTP_CODE_5xx = "http_5xx" LB_HEALTH_CHECK_HTTP_CODE_DEFAULT = "http_2xx,http_3xx" )
const ( LB_REDIRECT_OFF = "off" LB_REDIRECT_RAW = "raw" )
const ( LB_REDIRECT_CODE_301 = int64(301) // Moved Permanently LB_REDIRECT_CODE_302 = int64(302) // Found LB_REDIRECT_CODE_307 = int64(307) // Temporary Redirect )
const ( LB_BOOL_ON = "on" LB_BOOL_OFF = "off" )
const ( LB_SCHEDULER_RR = "rr" // round robin LB_SCHEDULER_WRR = "wrr" // weighted round robin LB_SCHEDULER_WLC = "wlc" // weighted least connection LB_SCHEDULER_SCH = "sch" // source-ip-based consistent hash LB_SCHEDULER_TCH = "tch" // 4-tuple-based consistent hash LB_SCHEDULER_QCH = "qch" LB_SCHEDULER_MH = "mh" // maglev consistent hash )
TODO
- qch, quic connection id - mh, maglev consistent hash
const ( LB_BACKEND_GUEST = "guest" LB_BACKEND_HOST = "host" LB_BACKEND_IP = "ip" )
TODO raw type
const ( LB_BACKEND_ROLE_DEFAULT = "default" LB_BACKEND_ROLE_MASTER = "master" LB_BACKEND_ROLE_SLAVE = "slave" )
const ( LB_CHARGE_TYPE_BY_TRAFFIC = "traffic" LB_CHARGE_TYPE_BY_BANDWIDTH = "bandwidth" )
const ( MODELARTS_POOL_STATUS_RUNNING = "running" MODELARTS_POOL_STATUS_ABNORMAL = "abnormal" MODELARTS_POOL_STATUS_CREATING = "creating" MODELARTS_POOL_STATUS_CREATE_FAILED = "create_failed" MODELARTS_POOL_STATUS_DELETING = "deleting" MODELARTS_POOL_STATUS_DELETE_FAILED = "delete_failed" MODELARTS_POOL_STATUS_CHANGE_CONFIG = "change_config" MODELARTS_POOL_STATUS_CHANGE_CONFIG_FAILED = "change_config_failed" MODELARTS_POOL_STATUS_ERROR = "error" MODELARTS_POOL_STATUS_UNKNOWN = "unknown" MODELARTS_POOL_STATUS_TIMEOUT = "timeout" )
const ( MODELARTS_POOL_SKU_AVAILABLE = "available" MODELARTS_POOL_SKU_SOLDOUT = "soldout" MODELARTS_POOL_SKU_X86 = "x86" MODELARTS_POOL_SKU_ARM = "arm64" MODELARTS_POOL_SKU_CPU = "CPU" MODELARTS_POOL_SKU_GPU = "GPU" MODELARTS_POOL_SKU_ASCEND = "ASCEND" )
const ( MONGO_DB_STATUS_CREATING = "creating" MONGO_DB_STATUS_RUNNING = "running" MONGO_DB_STATUS_DEPLOY = "deploy" MONGO_DB_STATUS_CHANGE_CONFIG = "change_config" MONGO_DB_STATUS_DELETING = "deleting" MONGO_DB_STATUS_REBOOTING = "rebooting" MONGO_DB_ENGINE_WIRED_TIGER = "WiredTiger" MONGO_DB_ENGINE_ROCKS = "Rocks" // 分片 MONGO_DB_CATEGORY_SHARDING = "sharding" // 副本集 MONGO_DB_CATEGORY_REPLICATE = "replicate" )
const ( MOUNT_TARGET_STATUS_AVAILABLE = "available" MOUNT_TARGET_STATUS_UNAVAILABLE = "unavailable" MOUNT_TARGET_STATUS_CREATING = "creating" MOUNT_TARGET_STATUS_DELETING = "deleting" )
const ( NAT_SKU_AVAILABLE = "available" NAT_SKU_SOLDOUT = "soldout" ALIYUN_NAT_SKU_DEFAULT = "Default" )
const ( NAT_STAUTS_AVAILABLE = "available" // 可用 NAT_STATUS_ALLOCATE = "allocate" // 创建中 NAT_STATUS_DEPLOYING = "deploying" // 配置中 NAT_STATUS_UNKNOWN = "unknown" // 未知状态 NAT_STATUS_CREATE_FAILED = "create_failed" // 创建失败 NAT_STATUS_DELETING = "deleting" // 删除中 NAT_SPEC_SMALL = "small" //小型 NAT_SPEC_MIDDLE = "middle" //中型 NAT_SPEC_LARGE = "large" //大型 NAT_SPEC_XLARGE = "xlarge" //超大型 QCLOUD_NAT_SPEC_SMALL = "small" QCLOUD_NAT_SPEC_MIDDLE = "middle" QCLOUD_NAT_SPEC_LARGE = "large" )
const ( NETWORK_TYPE_VPC = "vpc" NETWORK_TYPE_CLASSIC = "classic" )
const ( NETWORK_TYPE_GUEST = "guest" NETWORK_TYPE_EIP = "elasticip" NETWORK_STATUS_PENDING = "pending" NETWORK_STATUS_AVAILABLE = "available" NETWORK_STATUS_UNAVAILABLE = "unavailable" NETWORK_STATUS_UNKNOWN = "unknown" NETWORK_STATUS_DELETING = "deleting" )
const ( NETWORK_INTERFACE_ASSOCIATE_TYPE_SERVER = "server" NETWORK_INTERFACE_ASSOCIATE_TYPE_RESERVED = "reserved" NETWORK_INTERFACE_ASSOCIATE_TYPE_LOADBALANCER = "loadbalancer" NETWORK_INTERFACE_ASSOCIATE_TYPE_VIP = "vip" NETWORK_INTERFACE_ASSOCIATE_TYPE_DHCP = "dhcp" NETWORK_INTERFACE_STATUS_CREATING = "creating" NETWORK_INTERFACE_STATUS_AVAILABLE = "available" NETWORK_INTERFACE_STATUS_DISABLED = "disabled" NETWORK_INTERFACE_STATUS_ATTACHING = "attaching" NETWORK_INTERFACE_STATUS_DETACHING = "detaching" NETWORK_INTERFACE_STATUS_DELETING = "deleting" NETWORK_INTERFACE_STATUS_UNKNOWN = "unknown" )
const ( ROUTE_ENTRY_TYPE_CUSTOM = "Custom" // 自定义路由 ROUTE_ENTRY_TYPE_SYSTEM = "System" // 系统路由 ROUTE_ENTRY_TYPE_PROPAGATE = "Propagate" )
const ( NEXT_HOP_TYPE_INSTANCE = "Instance" // ECS实例。 NEXT_HOP_TYPE_HAVIP = "HaVip" // 高可用虚拟IP。 NEXT_HOP_TYPE_VPN = "VpnGateway" // VPN网关。 NEXT_HOP_TYPE_NAT = "NatGateway" // NAT网关。 NEXT_HOP_TYPE_NETWORK = "NetworkInterface" // 辅助弹性网卡。 NEXT_HOP_TYPE_EIP = "Eip" // 弹性IP NEXT_HOP_TYPE_ROUTER = "RouterInterface" // 路由器接口。 NEXT_HOP_TYPE_IPV6 = "IPv6Gateway" // IPv6网关。 NEXT_HOP_TYPE_INTERNET = "InternetGateway" // Internet网关。 NEXT_HOP_TYPE_EGRESS_INTERNET = "EgressInternetGateway" // egress only Internet网关。 NEXT_HOP_TYPE_VPCPEERING = "VpcPeering" // vpc对等连接 NEXT_HOP_TYPE_INTERVPCNETWORK = "InterVpcNetwork" //vpc 互联网络 NEXT_HOP_TYPE_DIRECTCONNECTION = "DirectConnection" //专线 NEXT_HOP_TYPE_VPC = "VPC" NEXT_HOP_TYPE_VBR = "VBR" // 边界路由器 NEXT_HOP_TYPE_IP = "IP" )
const ( ROUTE_ENTRY_STATUS_AVAILIABLE = "available" ROUTE_ENTRY_STATUS_CONFLICT = "conflict" ROUTE_ENTRY_STATUS_DISABLED = "disabled" ROUTE_ENTRY_STATUS_UNKNOWN = "unknown" )
const ( SkuCategoryGeneralPurpose = "general_purpose" // 通用型 SkuCategoryBurstable = "burstable" // 突发性能型 SkuCategoryComputeOptimized = "compute_optimized" // 计算优化型 SkuCategoryMemoryOptimized = "memory_optimized" // 内存优化型 SkuCategoryStorageIOOptimized = "storage_optimized" // 存储IO优化型 SkuCategoryHardwareAccelerated = "hardware_accelerated" // 硬件加速型 SkuCategoryHighStorage = "high_storage" // 高存储型 SkuCategoryHighMemory = "high_memory" // 高内存型 )
const ( SkuStatusAvailable = "available" SkuStatusSoldout = "soldout" SkuStatusReady = "ready" )
const ( SNAPSHOT_CREATING = "creating" SNAPSHOT_ROLLBACKING = "rollbacking" SNAPSHOT_FAILED = "create_failed" SNAPSHOT_READY = "ready" SNAPSHOT_DELETE_FAILED = "delete_failed" SNAPSHOT_DELETING = "deleting" SNAPSHOT_UNKNOWN = "unknown" INSTANCE_SNAPSHOT_READY = "ready" )
const ( STORAGE_LOCAL = "local" STORAGE_RBD = "rbd" STORAGE_NAS = "nas" STORAGE_VSAN = "vsan" STORAGE_NFS = "nfs" STORAGE_CIFS = "cifs" STORAGE_PUBLIC_CLOUD = "cloud" STORAGE_CLOUD_EFFICIENCY = "cloud_efficiency" STORAGE_CLOUD_SSD = "cloud_ssd" STORAGE_CLOUD_ESSD_PL0 = "cloud_essd_pl0" // 增强型(Enhanced)SSD 云盘, 单盘最高随机读写IOPS 1万 STORAGE_CLOUD_ESSD = "cloud_essd" // 增强型(Enhanced)SSD 云盘, 单盘最高随机读写IOPS 5万 STORAGE_CLOUD_ESSD_PL2 = "cloud_essd_pl2" // 单盘最高随机读写IOPS 10万 STORAGE_CLOUD_ESSD_PL3 = "cloud_essd_pl3" // 单盘最高随机读写IOPS 100万 STORAGE_CLOUD_AUTO = "cloud_auto" // ESSD AutoPL STORAGE_EPHEMERAL_SSD = "ephemeral_ssd" // 单块本地SSD盘, 容量最大不能超过800 GiB STORAGE_LOCAL_HDD_PRO = "local_hdd_pro" // 实例规格族d1ne和d1搭载的SATA HDD本地盘 STORAGE_LOCAL_SSD_PRO = "local_ssd_pro" // 实例规格族i2、i2g、i1、ga1和gn5等搭载的NVMe //Azure hdd and ssd storagetype STORAGE_STANDARD_LRS = "standard_lrs" STORAGE_STANDARDSSD_LRS = "standardssd_lrs" STORAGE_PREMIUM_LRS = "premium_lrs" STORAGE_AZURE_BASIC = "basic_storage" STORAGE_AZURE_GENERAL_PURPOSE = "general_purpose_storage" // aws storage type STORAGE_GP2_SSD = "gp2" // aws general purpose ssd STORAGE_GP3_SSD = "gp3" // aws General Purpose SSD (gp3) STORAGE_IO1_SSD = "io1" // aws Provisioned IOPS SSD STORAGE_IO2_SSD = "io2" // aws Provisioned IOPS 2 SSD STORAGE_ST1_HDD = "st1" // aws Throughput Optimized HDD STORAGE_SC1_HDD = "sc1" // aws Cold HDD STORAGE_STANDARD_HDD = "standard" // aws Magnetic volumes // qcloud storage type // STORAGE_CLOUD_SSD ="cloud_ssd" STORAGE_LOCAL_BASIC = "local_basic" STORAGE_LOCAL_SSD = "local_ssd" STORAGE_LOCAL_PRO = "local_pro" STORAGE_CLOUD_BASIC = "cloud_basic" STORAGE_CLOUD_PREMIUM = "cloud_premium" //高性能云硬盘 STORAGE_CLOUD_HSSD = "cloud_hssd" //增强型SSD云硬盘 // huawei storage type STORAGE_HUAWEI_SSD = "SSD" // 超高IO云硬盘 STORAGE_HUAWEI_SAS = "SAS" // 高IO云硬盘 STORAGE_HUAWEI_SATA = "SATA" // 普通IO云硬盘 STORAGE_HUAWEI_GPSSD = "GPSSD" // 通用型SSD STORAGE_HUAWEI_GPSSD2 = "GPSSD2" // 通用型SSD V2 STORAGE_HUAWEI_ESSD = "ESSD" // 急速型SSD // openstack STORAGE_OPENSTACK_ISCSI = "iscsi" STORAGE_OPENSTACK_NOVA = "nova" // Ucloud storage type STORAGE_UCLOUD_CLOUD_NORMAL = "CLOUD_NORMAL" // 普通云盘 STORAGE_UCLOUD_CLOUD_SSD = "CLOUD_SSD" // SSD云盘 STORAGE_UCLOUD_LOCAL_NORMAL = "LOCAL_NORMAL" // 普通本地盘 STORAGE_UCLOUD_LOCAL_SSD = "LOCAL_SSD" // SSD本地盘 STORAGE_UCLOUD_EXCLUSIVE_LOCAL_DISK = "EXCLUSIVE_LOCAL_DISK" // 独享本地盘 // Zstack storage type STORAGE_ZSTACK_LOCAL_STORAGE = "localstorage" STORAGE_ZSTACK_CEPH = "ceph" // Google storage type STORAGE_GOOGLE_LOCAL_SSD = "local-ssd" //本地SSD暂存盘 (最多8个) STORAGE_GOOGLE_PD_STANDARD = "pd-standard" //标准永久性磁盘 STORAGE_GOOGLE_PD_SSD = "pd-ssd" //SSD永久性磁盘 STORAGE_GOOGLE_PD_BALANCED = "pd-balanced" //平衡永久性磁盘 // ctyun storage type STORAGE_CTYUN_SSD = "SSD" // 超高IO云硬盘 STORAGE_CTYUN_SAS = "SAS" // 高IO云硬盘 STORAGE_CTYUN_SATA = "SATA" // 普通IO云硬盘 STORAGE_CTYUN_SSD_GENRIC = "SSD-genric" // 超高IO // jd cloud storage type STORAGE_JDCLOUD_GP1 = "ssd.gp1" // 通用型SSD云硬盘 STORAGE_JDCLOUD_IO1 = "ssd.io1" // 性能型SSD云硬盘 STORAGE_JDCLOUD_STD = "hdd.std1" // 容量型HDD云硬盘 STORAGE_JDCLOUD_SSD = "ssd" // SSD云硬盘 STORAGE_JDCLOUD_PHD = "premium-hdd" // HDD云硬盘 STORAGE_ECLOUD_CAPEBS = "capebs" // 容量盘 STORAGE_ECLOUD_EBS = "ebs" // 性能盘 STORAGE_ECLOUD_SSD = "ssd" // 高性能盘 STORAGE_ECLOUD_SSDEBS = "ssdebs" // 性能优化盘 STORAGE_ECLOUD_SYSTEM = "system" // 系统盘 // volcengine storage type STORAGE_VOLCENGINE_FlexPL = "ESSD_FlexPL" // 极速型SSD(单盘最大IOPS 5万) STORAGE_VOLCENGINE_PL0 = "ESSD_PL0" // 极速型SSD(单盘最大IOPS 1万) STORAGE_VOLCENGINE_PTSSD = "PTSSD" // 性能型SSD(上一代产品) STORAGE_FULL = "full" STORAGE_SYSTEM_FULL = "system_full" )
const ( STORAGE_OFFLINE = "offline" // 离线 STORAGE_ONLINE = "online" // 在线 DISK_TYPE_ROTATE = "rotate" DISK_TYPE_SSD = "ssd" DISK_TYPE_HYBRID = "hybrid" )
const ( TABLESTORE_STATUS_RUNNING = "running" TABLESTORE_STATUS_UNKNOWN = "unknown" )
const ( VPC_PEERING_CONNECTION_STATUS_CREATING = "creating" VPC_PEERING_CONNECTION_STATUS_PENDING_ACCEPT = "pending-acceptance" VPC_PEERING_CONNECTION_STATUS_ACTIVE = "active" VPC_PEERING_CONNECTION_STATUS_DELETING = "deleting" VPC_PEERING_CONNECTION_STATUS_UNKNOWN = "unknown" )
const ( VPC_STATUS_PENDING = "pending" VPC_STATUS_AVAILABLE = "available" VPC_STATUS_UNAVAILABLE = "unavailable" VPC_STATUS_FAILED = "failed" VPC_STATUS_DELETING = "deleting" VPC_STATUS_UNKNOWN = "unknown" DEFAULT_VPC_ID = "default" NORMAL_VPC_ID = "normal" // 没有关联VPC的安全组,统一使用normal )
const ( VPC_EXTERNAL_ACCESS_MODE_EIP = "eip" // eip only VPC_EXTERNAL_ACCESS_MODE_NONE = "none" // no external access )
const ( WAF_STATUS_AVAILABLE = "available" WAF_STATUS_DELETING = "deleting" WAF_STATUS_CREATE_FAILED = "create_failed" WAF_STATUS_UPDATING = "updating" )
const ( ZONE_ENABLE = "enable" ZONE_DISABLE = "disable" ZONE_SOLDOUT = "soldout" )
const (
BUCKET_STATUS_READY = "ready"
)
const (
DNS_RECORDSET_STATUS_AVAILABLE = "available"
)
const (
ELASTIC_CACHE_ACL_STATUS_AVAILABLE = "available" // 正常可用
)
const (
ELASTIC_CACHE_PARAMETER_STATUS_AVAILABLE = "available" // 正常可用
)
const (
ESXI_IMAGE_CACHE_TMP_PREFIX = "yunioncloud.imagecache"
)
const (
ROUTE_TABLE_AVAILABLE = "available"
)
const (
SECGROUP_STATUS_READY = "ready"
)
const (
WIRE_STATUS_AVAILABLE = "available"
)
Variables ¶
var ( QCLOUD_RW_PRIVILEGE_SET = []string{ "SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "REFERENCES", "INDEX", "ALTER", "CREATE TEMPORARY TABLES", "LOCK TABLES", "EXECUTE", "CREATE VIEW", "SHOW VIEW", "CREATE ROUTINE", "ALTER ROUTINE", "EVENT", "TRIGGER", } QCLOUD_R_PRIVILEGE_SET = []string{"SELECT", "LOCK TABLES", "SHOW VIEW"} )
var ( // China RegionBeijing = cloudprovider.SGeographicInfo{ Latitude: 39.904, Longitude: 116.407, City: CITY_BEI_JING, CountryCode: COUNTRY_CODE_CN, } RegionNingxia = cloudprovider.SGeographicInfo{ Latitude: 37.199, Longitude: 106.158, City: CITY_NING_XIA, CountryCode: COUNTRY_CODE_CN, } RegionShanghai = cloudprovider.SGeographicInfo{ Latitude: 31.17, Longitude: 121.47, City: CITY_SHANG_HAI, CountryCode: COUNTRY_CODE_CN, } RegionQingYang = cloudprovider.SGeographicInfo{ Latitude: 35.73, Longitude: 107.61, City: CITY_QING_YANG, CountryCode: COUNTRY_CODE_CN, } RegionGuangzhou = cloudprovider.SGeographicInfo{ Latitude: 23.129, Longitude: 113.264, City: CITY_GUANG_ZHOU, CountryCode: COUNTRY_CODE_CN, } RegionSuzhou = cloudprovider.SGeographicInfo{ Latitude: 31.328, Longitude: 120.479, City: CITY_SU_ZHOU, CountryCode: COUNTRY_CODE_CN, } RegionDalian = cloudprovider.SGeographicInfo{ Latitude: 38.914, Longitude: 121.615, City: CITY_DA_LIAN, CountryCode: COUNTRY_CODE_CN, } RegionGuiyang = cloudprovider.SGeographicInfo{ Latitude: 26.647, Longitude: 106.63, City: CITY_GUI_YANG, CountryCode: COUNTRY_CODE_CN, } RegionHaerbin = cloudprovider.SGeographicInfo{ Latitude: 45.757, Longitude: 126.57, City: CITY_HAE_BIN, CountryCode: COUNTRY_CODE_CN, } RegionZhengzhou = cloudprovider.SGeographicInfo{ Latitude: 34.743, Longitude: 113.498, City: CITY_ZHENG_ZHOU, CountryCode: COUNTRY_CODE_CN, } RegionNeimenggu = cloudprovider.SGeographicInfo{ Latitude: 41.018, Longitude: 113.095, City: CITY_NEI_MENG_GU, CountryCode: COUNTRY_CODE_CN, } RegionQingdao = cloudprovider.SGeographicInfo{ Latitude: 36.067, Longitude: 120.383, City: CITY_QING_DAO, CountryCode: COUNTRY_CODE_CN, } RegionBaoDing = cloudprovider.SGeographicInfo{ Latitude: 38.871, Longitude: 115.393, City: CITY_BAO_DING, CountryCode: COUNTRY_CODE_CN, } RegionZhangjiakou = cloudprovider.SGeographicInfo{ Latitude: 40.768, Longitude: 114.886, City: CITY_ZHANG_JIA_KOU, CountryCode: COUNTRY_CODE_CN, } RegionHuhehaote = cloudprovider.SGeographicInfo{ Latitude: 40.842, Longitude: 111.75, City: CITY_HU_HE_HAO_TE, CountryCode: COUNTRY_CODE_CN, } RegionHangzhou = cloudprovider.SGeographicInfo{ Latitude: 30.274, Longitude: 120.155, City: CITY_HANG_ZHOU, CountryCode: COUNTRY_CODE_CN, } RegionWuhan = cloudprovider.SGeographicInfo{ Latitude: 30.568, Longitude: 114.136, City: CITY_WU_HAN, CountryCode: COUNTRY_CODE_CN, } RegionFoshan = cloudprovider.SGeographicInfo{ Latitude: 23.009, Longitude: 113.024, City: CITY_FO_SHAN, CountryCode: COUNTRY_CODE_CN, } RegionXian = cloudprovider.SGeographicInfo{ Latitude: 34.26, Longitude: 108.802, City: CITY_XI_AN, CountryCode: COUNTRY_CODE_CN, } RegionLanzhou = cloudprovider.SGeographicInfo{ Latitude: 36.078, Longitude: 103.596, City: CITY_LAN_ZHOU, CountryCode: COUNTRY_CODE_CN, } RegionWuhu = cloudprovider.SGeographicInfo{ Latitude: 31.3285, Longitude: 118.312, City: CITY_WU_HU, CountryCode: COUNTRY_CODE_CN, } RegionShenzhen = cloudprovider.SGeographicInfo{ Latitude: 22.543, Longitude: 114.058, City: CITY_SHEN_ZHEN, CountryCode: COUNTRY_CODE_CN, } RegionKunming = cloudprovider.SGeographicInfo{ Latitude: 25.021, Longitude: 102.659, City: CITY_KUN_MING, CountryCode: COUNTRY_CODE_CN, } RegionHefei = cloudprovider.SGeographicInfo{ Latitude: 31.855, Longitude: 117.204, City: CITY_HE_FEI, CountryCode: COUNTRY_CODE_CN, } RegionFujian = cloudprovider.SGeographicInfo{ Latitude: 25.925, Longitude: 116.98, City: CITY_FU_JIAN, CountryCode: COUNTRY_CODE_CN, } RegionJinzhong = cloudprovider.SGeographicInfo{ Latitude: 37.699, Longitude: 112.662, City: CITY_JIN_ZHONG, CountryCode: COUNTRY_CODE_CN, } RegionNanning = cloudprovider.SGeographicInfo{ Latitude: 22.822, Longitude: 108.204, City: CITY_NAN_NING, CountryCode: COUNTRY_CODE_CN, } RegionChengzhou = cloudprovider.SGeographicInfo{ Latitude: 25.777, Longitude: 112.975, City: CITY_CHENG_ZHOU, CountryCode: COUNTRY_CODE_CN, } RegionChangsha = cloudprovider.SGeographicInfo{ Latitude: 28.176, Longitude: 112.86, City: CITY_CHANG_SHA, CountryCode: COUNTRY_CODE_CN, } RegionJiangxi = cloudprovider.SGeographicInfo{ Latitude: 27.274, Longitude: 114.713, City: CITY_JIANG_XI, CountryCode: COUNTRY_CODE_CN, } RegionHunan = cloudprovider.SGeographicInfo{ Latitude: 27.274, Longitude: 114.713, City: CITY_JIANG_XI, CountryCode: COUNTRY_CODE_CN, } RegionHaikou = cloudprovider.SGeographicInfo{ Latitude: 20.012, Longitude: 110.236, City: CITY_HAI_KOU, CountryCode: COUNTRY_CODE_CN, } RegionTianjin = cloudprovider.SGeographicInfo{ Latitude: 39.125, Longitude: 117.131, City: CITY_TIAN_JIN, CountryCode: COUNTRY_CODE_CN, } RegionChengdu = cloudprovider.SGeographicInfo{ Latitude: 30.573, Longitude: 104.067, City: CITY_CHENG_DU, CountryCode: COUNTRY_CODE_CN, } RegionHeyuan = cloudprovider.SGeographicInfo{ Latitude: 23.729, Longitude: 114.697, City: CITY_HE_YUAN, CountryCode: COUNTRY_CODE_CN, } RegionWulanchabu = cloudprovider.SGeographicInfo{ Latitude: 41.018, Longitude: 113.095, City: CITY_WU_LAN_CHA_BU, CountryCode: COUNTRY_CODE_CN, } RegionChongqing = cloudprovider.SGeographicInfo{ Latitude: 29.432, Longitude: 106.912, City: CITY_CHONG_QING, CountryCode: COUNTRY_CODE_CN, } RegionNanjing = cloudprovider.SGeographicInfo{ Latitude: 32.058, Longitude: 118.796, City: CITY_NAN_JING, CountryCode: COUNTRY_CODE_CN, } // Asia RegionTaiwan = cloudprovider.SGeographicInfo{ Latitude: 25.044, Longitude: 121.509, City: CITY_TAI_WAN, CountryCode: COUNTRY_CODE_CN, } RegionHongkong = cloudprovider.SGeographicInfo{ Latitude: 22.396, Longitude: 114.109, City: CITY_HONG_KONG, CountryCode: COUNTRY_CODE_CN, } RegionTokyo = cloudprovider.SGeographicInfo{ Latitude: 35.709, Longitude: 139.732, City: CITY_TOKYO, CountryCode: COUNTRY_CODE_JP, } RegionOsaka = cloudprovider.SGeographicInfo{ Latitude: 34.694, Longitude: 135.502, City: CITY_OSAKA, CountryCode: COUNTRY_CODE_JP, } RegionSeoul = cloudprovider.SGeographicInfo{ Latitude: 34.694, Longitude: 135.502, City: CITY_SEOUL, CountryCode: COUNTRY_CODE_KR, } RegionBusan = cloudprovider.SGeographicInfo{ Latitude: 35.1, Longitude: 129.0403, City: CITY_BUSAN, CountryCode: COUNTRY_CODE_KR, } RegionMumbai = cloudprovider.SGeographicInfo{ Latitude: 19.076, Longitude: 72.877, City: CITY_MUMBAI, CountryCode: COUNTRY_CODE_IN, } // 德里 RegionDelhi = cloudprovider.SGeographicInfo{ Latitude: 28.61, Longitude: 77.23, City: CITY_DELHI, CountryCode: COUNTRY_CODE_IN, } RegionMaharashtra = cloudprovider.SGeographicInfo{ Latitude: 18.97, Longitude: 72.82, City: CITY_MAHARASHTRA, CountryCode: COUNTRY_CODE_IN, } RegionKanchipuram = cloudprovider.SGeographicInfo{ Latitude: 12.8387, Longitude: 79.7016, City: CITY_KANCHIPURAM, CountryCode: COUNTRY_CODE_IN, } RegionHyderabad = cloudprovider.SGeographicInfo{ Latitude: 17.412, Longitude: 78.326, City: CITY_HYDERABAD, CountryCode: COUNTRY_CODE_IN, } RegionSingapore = cloudprovider.SGeographicInfo{ Latitude: 1.352, Longitude: 103.82, City: CITY_SINGAPORE, CountryCode: COUNTRY_CODE_SG, } // 雅加达 RegionJakarta = cloudprovider.SGeographicInfo{ Latitude: -6.175, Longitude: 106.865, City: CITY_JAKARTA, CountryCode: COUNTRY_CODE_ID, } RegionKualaLumpur = cloudprovider.SGeographicInfo{ Latitude: 3.139, Longitude: 101.687, City: CITY_KUALA_LUMPUR, CountryCode: COUNTRY_CODE_MY, } RegionBangkok = cloudprovider.SGeographicInfo{ Latitude: 13.756, Longitude: 100.502, City: CITY_BANGKOK, CountryCode: COUNTRY_CODE_TH, } RegionSydney = cloudprovider.SGeographicInfo{ Latitude: -33.869, Longitude: 151.209, City: CITY_SYDNEY, CountryCode: COUNTRY_CODE_AU, } // 墨尔本 RegionMelbourne = cloudprovider.SGeographicInfo{ Latitude: -37.814, Longitude: 144.963, City: CITY_MELBOURNE, CountryCode: COUNTRY_CODE_AU, } //亚拉伦拉 澳大利亚 RegionYarralumla = cloudprovider.SGeographicInfo{ Latitude: -35.302, Longitude: 149.078, City: CITY_YARRALUMLA, CountryCode: COUNTRY_CODE_AU, } // Africa RegionCapeTown = cloudprovider.SGeographicInfo{ Latitude: -33.915, Longitude: 18.376, City: CITY_CAPE_TOWN, CountryCode: COUNTRY_CODE_ZA, } // 比勒陀利亚 RegionPretoria = cloudprovider.SGeographicInfo{ Latitude: -25.717, Longitude: 28.283, City: CITY_PRETORIA, CountryCode: COUNTRY_CODE_ZA, } RegionJohannesburg = cloudprovider.SGeographicInfo{ Latitude: -26.171, Longitude: 27.9, City: CITY_JOHANNESBURG, CountryCode: COUNTRY_CODE_ZA, } // Middleeast RegionBahrain = cloudprovider.SGeographicInfo{ Latitude: 25.941, Longitude: 50.447, City: CITY_BAHRAIN, CountryCode: COUNTRY_CODE_BH, } // 迪拜 RegionDubai = cloudprovider.SGeographicInfo{ Latitude: 25.263, Longitude: 55.297, City: CITY_DUBAI, CountryCode: COUNTRY_CODE_AE, } // 阿布扎比 RegionAbuDhabi = cloudprovider.SGeographicInfo{ Latitude: 24.387, Longitude: 54.394, City: CITY_ABU_DHABI, CountryCode: COUNTRY_CODE_AE, } // Europe RegionFinland = cloudprovider.SGeographicInfo{ Latitude: 64.826, Longitude: 21.543, City: CITY_FINLAND, CountryCode: COUNTRY_CODE_FI, } RegionBelgium = cloudprovider.SGeographicInfo{ Latitude: 50.5, Longitude: 3.906, City: CITY_BELGIUM, CountryCode: COUNTRY_CODE_BE, } RegionLondon = cloudprovider.SGeographicInfo{ Latitude: 51.507, Longitude: -0.128, City: CITY_LONDON, CountryCode: COUNTRY_CODE_GB, } RegionHalton = cloudprovider.SGeographicInfo{ Latitude: 53.333, Longitude: -2.696, City: CITY_HALTON, CountryCode: COUNTRY_CODE_GB, } RegionSussex = cloudprovider.SGeographicInfo{ Latitude: 51, Longitude: 0, City: CITY_WEST_SUSSEX, CountryCode: COUNTRY_CODE_GB, } RegionFrankfurt = cloudprovider.SGeographicInfo{ Latitude: 51.166, Longitude: 10.452, City: CITY_FRANKFURT, CountryCode: COUNTRY_CODE_DE, } RegionHolland = cloudprovider.SGeographicInfo{ Latitude: 52.208, Longitude: 4.159, City: CITY_HOLLAND, CountryCode: COUNTRY_CODE_NL, } RegionZurich = cloudprovider.SGeographicInfo{ Latitude: 47.377, Longitude: 8.502, City: CITY_ZURICH, CountryCode: COUNTRY_CODE_CH, } RegionMilan = cloudprovider.SGeographicInfo{ Latitude: 45.463, Longitude: 9.108, City: CITY_MILAN, CountryCode: COUNTRY_CODE_IT, } RegionWarsaw = cloudprovider.SGeographicInfo{ Latitude: 52.233, Longitude: 21.017, City: CITY_WARSAW, CountryCode: COUNTRY_CODE_PL, } RegionMadrid = cloudprovider.SGeographicInfo{ Latitude: 40.438, Longitude: -3.82, City: CITY_MADRID, CountryCode: COUNTRY_CODE_ES, } RegionIreland = cloudprovider.SGeographicInfo{ Latitude: 53.413, Longitude: -8.244, City: CITY_IRELAND, CountryCode: COUNTRY_CODE_IE, } RegionDublin = cloudprovider.SGeographicInfo{ Latitude: 53.35, Longitude: -6.26, City: CITY_DUBLIN, CountryCode: COUNTRY_CODE_IE, } RegionParis = cloudprovider.SGeographicInfo{ Latitude: 48.857, Longitude: 2.352, City: CITY_PARIS, CountryCode: COUNTRY_CODE_FR, } RegionTurin = cloudprovider.SGeographicInfo{ Latitude: 45.07, Longitude: 7.63, City: CITY_TURIN, CountryCode: COUNTRY_CODE_IT, } RegionAllier = cloudprovider.SGeographicInfo{ Latitude: 46.518, Longitude: 3.359, City: CITY_ALLIER, CountryCode: COUNTRY_CODE_FR, } RegionTarn = cloudprovider.SGeographicInfo{ Latitude: 43.866, Longitude: 1.505, City: CITY_TARN, CountryCode: COUNTRY_CODE_FR, } RegionStockholm = cloudprovider.SGeographicInfo{ Latitude: 59.195, Longitude: 18.47, City: CITY_STOCKHOLM, CountryCode: COUNTRY_CODE_SE, } RegionDelmenhorst = cloudprovider.SGeographicInfo{ Latitude: 53.051, Longitude: 8.632, City: CITY_DELMENHORST, CountryCode: COUNTRY_CODE_DE, } RegionGeneva = cloudprovider.SGeographicInfo{ Latitude: 46.202, Longitude: 6.147, City: CITY_GENEVA, CountryCode: COUNTRY_CODE_CH, } RegionStavanger = cloudprovider.SGeographicInfo{ Latitude: 58.963, Longitude: 5.719, City: CITY_STAVANGER, CountryCode: COUNTRY_CODE_NO, } RegionOslo = cloudprovider.SGeographicInfo{ Latitude: 59.906, Longitude: 10.768, City: CITY_OSLO, CountryCode: COUNTRY_CODE_NO, } RegionMoscow = cloudprovider.SGeographicInfo{ Latitude: 55.756, Longitude: 37.617, City: CITY_MOSCOW, CountryCode: COUNTRY_CODE_RU, } // America RegionMontreal = cloudprovider.SGeographicInfo{ Latitude: 45.558, Longitude: -73.8, City: CITY_MONTREAL, CountryCode: COUNTRY_CODE_CA, } RegionToronto = cloudprovider.SGeographicInfo{ Latitude: 43.653, Longitude: -79.383, City: CITY_TORONTO, CountryCode: COUNTRY_CODE_CA, } RegionCanadaCentral = cloudprovider.SGeographicInfo{ Latitude: 56.13, Longitude: -106.347, City: CITY_CANADA_CENTRAL, CountryCode: COUNTRY_CODE_CA, } RegionQuebec = cloudprovider.SGeographicInfo{ Latitude: 52, Longitude: -72, City: CITY_QUEBEC, CountryCode: COUNTRY_CODE_CA, } RegionSaoPaulo = cloudprovider.SGeographicInfo{ Latitude: -23.551, Longitude: -46.633, City: CITY_SAO_PAULO, CountryCode: COUNTRY_CODE_BR, } // 里约热内卢 RegionRioDeJaneiro = cloudprovider.SGeographicInfo{ Latitude: -22.908, Longitude: -43.196, City: CITY_RIO_DE_JANEIRO, CountryCode: COUNTRY_CODE_BR, } RegionMexico = cloudprovider.SGeographicInfo{ Latitude: 55.118, Longitude: 141.038, City: CITY_MEXICO, CountryCode: COUNTRY_CODE_MX, } RegionSantiago = cloudprovider.SGeographicInfo{ Latitude: -33.452, Longitude: -70.676, City: CITY_SANTIAGO, CountryCode: COUNTRY_CODE_CL, } RegionIowa = cloudprovider.SGeographicInfo{ Latitude: 41.933, Longitude: -94.511, City: CITY_IOWA, CountryCode: COUNTRY_CODE_US, } RegionCarolina = cloudprovider.SGeographicInfo{ Latitude: 33.619, Longitude: -82.047, City: CITY_SOUTH_CAROLINA, CountryCode: COUNTRY_CODE_US, } // 西雅图,华盛顿州 RegionWashington = cloudprovider.SGeographicInfo{ Latitude: 47.6, Longitude: -122.3, City: CITY_WASHINGTON, CountryCode: COUNTRY_CODE_US, } RegionVirginia = cloudprovider.SGeographicInfo{ Latitude: 37.432, Longitude: -78.657, City: CITY_VIRGINIA, CountryCode: COUNTRY_CODE_US, } RegionTexas = cloudprovider.SGeographicInfo{ Latitude: 31, Longitude: -100, City: CITY_TEXAS, CountryCode: COUNTRY_CODE_US, } RegionChicago = cloudprovider.SGeographicInfo{ Latitude: 41.882, Longitude: -87.628, City: CITY_CHICAGO, CountryCode: COUNTRY_CODE_US, } RegionPhoenix = cloudprovider.SGeographicInfo{ Latitude: 33.448, Longitude: -112.074, City: CITY_PHOENIX, CountryCode: COUNTRY_CODE_US, } RegionUtah = cloudprovider.SGeographicInfo{ Latitude: 39.5, Longitude: -111.5, City: CITY_UTAH, CountryCode: COUNTRY_CODE_US, } RegionSanFrancisco = cloudprovider.SGeographicInfo{ Latitude: 37.778, Longitude: -122.416, City: CITY_SAN_FRANCISCO, CountryCode: COUNTRY_CODE_US, } RegionSiliconValley = cloudprovider.SGeographicInfo{ Latitude: 37.387, Longitude: -122.058, City: CITY_SILICONVALLEY, CountryCode: COUNTRY_CODE_US, } RegionNothVirginia = cloudprovider.SGeographicInfo{ Latitude: 37.432, Longitude: -78.657, City: CITY_N_VIRGINIA, CountryCode: COUNTRY_CODE_US, } RegionOregon = cloudprovider.SGeographicInfo{ Latitude: 43.804, Longitude: -120.554, City: CITY_OREGON, CountryCode: COUNTRY_CODE_US, } RegionLosAngeles = cloudprovider.SGeographicInfo{ Latitude: 34.052, Longitude: -118.244, City: CITY_LOS_ANGELES, CountryCode: COUNTRY_CODE_US, } RegionSaltLakeCity = cloudprovider.SGeographicInfo{ Latitude: 40.777, Longitude: -111.991, City: CITY_SALT_LAKE_CITY, CountryCode: COUNTRY_CODE_US, } RegionLasVegas = cloudprovider.SGeographicInfo{ Latitude: 36.125, Longitude: -115.315, City: CITY_LAS_VEGAS, CountryCode: COUNTRY_CODE_US, } RegionDallas = cloudprovider.SGeographicInfo{ Latitude: 32.784, Longitude: -96.891, City: CITY_DALLAS, CountryCode: COUNTRY_CODE_US, } RegionColumbus = cloudprovider.SGeographicInfo{ Latitude: 32.088, Longitude: 34.762, City: CITY_TEL_AVIV, CountryCode: COUNTRY_CODE_IL, } RegionDamman = cloudprovider.SGeographicInfo{ Latitude: 26.36, Longitude: 49.91, City: CITY_DAMMAN, CountryCode: COUNTRY_CODE_AE, } RegionDoha = cloudprovider.SGeographicInfo{ Latitude: 25.28, Longitude: 51.43, City: CITY_DOHA, CountryCode: COUNTRY_CODE_QA, } RegionNorthCalifornia = cloudprovider.SGeographicInfo{ Latitude: 38.838, Longitude: -120.896, City: CITY_N_CALIFORNIA, CountryCode: COUNTRY_CODE_US, } RegionOhio = cloudprovider.SGeographicInfo{ Latitude: 40.417, Longitude: -82.907, City: CITY_OHIO, CountryCode: COUNTRY_CODE_US, } RegionUSGOVWest = cloudprovider.SGeographicInfo{ Latitude: 37.09, Longitude: -95.713, City: CITY_US_GOV_WEST, CountryCode: COUNTRY_CODE_US, } RegionJioIndiaWest = cloudprovider.SGeographicInfo{ Latitude: 22.471, Longitude: 70.058, City: CITY_JAMNAGAR, CountryCode: COUNTRY_CODE_IN, } RegionJioIndiaCentral = cloudprovider.SGeographicInfo{ Latitude: 21.147, Longitude: 79.09, City: CITY_NAGPUR, CountryCode: COUNTRY_CODE_IN, } )
var InstanceFamilies = map[string]string{ SkuCategoryGeneralPurpose: "g1", SkuCategoryBurstable: "t1", SkuCategoryComputeOptimized: "c1", SkuCategoryMemoryOptimized: "r1", SkuCategoryStorageIOOptimized: "i1", SkuCategoryHardwareAccelerated: "", SkuCategoryHighStorage: "hc1", SkuCategoryHighMemory: "hr1", }
Functions ¶
This section is empty.
Types ¶
Source Files ¶
- bucket.go
- cachedimages_const.go
- cdn.go
- cloudaccount_const.go
- cloudregions_const.go
- dbinstance_const.go
- dbinstance_sku_const.go
- disk_const.go
- dnsrecordsets.go
- dnszone.go
- elastic_search.go
- elasticache_const.go
- elasticips_const.go
- esxi_const.go
- externalproject.go
- filesystem.go
- globalvpc_const.go
- guest_const.go
- host_const.go
- inter_vpc_network.go
- kafka.go
- kube_cluster.go
- loadbalancer_const.go
- modelarts_pool.go
- modelarts_pool_sku.go
- mongodb_const.go
- mount_targets.go
- nat_skus.go
- natgateway.go
- network.go
- network_const.go
- networkinterface_const.go
- regiondata.go
- routetable.go
- routetable_routesets.go
- secgroup_const.go
- sku_const.go
- snapshot_const.go
- storage_const.go
- tablestores.go
- vpc_peering_connection.go
- vpcs_const.go
- vpcs_ovn.go
- waf_instance.go
- wire_const.go
- zones_const.go