@daocloud-proto/mcamel-rabbitmq 0.12.0-rc2-2 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cluster.pb.ts +27 -0
- package/common.pb.ts +45 -1
- package/package.json +1 -1
package/cluster.pb.ts
CHANGED
|
@@ -33,6 +33,29 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
|
33
33
|
Install = "Install",
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
export type GetPermissionsListReq = {
|
|
37
|
+
workspaceId?: number
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type GetPermissionsListResp = {
|
|
41
|
+
getInstance?: boolean
|
|
42
|
+
createInstance?: boolean
|
|
43
|
+
updateInstance?: boolean
|
|
44
|
+
deleteInstance?: boolean
|
|
45
|
+
getMetric?: boolean
|
|
46
|
+
getInstanceLog?: boolean
|
|
47
|
+
getConfig?: boolean
|
|
48
|
+
updateConfig?: boolean
|
|
49
|
+
getBackup?: boolean
|
|
50
|
+
createBackup?: boolean
|
|
51
|
+
updateBackup?: boolean
|
|
52
|
+
deleteBackup?: boolean
|
|
53
|
+
getBackupConf?: boolean
|
|
54
|
+
createBackupConf?: boolean
|
|
55
|
+
updateBackupConf?: boolean
|
|
56
|
+
deleteBackupConf?: boolean
|
|
57
|
+
}
|
|
58
|
+
|
|
36
59
|
export type GetAllEventKindsListResp = {
|
|
37
60
|
data?: string[]
|
|
38
61
|
}
|
|
@@ -115,6 +138,7 @@ export type GetClusterPodLabelListReq = {
|
|
|
115
138
|
page?: number
|
|
116
139
|
pageSize?: number
|
|
117
140
|
searchKey?: string
|
|
141
|
+
filterNamespace?: string
|
|
118
142
|
cluster?: string
|
|
119
143
|
}
|
|
120
144
|
|
|
@@ -268,4 +292,7 @@ export class Cluster {
|
|
|
268
292
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
269
293
|
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
270
294
|
}
|
|
295
|
+
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
296
|
+
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
297
|
+
}
|
|
271
298
|
}
|
package/common.pb.ts
CHANGED
|
@@ -151,6 +151,7 @@ export type PodCommon = {
|
|
|
151
151
|
containersName?: string[]
|
|
152
152
|
ownerReference?: OwnerReference[]
|
|
153
153
|
initContainersName?: string[]
|
|
154
|
+
initContainersStatuses?: ContainerStatus[]
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
export type OwnerReference = {
|
|
@@ -164,7 +165,50 @@ export type CommonItemStatus = {
|
|
|
164
165
|
serviceAddresses?: string[]
|
|
165
166
|
webManagerAddress?: string
|
|
166
167
|
webLogAddress?: string
|
|
167
|
-
isHwameistorSc?: boolean
|
|
168
168
|
avgPvAllocatedInGb?: number
|
|
169
169
|
avgPvUsedInGb?: number
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type AccessWhitelistInternal = {
|
|
173
|
+
namespace?: string
|
|
174
|
+
podSelector?: {[key: string]: string}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export type AccessWhitelistExternal = {
|
|
178
|
+
cidr?: string
|
|
179
|
+
ip?: string
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type AccessWhitelist = {
|
|
183
|
+
internals?: AccessWhitelistInternal[]
|
|
184
|
+
externals?: AccessWhitelistExternal[]
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type ContainerStatus = {
|
|
188
|
+
name?: string
|
|
189
|
+
state?: ContainerState
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type ContainerState = {
|
|
193
|
+
waiting?: ContainerStateWaiting
|
|
194
|
+
running?: ContainerStateRunning
|
|
195
|
+
terminated?: ContainerStateTerminated
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export type ContainerStateWaiting = {
|
|
199
|
+
reason?: string
|
|
200
|
+
message?: string
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export type ContainerStateRunning = {
|
|
204
|
+
startedAt?: string
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type ContainerStateTerminated = {
|
|
208
|
+
exitCode?: number
|
|
209
|
+
signal?: number
|
|
210
|
+
reason?: string
|
|
211
|
+
message?: string
|
|
212
|
+
startedAt?: string
|
|
213
|
+
finishedAt?: string
|
|
170
214
|
}
|