consts.go 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package cloudprovider
  15. const (
  16. CloudVMStatusRunning = "running"
  17. CloudVMStatusStopping = "stopping"
  18. CloudVMStatusSuspend = "suspend"
  19. CloudVMStatusStopped = "stopped"
  20. CloudVMStatusChangeFlavor = "change_flavor"
  21. CloudVMStatusDeploying = "deploying"
  22. CloudVMStatusOther = "other"
  23. )
  24. const (
  25. READ_ONLY_SUFFIX = ".readonly"
  26. CLOUD_CAPABILITY_PROJECT = "project"
  27. CLOUD_CAPABILITY_COMPUTE = "compute"
  28. CLOUD_CAPABILITY_NETWORK = "network"
  29. CLOUD_CAPABILITY_SECURITY_GROUP = "security_group"
  30. CLOUD_CAPABILITY_EIP = "eip"
  31. CLOUD_CAPABILITY_SNAPSHOT_POLICY = "snapshot_policy"
  32. CLOUD_CAPABILITY_LOADBALANCER = "loadbalancer"
  33. CLOUD_CAPABILITY_OBJECTSTORE = "objectstore"
  34. CLOUD_CAPABILITY_RDS = "rds"
  35. CLOUD_CAPABILITY_CACHE = "cache" // 弹性缓存包含redis、memcached
  36. CLOUD_CAPABILITY_EVENT = "event"
  37. CLOUD_CAPABILITY_CLOUDID = "cloudid"
  38. CLOUD_CAPABILITY_DNSZONE = "dnszone"
  39. CLOUD_CAPABILITY_PUBLIC_IP = "public_ip"
  40. CLOUD_CAPABILITY_INTERVPCNETWORK = "intervpcnetwork"
  41. CLOUD_CAPABILITY_SAML_AUTH = "saml_auth" // 是否支持SAML 2.0
  42. CLOUD_CAPABILITY_QUOTA = "quota" // 配额
  43. CLOUD_CAPABILITY_NAT = "nat" // NAT网关
  44. CLOUD_CAPABILITY_NAS = "nas" // NAS
  45. CLOUD_CAPABILITY_WAF = "waf" // WAF
  46. CLOUD_CAPABILITY_MONGO_DB = "mongodb" // MongoDB
  47. CLOUD_CAPABILITY_ES = "es" // ElasticSearch
  48. CLOUD_CAPABILITY_KAFKA = "kafka" // Kafka
  49. CLOUD_CAPABILITY_APP = "app" // App
  50. CLOUD_CAPABILITY_CDN = "cdn" // CDN
  51. CLOUD_CAPABILITY_CONTAINER = "container" // 容器
  52. CLOUD_CAPABILITY_IPV6_GATEWAY = "ipv6_gateway" // IPv6网关
  53. CLOUD_CAPABILITY_TABLESTORE = "tablestore" // 表格存储
  54. CLOUD_CAPABILITY_MODELARTES = "modelarts"
  55. CLOUD_CAPABILITY_VPC_PEER = "vpcpeer" // 对等连接
  56. CLOUD_CAPABILITY_MISC = "misc"
  57. CLOUD_CAPABILITY_CERT = "sslcertificates" // 证书
  58. CLOUD_CAPABILITY_IMAGE = "image" // 镜像
  59. CLOUD_CAPABILITY_AI_GATEWAY = "aigateway" // AI网关
  60. )
  61. const (
  62. CLOUD_ENV_PUBLIC_CLOUD = "public"
  63. CLOUD_ENV_PRIVATE_CLOUD = "private"
  64. CLOUD_ENV_ON_PREMISE = "onpremise"
  65. CLOUD_ENV_PRIVATE_ON_PREMISE = "private_or_onpremise"
  66. )