@daocloud-proto/skoala 0.7.1 → 0.7.2-12

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.
@@ -59,6 +59,12 @@ export enum TimeUnit {
59
59
  Second = "Second",
60
60
  }
61
61
 
62
+ export enum PluginSwitchStatus {
63
+ PLUGIN_SWITCH_STATUS_UNSPECIFIED = "PLUGIN_SWITCH_STATUS_UNSPECIFIED",
64
+ On = "On",
65
+ Off = "Off",
66
+ }
67
+
62
68
  export type Cluster = {
63
69
  id?: string
64
70
  name?: string
@@ -90,4 +96,16 @@ export type API = {
90
96
  nacosGroupName?: string
91
97
  dataType?: APIDataType
92
98
  detail?: string
99
+ }
100
+
101
+ export type Image = {
102
+ registry?: string
103
+ repository?: string
104
+ tag?: string
105
+ pullPolicy?: string
106
+ }
107
+
108
+ export type Chart = {
109
+ version?: string
110
+ images?: {[key: string]: Image}
93
111
  }
@@ -5,17 +5,24 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
8
9
  export type GatewayRLSConfig = {
10
+ chart?: SkoalaApiGeneralV1alpha1Common.Chart
11
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
12
+ replicas?: number
13
+ }
14
+
15
+ export type GatewayRLSRule = {
9
16
  unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
10
17
  requestsPerUnit?: number
11
18
  }
12
19
 
13
- export type CreateGatewayRLSReq = {
20
+ export type SwitchGatewayRLSReq = {
14
21
  workspaceId?: string
15
22
  clusterName?: string
16
23
  namespaceName?: string
17
24
  gatewayName?: string
18
- config?: GatewayRLSConfig
25
+ switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
19
26
  }
20
27
 
21
28
  export type GetGatewayRLSReq = {
@@ -26,25 +33,49 @@ export type GetGatewayRLSReq = {
26
33
  }
27
34
 
28
35
  export type GetGatewayRLSRes = {
29
- config?: GatewayRLSConfig
36
+ switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
30
37
  }
31
38
 
32
- export type DeleteGatewayRLSReq = {
39
+ export type SetGatewayRLSConfigReq = {
33
40
  workspaceId?: string
34
41
  clusterName?: string
35
42
  namespaceName?: string
36
43
  gatewayName?: string
44
+ config?: GatewayRLSConfig
37
45
  }
38
46
 
39
- export type UpdateGatewayRLSReq = {
47
+ export type GetGatewayRLSConfigReq = {
40
48
  workspaceId?: string
41
49
  clusterName?: string
42
50
  namespaceName?: string
43
51
  gatewayName?: string
52
+ }
53
+
54
+ export type GetGatewayRLSConfigRes = {
44
55
  config?: GatewayRLSConfig
45
56
  }
46
57
 
58
+ export type SetGatewayRLSRuleReq = {
59
+ workspaceId?: string
60
+ clusterName?: string
61
+ namespaceName?: string
62
+ gatewayName?: string
63
+ rule?: GatewayRLSRule
64
+ }
65
+
66
+ export type GetGatewayRLSRuleReq = {
67
+ workspaceId?: string
68
+ clusterName?: string
69
+ namespaceName?: string
70
+ gatewayName?: string
71
+ }
72
+
73
+ export type GetGatewayRLSRuleRes = {
74
+ rule?: GatewayRLSRule
75
+ }
76
+
47
77
  export type GatewayAuthzConfig = {
78
+ chart?: SkoalaApiGeneralV1alpha1Common.Chart
48
79
  }
49
80
 
50
81
  export type CreateGatewayAuthzReq = {
@@ -157,10 +157,7 @@ export type RestartNacosReq = {
157
157
 
158
158
  export type NacosConfig = {
159
159
  type?: NacosConfigType
160
- version?: string
161
- imageRegistry?: string
162
- imageRepository?: string
163
- imageTag?: string
160
+ chart?: SkoalaApiGeneralV1alpha1Common.Chart
164
161
  replicas?: number
165
162
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
166
163
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
@@ -276,6 +273,8 @@ export type GetNacosServiceInsightReq = {
276
273
  nacosNamespace?: string
277
274
  nacosGroupName?: string
278
275
  nacosService?: string
276
+ start?: string
277
+ end?: string
279
278
  }
280
279
 
281
280
  export type GetNacosServiceInsightRes = {
@@ -291,8 +290,8 @@ export type UpdateNacosServiceReq = {
291
290
  nacosGroupName?: string
292
291
  nacosService?: string
293
292
  protectThreshold?: number
294
- metadata?: string
295
- selector?: string
293
+ metadata?: {[key: string]: string}
294
+ selector?: {[key: string]: string}
296
295
  }
297
296
 
298
297
  export type DeleteNacosServiceReq = {
@@ -425,7 +424,7 @@ export type UpdateNacosServiceInstanceReq = {
425
424
  ephemeral?: boolean
426
425
  weight?: number
427
426
  enabled?: boolean
428
- metadata?: string
427
+ metadata?: {[key: string]: string}
429
428
  nacosInstanceId?: string
430
429
  }
431
430
 
@@ -740,7 +739,16 @@ export type DeleteNacosConfigReq = {
740
739
  nacosNamespace?: string
741
740
  dataId?: string
742
741
  group?: string
743
- delType?: string
742
+ }
743
+
744
+ export type DeleteNacosConfigBatchReq = {
745
+ workspaceId?: string
746
+ clusterName?: string
747
+ namespaceName?: string
748
+ nacosName?: string
749
+ nacosNamespace?: string
750
+ dataId?: string
751
+ group?: string
744
752
  ids?: string
745
753
  }
746
754
 
@@ -4,6 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
7
8
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
8
9
  import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
9
10
 
@@ -79,7 +80,7 @@ export type UpdatePluginReq = {
79
80
 
80
81
  export type UpdateSentinelPluginReq = {
81
82
  enabled?: boolean
82
- image?: string
83
+ chart?: SkoalaApiGeneralV1alpha1Common.Chart
83
84
  replicas?: number
84
85
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
85
86
  type?: SkoalaApiGeneralV1alpha1Service.ServiceType
@@ -7,8 +7,20 @@
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
 
9
9
  export enum Grade {
10
- FLOW_GRADE_THREAD = "FLOW_GRADE_THREAD",
11
- FLOW_GRADE_QPS = "FLOW_GRADE_QPS",
10
+ THREAD = "THREAD",
11
+ QPS = "QPS",
12
+ }
13
+
14
+ export enum Strategy {
15
+ Director = "Director",
16
+ ASSOCIATION = "ASSOCIATION",
17
+ LINKER = "LINKER",
18
+ }
19
+
20
+ export enum ControlBehavior {
21
+ FAST_FAILED = "FAST_FAILED",
22
+ WARM_UP = "WARM_UP",
23
+ WAITING_IN_QUEUE = "WAITING_IN_QUEUE",
12
24
  }
13
25
 
14
26
  export enum DegradeRuleGrade {
@@ -39,6 +51,16 @@ export type GetAppInstanceRes = {
39
51
  lastHeartbeat?: string
40
52
  }
41
53
 
54
+ export type DeleteAppInstanceReq = {
55
+ workspaceId?: string
56
+ clusterName?: string
57
+ namespaceName?: string
58
+ sentinelName?: string
59
+ serviceName?: string
60
+ instanceIp?: string
61
+ heartbeatPort?: number
62
+ }
63
+
42
64
  export type FlowRule = {
43
65
  id?: number
44
66
  app?: string
@@ -46,11 +68,11 @@ export type FlowRule = {
46
68
  port?: number
47
69
  limitApp?: string
48
70
  resource?: string
49
- grade?: number
71
+ grade?: Grade
50
72
  count?: number
51
- strategy?: number
73
+ strategy?: Strategy
52
74
  refResource?: string
53
- controlBehavior?: number
75
+ controlBehavior?: ControlBehavior
54
76
  warmUpPeriodSec?: number
55
77
  maxQueueingTimeMs?: number
56
78
  clusterMode?: boolean
@@ -61,6 +83,7 @@ export type CreateFlowRuleReq = {
61
83
  clusterName?: string
62
84
  namespaceName?: string
63
85
  sentinelName?: string
86
+ appName?: string
64
87
  flowRule?: FlowRule
65
88
  }
66
89
 
@@ -69,9 +92,9 @@ export type ListFlowRuleReq = {
69
92
  clusterName?: string
70
93
  namespaceName?: string
71
94
  sentinelName?: string
95
+ appName?: string
72
96
  page?: number
73
97
  pageSize?: number
74
- app?: string
75
98
  }
76
99
 
77
100
  export type ListFlowRuleRes = {
@@ -79,11 +102,25 @@ export type ListFlowRuleRes = {
79
102
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
80
103
  }
81
104
 
105
+ export type GetFlowRuleReq = {
106
+ workspaceId?: string
107
+ clusterName?: string
108
+ namespaceName?: string
109
+ sentinelName?: string
110
+ appName?: string
111
+ ruleId?: number
112
+ }
113
+
114
+ export type GetFlowRuleRes = {
115
+ rule?: FlowRule
116
+ }
117
+
82
118
  export type UpdateFlowRuleReq = {
83
119
  workspaceId?: string
84
120
  clusterName?: string
85
121
  namespaceName?: string
86
122
  sentinelName?: string
123
+ appName?: string
87
124
  ruleId?: number
88
125
  flowRule?: FlowRule
89
126
  }
@@ -93,6 +130,7 @@ export type DeleteFlowRuleReq = {
93
130
  clusterName?: string
94
131
  namespaceName?: string
95
132
  sentinelName?: string
133
+ appName?: string
96
134
  ruleId?: number
97
135
  }
98
136
 
@@ -116,6 +154,7 @@ export type CreateDegradeRuleReq = {
116
154
  clusterName?: string
117
155
  namespaceName?: string
118
156
  sentinelName?: string
157
+ appName?: string
119
158
  degradeRule?: DegradeRule
120
159
  }
121
160
 
@@ -124,9 +163,9 @@ export type ListDegradeRuleReq = {
124
163
  clusterName?: string
125
164
  namespaceName?: string
126
165
  sentinelName?: string
166
+ appName?: string
127
167
  page?: number
128
168
  pageSize?: number
129
- app?: string
130
169
  }
131
170
 
132
171
  export type ListDegradeRuleRes = {
@@ -134,11 +173,25 @@ export type ListDegradeRuleRes = {
134
173
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
135
174
  }
136
175
 
176
+ export type GetDegradeRuleReq = {
177
+ workspaceId?: string
178
+ clusterName?: string
179
+ namespaceName?: string
180
+ sentinelName?: string
181
+ appName?: string
182
+ ruleId?: number
183
+ }
184
+
185
+ export type GetDegradeRuleRes = {
186
+ rule?: DegradeRule
187
+ }
188
+
137
189
  export type UpdateDegradeRuleReq = {
138
190
  workspaceId?: string
139
191
  clusterName?: string
140
192
  namespaceName?: string
141
193
  sentinelName?: string
194
+ appName?: string
142
195
  ruleId?: number
143
196
  degradeRule?: DegradeRule
144
197
  }
@@ -148,6 +201,7 @@ export type DeleteDegradeRuleReq = {
148
201
  clusterName?: string
149
202
  namespaceName?: string
150
203
  sentinelName?: string
204
+ appName?: string
151
205
  ruleId?: number
152
206
  }
153
207
 
@@ -175,6 +229,7 @@ export type CreateParamFlowRuleReq = {
175
229
  clusterName?: string
176
230
  namespaceName?: string
177
231
  sentinelName?: string
232
+ appName?: string
178
233
  paramFlowRule?: ParamFlowRule
179
234
  }
180
235
 
@@ -183,9 +238,9 @@ export type ListParamFlowRuleReq = {
183
238
  clusterName?: string
184
239
  namespaceName?: string
185
240
  sentinelName?: string
241
+ appName?: string
186
242
  page?: number
187
243
  pageSize?: number
188
- app?: string
189
244
  }
190
245
 
191
246
  export type ListParamFlowRuleRes = {
@@ -193,11 +248,25 @@ export type ListParamFlowRuleRes = {
193
248
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
194
249
  }
195
250
 
251
+ export type GetParamFlowRuleReq = {
252
+ workspaceId?: string
253
+ clusterName?: string
254
+ namespaceName?: string
255
+ sentinelName?: string
256
+ appName?: string
257
+ ruleId?: number
258
+ }
259
+
260
+ export type GetParamFlowRuleRes = {
261
+ rule?: ParamFlowRule
262
+ }
263
+
196
264
  export type UpdateParamFlowRuleReq = {
197
265
  workspaceId?: string
198
266
  clusterName?: string
199
267
  namespaceName?: string
200
268
  sentinelName?: string
269
+ appName?: string
201
270
  ruleId?: number
202
271
  paramFlowRule?: ParamFlowRule
203
272
  }
@@ -207,6 +276,7 @@ export type DeleteParamFlowRuleReq = {
207
276
  clusterName?: string
208
277
  namespaceName?: string
209
278
  sentinelName?: string
279
+ appName?: string
210
280
  ruleId?: number
211
281
  }
212
282
 
@@ -227,6 +297,7 @@ export type CreateSystemRuleReq = {
227
297
  clusterName?: string
228
298
  namespaceName?: string
229
299
  sentinelName?: string
300
+ appName?: string
230
301
  systemRule?: SystemRule
231
302
  }
232
303
 
@@ -235,9 +306,9 @@ export type ListSystemRuleReq = {
235
306
  clusterName?: string
236
307
  namespaceName?: string
237
308
  sentinelName?: string
309
+ appName?: string
238
310
  page?: number
239
311
  pageSize?: number
240
- app?: string
241
312
  }
242
313
 
243
314
  export type ListSystemRuleRes = {
@@ -245,11 +316,25 @@ export type ListSystemRuleRes = {
245
316
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
246
317
  }
247
318
 
319
+ export type GetSystemRuleReq = {
320
+ workspaceId?: string
321
+ clusterName?: string
322
+ namespaceName?: string
323
+ sentinelName?: string
324
+ appName?: string
325
+ ruleId?: number
326
+ }
327
+
328
+ export type GetSystemRuleRes = {
329
+ rule?: SystemRule
330
+ }
331
+
248
332
  export type UpdateSystemRuleReq = {
249
333
  workspaceId?: string
250
334
  clusterName?: string
251
335
  namespaceName?: string
252
336
  sentinelName?: string
337
+ appName?: string
253
338
  ruleId?: number
254
339
  systemRule?: SystemRule
255
340
  }
@@ -259,6 +344,7 @@ export type DeleteSystemRuleReq = {
259
344
  clusterName?: string
260
345
  namespaceName?: string
261
346
  sentinelName?: string
347
+ appName?: string
262
348
  ruleId?: number
263
349
  }
264
350
 
@@ -277,6 +363,7 @@ export type CreateAuthorityRuleReq = {
277
363
  clusterName?: string
278
364
  namespaceName?: string
279
365
  sentinelName?: string
366
+ appName?: string
280
367
  authorityRule?: AuthorityRule
281
368
  }
282
369
 
@@ -285,9 +372,9 @@ export type ListAuthorityRuleReq = {
285
372
  clusterName?: string
286
373
  namespaceName?: string
287
374
  sentinelName?: string
375
+ appName?: string
288
376
  page?: number
289
377
  pageSize?: number
290
- app?: string
291
378
  }
292
379
 
293
380
  export type ListAuthorityRuleRes = {
@@ -295,11 +382,25 @@ export type ListAuthorityRuleRes = {
295
382
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
296
383
  }
297
384
 
385
+ export type GetAuthorityRuleReq = {
386
+ workspaceId?: string
387
+ clusterName?: string
388
+ namespaceName?: string
389
+ sentinelName?: string
390
+ appName?: string
391
+ ruleId?: number
392
+ }
393
+
394
+ export type GetAuthorityRuleRes = {
395
+ rule?: AuthorityRule
396
+ }
397
+
298
398
  export type UpdateAuthorityRuleReq = {
299
399
  workspaceId?: string
300
400
  clusterName?: string
301
401
  namespaceName?: string
302
402
  sentinelName?: string
403
+ appName?: string
303
404
  ruleId?: number
304
405
  authorityRule?: AuthorityRule
305
406
  }
@@ -309,5 +410,6 @@ export type DeleteAuthorityRuleReq = {
309
410
  clusterName?: string
310
411
  namespaceName?: string
311
412
  sentinelName?: string
413
+ appName?: string
312
414
  ruleId?: number
313
415
  }