snapshot_const.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 compute
  15. import (
  16. "yunion.io/x/cloudmux/pkg/apis/compute"
  17. )
  18. const (
  19. // create by
  20. SNAPSHOT_MANUAL = "manual"
  21. SNAPSHOT_AUTO = "auto"
  22. SNAPSHOT_CREATING = compute.SNAPSHOT_CREATING
  23. SNAPSHOT_ROLLBACKING = compute.SNAPSHOT_ROLLBACKING
  24. SNAPSHOT_FAILED = compute.SNAPSHOT_FAILED
  25. SNAPSHOT_READY = compute.SNAPSHOT_READY
  26. SNAPSHOT_DELETE_FAILED = compute.SNAPSHOT_DELETE_FAILED
  27. SNAPSHOT_DELETING = compute.SNAPSHOT_DELETING
  28. SNAPSHOT_UNKNOWN = compute.SNAPSHOT_UNKNOWN
  29. INSTANCE_SNAPSHOT_READY = compute.INSTANCE_SNAPSHOT_READY
  30. INSTANCE_SNAPSHOT_UNKNOWN = "unknown"
  31. INSTANCE_SNAPSHOT_FAILED = "instance_snapshot_create_failed"
  32. INSTANCE_SNAPSHOT_START_DELETE = "instance_snapshot_start_delete"
  33. INSTANCE_SNAPSHOT_DELETE_FAILED = "instance_snapshot_delete_failed"
  34. INSTANCE_SNAPSHOT_RESET = "instance_snapshot_reset"
  35. SNAPSHOT_EXIST = "exist"
  36. SNAPSHOT_NOT_EXIST = "not_exist"
  37. )