yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/apis/compute/elasticache_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 ELASTIC_CACHE_STATUS_RUNNING = "running" //(正常) 19 ELASTIC_CACHE_STATUS_RESTARTING = "restarting" //(重启中) 20 ELASTIC_CACHE_STATUS_RESTART_FAILED = "restart_failed" //(重启失败) 21 ELASTIC_CACHE_STATUS_DEPLOYING = "deploying" //(创建中) 22 ELASTIC_CACHE_STATUS_CREATE_FAILED = "create_failed" //(创建失败) 23 ELASTIC_CACHE_STATUS_CHANGING = "changing" //(修改中) 24 ELASTIC_CACHE_STATUS_CHANGE_FAILED = "change_failed" //(修改失败) 25 ELASTIC_CACHE_STATUS_INACTIVE = "inactive" //(被禁用) 26 ELASTIC_CACHE_STATUS_FLUSHING = "flushing" //(清除中) 27 ELASTIC_CACHE_STATUS_FLUSHING_FAILED = "flushing_failed" //(清除失败) 28 ELASTIC_CACHE_STATUS_RELEASING = "releasing" //(释放中) 29 ELASTIC_CACHE_STATUS_RELEASED = "released" //(已释放) 30 ELASTIC_CACHE_STATUS_RELEASE_FAILED = "release_failed" //(释放失败) 31 ELASTIC_CACHE_STATUS_TRANSFORMING = "transforming" //(转换中) 32 ELASTIC_CACHE_STATUS_UNAVAILABLE = "unavailable" //(服务停止) 33 ELASTIC_CACHE_STATUS_ERROR = "error" //(删除失败) 34 ELASTIC_CACHE_STATUS_MIGRATING = "migrating" //(迁移中) 35 ELASTIC_CACHE_STATUS_BACKUPRECOVERING = "backuprecovering" //(备份恢复中) 36 ELASTIC_CACHE_STATUS_MINORVERSIONUPGRADING = "minorversionupgrading" //(小版本升级中) 37 ELASTIC_CACHE_STATUS_NETWORKMODIFYING = "networkmodifying" //(网络变更中) 38 ELASTIC_CACHE_STATUS_SSLMODIFYING = "sslmodifying" //(SSL变更中) 39 ELASTIC_CACHE_STATUS_MAJORVERSIONUPGRADING = "majorversionupgrading" //(大版本升级中,可正常访问) 40 ELASTIC_CACHE_STATUS_UNKNOWN = "unknown" //(未知状态) 41 ELASTIC_CACHE_STATUS_DELETING = "deleting" // (删除) 42 ELASTIC_CACHE_STATUS_SNAPSHOTTING = "snapshotting" //(快照) 43 ELASTIC_CACHE_STATUS_SYNCING = "syncing" //(同步中) 44 ELASTIC_CACHE_STATUS_SYNC_FAILED = "sync_failed" //(同步失败) 45 ELASTIC_CACHE_RENEWING = "renewing" //(续费中) 46 ELASTIC_CACHE_RENEW_FAILED = "renew_failed" //(续费失败) 47 ELASTIC_CACHE_SET_AUTO_RENEW = "set_auto_renew" //(设置自动续费) 48 ELASTIC_CACHE_SET_AUTO_RENEW_FAILED = "set_auto_renew_failed" //(设置自动续费失败) 49 50 ELASTIC_CACHE_ENGINE_REDIS = "redis" 51 ELASTIC_CACHE_ENGINE_MEMCACHED = "memcached" 52 ) 53 54 const ( 55 ELASTIC_CACHE_ACCOUNT_STATUS_AVAILABLE = "available" // 正常可用 56 ELASTIC_CACHE_ACCOUNT_STATUS_UNAVAILABLE = "unavailable" // 不可用 57 ELASTIC_CACHE_ACCOUNT_STATUS_CREATING = "creating" // 创建中 58 ELASTIC_CACHE_ACCOUNT_STATUS_MODIFYING = "modifying" // 修改中 59 ELASTIC_CACHE_ACCOUNT_STATUS_CREATE_FAILED = "create_failed" //(创建失败) 60 ELASTIC_CACHE_ACCOUNT_STATUS_DELETING = "deleting" // 删除中 61 ELASTIC_CACHE_ACCOUNT_STATUS_DELETE_FAILED = "delete_failed" // 删除失败 62 ELASTIC_CACHE_ACCOUNT_STATUS_DELETED = "deleted" // 已删除 63 ) 64 65 const ( 66 ELASTIC_CACHE_UPDATE_TAGS = "update_tags" 67 ELASTIC_CACHE_UPDATE_TAGS_FAILED = "update_tags_fail" 68 ) 69 70 const ( 71 ELASTIC_CACHE_ACCOUNT_TYPE_NORMAL = "normal" // 普通账号 72 ELASTIC_CACHE_ACCOUNT_TYPE_ADMIN = "admin" // 管理账号 73 ) 74 75 const ( 76 ELASTIC_CACHE_ACCOUNT_PRIVILEGE_READ = "read" // 只读 77 ELASTIC_CACHE_ACCOUNT_PRIVILEGE_WRITE = "write" // 读写 78 ELASTIC_CACHE_ACCOUNT_PRIVILEGE_REPL = "repl" // 复制,复制权限支持读写,且支持使用SYNC/PSYNC命令。 79 ) 80 81 const ( 82 ELASTIC_CACHE_BACKUP_STATUS_CREATING = "creating" // 备份中 83 ELASTIC_CACHE_BACKUP_STATUS_RESTORING = "restoring" 84 ELASTIC_CACHE_BACKUP_STATUS_COPYING = "copying" 85 ELASTIC_CACHE_BACKUP_STATUS_CREATE_EXPIRED = "expired" //(备份文件已过期) 86 ELASTIC_CACHE_BACKUP_STATUS_CREATE_DELETED = "deleted" //(备份文件已删除) 87 ELASTIC_CACHE_BACKUP_STATUS_DELETING = "deleting" // 删除中 88 ELASTIC_CACHE_BACKUP_STATUS_SUCCESS = "success" // 备份成功 89 ELASTIC_CACHE_BACKUP_STATUS_FAILED = "failed" // 备份失败 90 ELASTIC_CACHE_BACKUP_STATUS_UNKNOWN = "unknown" // 未知 91 ) 92 93 const ( 94 ELASTIC_CACHE_BACKUP_TYPE_FULL = "full" // 全量备份 95 ELASTIC_CACHE_BACKUP_TYPE_INCREMENTAL = "incremental" // 增量备份 96 ) 97 98 const ( 99 ELASTIC_CACHE_BACKUP_MODE_AUTOMATED = "automated" // 自动备份 100 ELASTIC_CACHE_BACKUP_MODE_MANUAL = "manual" // 手动触发备份 101 ) 102 103 const ( 104 ELASTIC_CACHE_ACL_STATUS_AVAILABLE = "available" // 正常可用 105 ELASTIC_CACHE_ACL_STATUS_CREATING = "creating" // 创建中 106 ELASTIC_CACHE_ACL_STATUS_CREATE_FAILED = "create_failed" //(创建失败) 107 ELASTIC_CACHE_ACL_STATUS_DELETING = "deleting" // 删除中 108 ELASTIC_CACHE_ACL_STATUS_DELETE_FAILED = "delete_failed" // 删除失败 109 ELASTIC_CACHE_ACL_STATUS_UPDATING = "updating" // 更新中 110 ELASTIC_CACHE_ACL_STATUS_UPDATE_FAILED = "update_failed" // 更新失败 111 ) 112 113 const ( 114 ELASTIC_CACHE_PARAMETER_STATUS_AVAILABLE = "available" // 正常可用 115 ELASTIC_CACHE_PARAMETER_STATUS_UPDATING = "updating" // 更新中 116 ELASTIC_CACHE_PARAMETER_STATUS_UPDATE_FAILED = "update_failed" // 更新失败 117 ) 118 119 const ( 120 ELASTIC_CACHE_ARCH_TYPE_SINGLE = "single" // 单副本 121 ELASTIC_CACHE_ARCH_TYPE_MASTER = "master" // 主备 122 ELASTIC_CACHE_ARCH_TYPE_CLUSTER = "cluster" // 集群 123 ELASTIC_CACHE_ARCH_TYPE_RWSPLIT = "rwsplit" // 读写分离 124 ) 125 126 const ( 127 ELASTIC_CACHE_NODE_TYPE_SINGLE = "single" 128 ELASTIC_CACHE_NODE_TYPE_DOUBLE = "double" 129 ELASTIC_CACHE_NODE_TYPE_THREE = "three" 130 ELASTIC_CACHE_NODE_TYPE_FOUR = "four" 131 ELASTIC_CACHE_NODE_TYPE_FIVE = "five" 132 ELASTIC_CACHE_NODE_TYPE_SIX = "six" 133 )