yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/apis/compute/mongodb_const.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 compute
    16  
    17  const (
    18  	MONGO_DB_STATUS_CREATING      = "creating"
    19  	MONGO_DB_STATUS_RUNNING       = "running"
    20  	MONGO_DB_STATUS_DEPLOY        = "deploy"
    21  	MONGO_DB_STATUS_CHANGE_CONFIG = "change_config"
    22  	MONGO_DB_STATUS_DELETING      = "deleting"
    23  	MONGO_DB_STATUS_DELETE_FAILED = "delete_failed"
    24  	MONGO_DB_STATUS_REBOOTING     = "rebooting"
    25  	MONGO_DB_STATUS_UNKNOWN       = "unknown"
    26  
    27  	MONGO_DB_ENGINE_WIRED_TIGER = "WiredTiger"
    28  	MONGO_DB_ENGINE_ROCKS       = "Rocks"
    29  
    30  	MONGO_DB_ENGINE_VERSION_40 = "4.0"
    31  	MONGO_DB_ENGINE_VERSION_36 = "3.6"
    32  	MONGO_DB_ENGINE_VERSION_32 = "3.2"
    33  
    34  	// 分片
    35  	MONGO_DB_CATEGORY_SHARDING = "sharding"
    36  	// 副本集
    37  	MONGO_DB_CATEGORY_REPLICATE = "replicate"
    38  )