@@ -54,30 +54,45 @@ type BCSInstance struct {
5454}
5555
5656type Basic struct {
57- ID string `json:"id"`
58- Name string `json:"name"`
59- Version string `json:"version"`
60- VersionType int `json:"version_type"`
61- ServiceType string `json:"service_type"`
62- PurchaseType string `json:"purchase_type"`
63- SignAlgorithm string `json:"sign_algorithm"`
64- Consensus string `json:"consensus"`
65- ChargingMode int `json:"charging_mode"`
66- DatabaseType string `json:"database_type"`
67- ClusterID string `json:"cluster_id"`
68- ClusterName string `json:"cluster_name"`
69- ClusterType string `json:"cluster_type"`
70- ClusterAvailabilityZone string `json:"cluster_az"`
71- CreatedTime string `json:"created_time"`
72- DeployType string `json:"deploy_type"`
73- IsCrossRegion bool `json:"is_cross_region"`
74- IsSupportRollback bool `json:"is_support_rollback"`
75- IsSupportRestful bool `json:"is_support_restful"`
76- IsOldService bool `json:"is_old_service"`
77- OldServiceVersion string `json:"old_service_version"`
78- AgentPortalAddress []string `json:"agent_portal_addrs"`
79- Status string `json:"status"`
80- ProcessStatus string `json:"process_status"`
57+ ID string `json:"id"`
58+ Name string `json:"name"`
59+ KernelType string `json:"kernel_type"`
60+ Version string `json:"version"`
61+ VersionType int `json:"version_type"`
62+ VolumeType string `json:"volume_type"`
63+ ServiceType string `json:"service_type"`
64+ PurchaseType string `json:"purchase_type"`
65+ SignAlgorithm string `json:"sign_algorithm"`
66+ Consensus string `json:"consensus"`
67+ ChargingMode int `json:"charging_mode"`
68+ DatabaseType string `json:"database_type"`
69+ ClusterID string `json:"cluster_id"`
70+ ClusterName string `json:"cluster_name"`
71+ ClusterType string `json:"cluster_type"`
72+ ClusterPlatformType string `json:"cluster_platform_type"`
73+ ClusterAvailabilityZone string `json:"cluster_az"`
74+ CreatedTime string `json:"created_time"`
75+ DeployType string `json:"deploy_type"`
76+ DeployScale int `json:"deploy_scale"`
77+ DeployStatus int `json:"deploy_status"`
78+ DetailStatus DetailStatus `json:"detail_status"`
79+ IsCrossRegion bool `json:"is_cross_region"`
80+ IsSupportRollback bool `json:"is_support_rollback"`
81+ IsSupportRestful bool `json:"is_support_restful"`
82+ IsSupportTc3 bool `json:"is_support_tc3"`
83+ IsOldService bool `json:"is_old_service"`
84+ OldServiceVersion string `json:"old_service_version"`
85+ AgentPortalAddress []string `json:"agent_portal_addrs"`
86+ Status string `json:"status"`
87+ ProcessStatus string `json:"process_status"`
88+ Tc3TaskServerPortalAddrs []string `json:"tc3_taskserver_portal_addrs"`
89+ TotalDeployPeer int `json:"total_deploy_peer"`
90+ OrderStatus int `json:"order_status"`
91+ OrderInfo OrderInfo `json:"order_info"`
92+ OrderFadeCache int `json:"order_fade_cache"`
93+ OrderFadeEnable bool `json:"order_fade_enable"`
94+ IEFClusterInfo IEFCluster `json:"ief_cluster_info"`
95+ IEFAPIVersion string `json:"iefapi_version"`
8196}
8297
8398type Channel struct {
@@ -107,6 +122,9 @@ type CouchDB struct {
107122
108123type DMSKafka struct {
109124 Address []string `json:"addr"`
125+ Name string `json:"name"`
126+ Status string `json:"status"`
127+ NodeCount int `json:"node_cnt"`
110128 OrderFadeEnable bool `json:"order_fade_enable"`
111129 OrderFadeCache int `json:"order_fade_cache"`
112130}
@@ -115,6 +133,13 @@ type IEF struct {
115133 DeployMode int `json:"deploy_mode"`
116134}
117135
136+ type IEFCluster struct {
137+ GroupID string `json:"group_id"`
138+ GroupName string `json:"group_name"`
139+ InstanceID string `json:"instance_id"`
140+ InstanceName string `json:"instance_name"`
141+ }
142+
118143type SFS struct {
119144 Name string `json:"name"`
120145 PVCName string `json:"pvc_name"`
@@ -131,6 +156,25 @@ type OBS struct {
131156 Address string `json:"addr"`
132157}
133158
159+ type DetailStatus struct {
160+ AgentStatus string `json:"agent_status"`
161+ ConsensusStatus string `json:"consensus_status"`
162+ OrgStatus string `json:"org_status"`
163+ PeerStatus string `json:"peer_status"`
164+ PluginStatus string `json:"plugin_status"`
165+ }
166+
167+ type OrderInfo struct {
168+ Delete int `json:"delete"`
169+ Operate int `json:"operate"`
170+ OrderID string `json:"order_id"`
171+ OrderStatus int `json:"order_status"`
172+ OrderType int `json:"order_type"`
173+ Release int `json:"release"`
174+ ResourceErrorCode string `json:"resource_error_code"`
175+ ResourceStatus int `json:"resource_status"`
176+ }
177+
134178func (r ShowResult ) Extract () (* BCSInstance , error ) {
135179 var res BCSInstance
136180 err := r .ExtractInto (& res )
0 commit comments