@daocloud-proto/skoala 0.7.1 → 0.7.2-10

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 {
@@ -46,11 +58,11 @@ export type FlowRule = {
46
58
  port?: number
47
59
  limitApp?: string
48
60
  resource?: string
49
- grade?: number
61
+ grade?: Grade
50
62
  count?: number
51
- strategy?: number
63
+ strategy?: Strategy
52
64
  refResource?: string
53
- controlBehavior?: number
65
+ controlBehavior?: ControlBehavior
54
66
  warmUpPeriodSec?: number
55
67
  maxQueueingTimeMs?: number
56
68
  clusterMode?: boolean
@@ -61,6 +73,7 @@ export type CreateFlowRuleReq = {
61
73
  clusterName?: string
62
74
  namespaceName?: string
63
75
  sentinelName?: string
76
+ appName?: string
64
77
  flowRule?: FlowRule
65
78
  }
66
79
 
@@ -69,9 +82,9 @@ export type ListFlowRuleReq = {
69
82
  clusterName?: string
70
83
  namespaceName?: string
71
84
  sentinelName?: string
85
+ appName?: string
72
86
  page?: number
73
87
  pageSize?: number
74
- app?: string
75
88
  }
76
89
 
77
90
  export type ListFlowRuleRes = {
@@ -79,11 +92,25 @@ export type ListFlowRuleRes = {
79
92
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
80
93
  }
81
94
 
95
+ export type GetFlowRuleReq = {
96
+ workspaceId?: string
97
+ clusterName?: string
98
+ namespaceName?: string
99
+ sentinelName?: string
100
+ appName?: string
101
+ ruleId?: number
102
+ }
103
+
104
+ export type GetFlowRuleRes = {
105
+ rule?: FlowRule
106
+ }
107
+
82
108
  export type UpdateFlowRuleReq = {
83
109
  workspaceId?: string
84
110
  clusterName?: string
85
111
  namespaceName?: string
86
112
  sentinelName?: string
113
+ appName?: string
87
114
  ruleId?: number
88
115
  flowRule?: FlowRule
89
116
  }
@@ -93,6 +120,7 @@ export type DeleteFlowRuleReq = {
93
120
  clusterName?: string
94
121
  namespaceName?: string
95
122
  sentinelName?: string
123
+ appName?: string
96
124
  ruleId?: number
97
125
  }
98
126
 
@@ -116,6 +144,7 @@ export type CreateDegradeRuleReq = {
116
144
  clusterName?: string
117
145
  namespaceName?: string
118
146
  sentinelName?: string
147
+ appName?: string
119
148
  degradeRule?: DegradeRule
120
149
  }
121
150
 
@@ -124,9 +153,9 @@ export type ListDegradeRuleReq = {
124
153
  clusterName?: string
125
154
  namespaceName?: string
126
155
  sentinelName?: string
156
+ appName?: string
127
157
  page?: number
128
158
  pageSize?: number
129
- app?: string
130
159
  }
131
160
 
132
161
  export type ListDegradeRuleRes = {
@@ -134,11 +163,25 @@ export type ListDegradeRuleRes = {
134
163
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
135
164
  }
136
165
 
166
+ export type GetDegradeRuleReq = {
167
+ workspaceId?: string
168
+ clusterName?: string
169
+ namespaceName?: string
170
+ sentinelName?: string
171
+ appName?: string
172
+ ruleId?: number
173
+ }
174
+
175
+ export type GetDegradeRuleRes = {
176
+ rule?: DegradeRule
177
+ }
178
+
137
179
  export type UpdateDegradeRuleReq = {
138
180
  workspaceId?: string
139
181
  clusterName?: string
140
182
  namespaceName?: string
141
183
  sentinelName?: string
184
+ appName?: string
142
185
  ruleId?: number
143
186
  degradeRule?: DegradeRule
144
187
  }
@@ -148,6 +191,7 @@ export type DeleteDegradeRuleReq = {
148
191
  clusterName?: string
149
192
  namespaceName?: string
150
193
  sentinelName?: string
194
+ appName?: string
151
195
  ruleId?: number
152
196
  }
153
197
 
@@ -175,6 +219,7 @@ export type CreateParamFlowRuleReq = {
175
219
  clusterName?: string
176
220
  namespaceName?: string
177
221
  sentinelName?: string
222
+ appName?: string
178
223
  paramFlowRule?: ParamFlowRule
179
224
  }
180
225
 
@@ -183,9 +228,9 @@ export type ListParamFlowRuleReq = {
183
228
  clusterName?: string
184
229
  namespaceName?: string
185
230
  sentinelName?: string
231
+ appName?: string
186
232
  page?: number
187
233
  pageSize?: number
188
- app?: string
189
234
  }
190
235
 
191
236
  export type ListParamFlowRuleRes = {
@@ -193,11 +238,25 @@ export type ListParamFlowRuleRes = {
193
238
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
194
239
  }
195
240
 
241
+ export type GetParamFlowRuleReq = {
242
+ workspaceId?: string
243
+ clusterName?: string
244
+ namespaceName?: string
245
+ sentinelName?: string
246
+ appName?: string
247
+ ruleId?: number
248
+ }
249
+
250
+ export type GetParamFlowRuleRes = {
251
+ rule?: ParamFlowRule
252
+ }
253
+
196
254
  export type UpdateParamFlowRuleReq = {
197
255
  workspaceId?: string
198
256
  clusterName?: string
199
257
  namespaceName?: string
200
258
  sentinelName?: string
259
+ appName?: string
201
260
  ruleId?: number
202
261
  paramFlowRule?: ParamFlowRule
203
262
  }
@@ -207,6 +266,7 @@ export type DeleteParamFlowRuleReq = {
207
266
  clusterName?: string
208
267
  namespaceName?: string
209
268
  sentinelName?: string
269
+ appName?: string
210
270
  ruleId?: number
211
271
  }
212
272
 
@@ -227,6 +287,7 @@ export type CreateSystemRuleReq = {
227
287
  clusterName?: string
228
288
  namespaceName?: string
229
289
  sentinelName?: string
290
+ appName?: string
230
291
  systemRule?: SystemRule
231
292
  }
232
293
 
@@ -235,9 +296,9 @@ export type ListSystemRuleReq = {
235
296
  clusterName?: string
236
297
  namespaceName?: string
237
298
  sentinelName?: string
299
+ appName?: string
238
300
  page?: number
239
301
  pageSize?: number
240
- app?: string
241
302
  }
242
303
 
243
304
  export type ListSystemRuleRes = {
@@ -245,11 +306,25 @@ export type ListSystemRuleRes = {
245
306
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
246
307
  }
247
308
 
309
+ export type GetSystemRuleReq = {
310
+ workspaceId?: string
311
+ clusterName?: string
312
+ namespaceName?: string
313
+ sentinelName?: string
314
+ appName?: string
315
+ ruleId?: number
316
+ }
317
+
318
+ export type GetSystemRuleRes = {
319
+ rule?: SystemRule
320
+ }
321
+
248
322
  export type UpdateSystemRuleReq = {
249
323
  workspaceId?: string
250
324
  clusterName?: string
251
325
  namespaceName?: string
252
326
  sentinelName?: string
327
+ appName?: string
253
328
  ruleId?: number
254
329
  systemRule?: SystemRule
255
330
  }
@@ -259,6 +334,7 @@ export type DeleteSystemRuleReq = {
259
334
  clusterName?: string
260
335
  namespaceName?: string
261
336
  sentinelName?: string
337
+ appName?: string
262
338
  ruleId?: number
263
339
  }
264
340
 
@@ -277,6 +353,7 @@ export type CreateAuthorityRuleReq = {
277
353
  clusterName?: string
278
354
  namespaceName?: string
279
355
  sentinelName?: string
356
+ appName?: string
280
357
  authorityRule?: AuthorityRule
281
358
  }
282
359
 
@@ -285,9 +362,9 @@ export type ListAuthorityRuleReq = {
285
362
  clusterName?: string
286
363
  namespaceName?: string
287
364
  sentinelName?: string
365
+ appName?: string
288
366
  page?: number
289
367
  pageSize?: number
290
- app?: string
291
368
  }
292
369
 
293
370
  export type ListAuthorityRuleRes = {
@@ -295,11 +372,25 @@ export type ListAuthorityRuleRes = {
295
372
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
296
373
  }
297
374
 
375
+ export type GetAuthorityRuleReq = {
376
+ workspaceId?: string
377
+ clusterName?: string
378
+ namespaceName?: string
379
+ sentinelName?: string
380
+ appName?: string
381
+ ruleId?: number
382
+ }
383
+
384
+ export type GetAuthorityRuleRes = {
385
+ rule?: AuthorityRule
386
+ }
387
+
298
388
  export type UpdateAuthorityRuleReq = {
299
389
  workspaceId?: string
300
390
  clusterName?: string
301
391
  namespaceName?: string
302
392
  sentinelName?: string
393
+ appName?: string
303
394
  ruleId?: number
304
395
  authorityRule?: AuthorityRule
305
396
  }
@@ -309,5 +400,6 @@ export type DeleteAuthorityRuleReq = {
309
400
  clusterName?: string
310
401
  namespaceName?: string
311
402
  sentinelName?: string
403
+ appName?: string
312
404
  ruleId?: number
313
405
  }