yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/apis/compute/snapshot_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 // create by 19 SNAPSHOT_MANUAL = "manual" 20 SNAPSHOT_AUTO = "auto" 21 22 SNAPSHOT_CREATING = "creating" 23 SNAPSHOT_ROLLBACKING = "rollbacking" 24 SNAPSHOT_FAILED = "create_failed" 25 SNAPSHOT_READY = "ready" 26 SNAPSHOT_DELETE_FAILED = "delete_failed" 27 SNAPSHOT_DELETING = "deleting" 28 SNAPSHOT_UNKNOWN = "unknown" 29 30 SNAPSHOT_POLICY_CREATING = "creating" 31 32 SNAPSHOT_POLICY_READY = "ready" 33 SNAPSHOT_POLICY_UPDATING = "updating" 34 SNAPSHOT_POLICY_UNKNOWN = "unknown" 35 SNAPSHOT_POLICY_DELETING = "deleting" 36 SNAPSHOT_POLICY_DELETE_FAILED = "delete_failed" 37 38 SNAPSHOT_POLICY_APPLY = "applying" 39 SNAPSHOT_POLICY_APPLY_FAILED = "apply_failed" 40 SNAPSHOT_POLICY_CANCEL = "canceling" 41 SNAPSHOT_POLICY_CANCEL_FAILED = "cancel_failed" 42 43 SNAPSHOT_POLICY_DISK_INIT = "init" 44 SNAPSHOT_POLICY_DISK_READY = "ready" 45 SNAPSHOT_POLICY_DISK_DELETING = "deleting" 46 SNAPSHOT_POLICY_DISK_DELETE_FAILED = "delete_failed" 47 48 INSTANCE_SNAPSHOT_READY = "ready" 49 INSTANCE_SNAPSHOT_UNKNOWN = "unknown" 50 INSTANCE_SNAPSHOT_FAILED = "instance_snapshot_create_failed" 51 INSTANCE_SNAPSHOT_START_DELETE = "instance_snapshot_start_delete" 52 INSTANCE_SNAPSHOT_DELETE_FAILED = "instance_snapshot_delete_failed" 53 INSTANCE_SNAPSHOT_RESET = "instance_snapshot_reset" 54 55 SNAPSHOT_POLICY_CACHE_STATUS_READY = "ready" 56 SNAPSHOT_POLICY_CACHE_STATUS_DELETING = "deleting" 57 SNAPSHOT_POLICY_CACHE_STATUS_DELETE_FAILED = "delete_failed" 58 59 SNAPSHOT_EXIST = "exist" 60 SNAPSHOT_NOT_EXIST = "not_exist" 61 )