const.go 1.2 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 status
  15. const (
  16. INIT = "init"
  17. PREPARE = "prepare"
  18. PREPARE_FAIL = "prepare_fail"
  19. READY = "ready"
  20. RUNNING = "running"
  21. MAINTAINING = "maintaining"
  22. START_MAINTAIN = "start_maintain"
  23. DELETING = "deleting"
  24. DELETE = "delete"
  25. DELETE_FAIL = "delete_fail"
  26. UNKNOWN = "unknown"
  27. SYNCING_STATUS = "syncing_status"
  28. SYNC = "sync"
  29. SYNC_FAIL = "sync_fail"
  30. START_CONVERT = "start_convert"
  31. CONVERTING = "converting"
  32. START_FAIL = "start_fail"
  33. STOP_FAIL = "stop_fail"
  34. )
  35. const (
  36. SERVER_RUNNING = "running"
  37. SERVER_ADMIN = "admin"
  38. SERVER_READY = "ready"
  39. SERVER_UNKNOWN = "unknown"
  40. )