kafka.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. "yunion.io/x/onecloud/pkg/apis"
  18. )
  19. const (
  20. KAFKA_STATUS_AVAILABLE = compute.KAFKA_STATUS_AVAILABLE
  21. KAFKA_STATUS_UNAVAILABLE = compute.KAFKA_STATUS_UNAVAILABLE
  22. KAFKA_STATUS_CREATING = compute.KAFKA_STATUS_CREATING
  23. KAFKA_STATUS_DELETING = compute.KAFKA_STATUS_DELETING
  24. KAFKA_STATUS_DELETE_FAILED = "delete_failed"
  25. KAFKA_STATUS_UNKNOWN = compute.KAFKA_STATUS_UNKNOWN
  26. KAFKA_UPDATE_TAGS = "update_tags"
  27. KAFKA_UPDATE_TAGS_FAILED = "update_tags_fail"
  28. )
  29. type KafkaCreateInput struct {
  30. }
  31. // 资源返回详情
  32. type KafkaDetails struct {
  33. apis.VirtualResourceDetails
  34. ManagedResourceInfo
  35. CloudregionResourceInfo
  36. VpcResourceInfoBase
  37. NetworkResourceInfoBase
  38. ZoneResourceInfoBase
  39. SKafka
  40. }
  41. // 资源列表请求参数
  42. type KafkaListInput struct {
  43. apis.VirtualResourceListInput
  44. apis.ExternalizedResourceBaseListInput
  45. apis.DeletePreventableResourceBaseListInput
  46. VpcFilterListInput
  47. }