yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/cloudprovider/consts.go (about) 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 15 package cloudprovider 16 17 import ( 18 "yunion.io/x/pkg/errors" 19 20 "yunion.io/x/onecloud/pkg/httperrors" 21 ) 22 23 const ( 24 CloudVMStatusRunning = "running" 25 CloudVMStatusStopping = "stopping" 26 CloudVMStatusSuspend = "suspend" 27 CloudVMStatusStopped = "stopped" 28 CloudVMStatusChangeFlavor = "change_flavor" 29 CloudVMStatusDeploying = "deploying" 30 CloudVMStatusOther = "other" 31 32 ErrNotFound = errors.ErrNotFound 33 ErrDuplicateId = errors.ErrDuplicateId 34 ErrInvalidStatus = errors.ErrInvalidStatus 35 ErrTimeout = errors.ErrTimeout 36 ErrNotImplemented = errors.ErrNotImplemented 37 ErrNotSupported = errors.ErrNotSupported 38 ErrAccountReadOnly = errors.ErrAccountReadOnly 39 40 ErrInvalidProvider = httperrors.ErrInvalidProvider 41 ErrNoBalancePermission = httperrors.ErrNoBalancePermission 42 ) 43 44 const ( 45 READ_ONLY_SUFFIX = ".readonly" 46 47 CLOUD_CAPABILITY_PROJECT = "project" 48 CLOUD_CAPABILITY_COMPUTE = "compute" 49 CLOUD_CAPABILITY_NETWORK = "network" 50 CLOUD_CAPABILITY_EIP = "eip" 51 CLOUD_CAPABILITY_LOADBALANCER = "loadbalancer" 52 CLOUD_CAPABILITY_OBJECTSTORE = "objectstore" 53 CLOUD_CAPABILITY_RDS = "rds" 54 CLOUD_CAPABILITY_CACHE = "cache" // 弹性缓存包含redis、memcached 55 CLOUD_CAPABILITY_EVENT = "event" 56 CLOUD_CAPABILITY_CLOUDID = "cloudid" 57 CLOUD_CAPABILITY_DNSZONE = "dnszone" 58 CLOUD_CAPABILITY_PUBLIC_IP = "public_ip" 59 CLOUD_CAPABILITY_INTERVPCNETWORK = "intervpcnetwork" 60 CLOUD_CAPABILITY_SAML_AUTH = "saml_auth" // 是否支持SAML 2.0 61 CLOUD_CAPABILITY_QUOTA = "quota" // 配额 62 CLOUD_CAPABILITY_NAT = "nat" // NAT网关 63 CLOUD_CAPABILITY_NAS = "nas" // NAS 64 CLOUD_CAPABILITY_WAF = "waf" // WAF 65 CLOUD_CAPABILITY_MONGO_DB = "mongodb" // MongoDB 66 CLOUD_CAPABILITY_ES = "es" // ElasticSearch 67 CLOUD_CAPABILITY_KAFKA = "kafka" // Kafka 68 CLOUD_CAPABILITY_APP = "app" // App 69 CLOUD_CAPABILITY_CDN = "cdn" // CDN 70 CLOUD_CAPABILITY_CONTAINER = "container" // 容器 71 CLOUD_CAPABILITY_IPV6_GATEWAY = "ipv6_gateway" // IPv6网关 72 CLOUD_CAPABILITY_TABLESTORE = "tablestore" // 表格存储 73 CLOUD_CAPABILITY_MODELARTES = "modelarts" 74 CLOUD_CAPABILITY_MISC = "misc" 75 ) 76 77 const ( 78 CLOUD_ENV_PUBLIC_CLOUD = "public" 79 CLOUD_ENV_PRIVATE_CLOUD = "private" 80 CLOUD_ENV_ON_PREMISE = "onpremise" 81 82 CLOUD_ENV_PRIVATE_ON_PREMISE = "private_or_onpremise" 83 )