@daocloud-proto/skoala 0.5.1 → 0.6.0

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.
@@ -26,6 +26,7 @@ export type ListNacosReq = {
26
26
  workspaceId?: string
27
27
  clusterName?: string
28
28
  namespaceName?: string
29
+ nacosName?: string
29
30
  page?: number
30
31
  pageSize?: number
31
32
  }
@@ -42,14 +43,18 @@ export type Nacos = {
42
43
  namespaceName?: string
43
44
  type?: NacosConfigType
44
45
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
45
- nodePort?: number
46
+ nodePort?: string
46
47
  status?: NacosStatus
47
48
  replicas?: number
48
49
  image?: string
49
50
  version?: string
51
+ nodeCount?: number
52
+ healthNodeCount?: number
50
53
  database?: NacosDatabase
51
54
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
52
55
  condition?: NacosCondition[]
56
+ volume?: Volume
57
+ plugins?: Plugins
53
58
  createAt?: string
54
59
  }
55
60
 
@@ -89,6 +94,21 @@ export type UpdateNacosReq = {
89
94
  nacosName?: string
90
95
  namespaceName?: string
91
96
  config?: NacosConfig
97
+ plugins?: Plugins
98
+ }
99
+
100
+ export type Plugins = {
101
+ sentinel?: Sentinel
102
+ }
103
+
104
+ export type Sentinel = {
105
+ enabled?: boolean
106
+ image?: string
107
+ replicas?: number
108
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
109
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
110
+ port?: number
111
+ nodePort?: number
92
112
  }
93
113
 
94
114
  export type UpdateNacosRes = {
@@ -101,6 +121,7 @@ export type CreateNacosReq = {
101
121
  namespaceName?: string
102
122
  createNamespace?: boolean
103
123
  config?: NacosConfig
124
+ plugins?: Plugins
104
125
  }
105
126
 
106
127
  export type CreateNacosRes = {
@@ -116,16 +137,32 @@ export type DeleteNacosReq = {
116
137
  export type DeleteNacosRes = {
117
138
  }
118
139
 
140
+ export type RestartNacosReq = {
141
+ workspaceId?: string
142
+ clusterName?: string
143
+ nacosName?: string
144
+ namespaceName?: string
145
+ }
146
+
147
+ export type RestartNacosRes = {
148
+ }
149
+
119
150
  export type NacosConfig = {
120
151
  type?: NacosConfigType
121
152
  version?: string
122
153
  replicas?: number
123
- cpu?: string
124
- memory?: string
154
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
125
155
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
126
156
  nodePort?: string
127
157
  databaseEnabled?: boolean
128
158
  databaseParam?: DatabaseParam
159
+ volume?: Volume
160
+ }
161
+
162
+ export type Volume = {
163
+ enabled?: boolean
164
+ requests?: SkoalaApiGeneralV1alpha1Resource.ResourceList
165
+ storageClass?: string
129
166
  }
130
167
 
131
168
  export type DatabaseParam = {
@@ -141,7 +178,500 @@ export type ListNacosServiceReq = {
141
178
  clusterName?: string
142
179
  nacosName?: string
143
180
  namespaceName?: string
181
+ nacosNamespace?: string
182
+ page?: number
183
+ pageSize?: number
144
184
  }
145
185
 
146
186
  export type ListNacosServiceRes = {
187
+ items?: NacosServiceBrief[]
188
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
189
+ }
190
+
191
+ export type NacosServiceBrief = {
192
+ name?: string
193
+ groupName?: string
194
+ clusterCount?: number
195
+ healthyInstanceCount?: number
196
+ ipCount?: number
197
+ triggerFlag?: boolean
198
+ }
199
+
200
+ export type NacosInstanceCluster = {
201
+ defaultCheckPort?: string
202
+ defaultPort?: string
203
+ healthChecker?: {[key: string]: string}
204
+ metadata?: {[key: string]: string}
205
+ name?: string
206
+ serviceName?: string
207
+ useIpPort4Check?: boolean
208
+ }
209
+
210
+ export type NacosServiceDetail = {
211
+ groupName?: string
212
+ metadata?: {[key: string]: string}
213
+ name?: string
214
+ protectThreshold?: number
215
+ selector?: {[key: string]: string}
216
+ }
217
+
218
+ export type NacosServiceInstance = {
219
+ clusterName?: string
220
+ enabled?: boolean
221
+ ephemeral?: boolean
222
+ healthy?: boolean
223
+ instanceHeartBeatInterval?: number
224
+ instanceHeartBeatTimeOut?: number
225
+ ip?: string
226
+ ipDeleteTimeout?: number
227
+ metadata?: {[key: string]: string}
228
+ port?: number
229
+ serviceName?: string
230
+ weight?: number
231
+ }
232
+
233
+ export type GetNacosServiceReq = {
234
+ workspaceId?: string
235
+ clusterName?: string
236
+ nacosName?: string
237
+ namespaceName?: string
238
+ nacosNamespace?: string
239
+ nacosGroupName?: string
240
+ nacosService?: string
241
+ }
242
+
243
+ export type GetNacosServiceRes = {
244
+ clusters?: NacosInstanceCluster[]
245
+ service?: NacosServiceDetail
246
+ }
247
+
248
+ export type API = {
249
+ isHosted?: boolean
250
+ registry?: string
251
+ serviceName?: string
252
+ nacosNamespace?: string
253
+ nacosGroupName?: string
254
+ dataType?: string
255
+ detail?: string
256
+ }
257
+
258
+ export type GetNacosServiceAPIReq = {
259
+ workspaceId?: string
260
+ clusterName?: string
261
+ namespaceName?: string
262
+ nacosName?: string
263
+ nacosNamespace?: string
264
+ nacosGroupName?: string
265
+ nacosService?: string
266
+ }
267
+
268
+ export type GetNacosServiceAPIRes = {
269
+ api?: API
270
+ }
271
+
272
+ export type CreateNacosServiceAPIReq = {
273
+ workspaceId?: string
274
+ clusterName?: string
275
+ namespaceName?: string
276
+ nacosName?: string
277
+ nacosNamespace?: string
278
+ nacosGroupName?: string
279
+ nacosService?: string
280
+ dataType?: string
281
+ detail?: string
282
+ }
283
+
284
+ export type CreateNacosServiceAPIRes = {
285
+ api?: API
286
+ }
287
+
288
+ export type UpdateNacosServiceAPIReq = {
289
+ workspaceId?: string
290
+ clusterName?: string
291
+ namespaceName?: string
292
+ nacosName?: string
293
+ nacosNamespace?: string
294
+ nacosGroupName?: string
295
+ nacosService?: string
296
+ dataType?: string
297
+ detail?: string
298
+ }
299
+
300
+ export type UpdateNacosServiceAPIRes = {
301
+ api?: API
302
+ }
303
+
304
+ export type DeleteNacosServiceAPIReq = {
305
+ workspaceId?: string
306
+ clusterName?: string
307
+ namespaceName?: string
308
+ nacosName?: string
309
+ nacosNamespace?: string
310
+ nacosGroupName?: string
311
+ nacosService?: string
312
+ }
313
+
314
+ export type DeleteNacosServiceAPIRes = {
315
+ success?: boolean
316
+ }
317
+
318
+ export type ListNacosServiceInstanceReq = {
319
+ workspaceId?: string
320
+ clusterName?: string
321
+ nacosName?: string
322
+ namespaceName?: string
323
+ nacosNamespace?: string
324
+ nacosGroupName?: string
325
+ nacosClusterName?: string
326
+ nacosService?: string
327
+ page?: number
328
+ pageSize?: number
329
+ }
330
+
331
+ export type ListNacosServiceInstanceRes = {
332
+ items?: NacosServiceInstance[]
333
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
334
+ }
335
+
336
+ export type NacosServiceSubscriber = {
337
+ addrStr?: string
338
+ agent?: string
339
+ app?: string
340
+ cluster?: string
341
+ ip?: string
342
+ namespaceId?: string
343
+ port?: number
344
+ serviceName?: string
345
+ }
346
+
347
+ export type ListNacosServiceSubscriberReq = {
348
+ workspaceId?: string
349
+ clusterName?: string
350
+ nacosName?: string
351
+ namespaceName?: string
352
+ nacosNamespace?: string
353
+ nacosGroupName?: string
354
+ nacosService?: string
355
+ page?: number
356
+ pageSize?: number
357
+ }
358
+
359
+ export type ListNacosServiceSubscriberRes = {
360
+ items?: NacosServiceSubscriber[]
361
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
362
+ }
363
+
364
+ export type ListNacosNamespaceReq = {
365
+ workspaceId?: string
366
+ clusterName?: string
367
+ nacosName?: string
368
+ namespaceName?: string
369
+ page?: number
370
+ pageSize?: number
371
+ }
372
+
373
+ export type ListNacosNamespaceRes = {
374
+ items?: NacosNamespaceBrief[]
375
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
376
+ }
377
+
378
+ export type NacosNamespaceBrief = {
379
+ namespace?: string
380
+ namespaceShowName?: string
381
+ quota?: number
382
+ configCount?: number
383
+ type?: number
384
+ }
385
+
386
+ export type CreateNacosNamespaceReq = {
387
+ workspaceId?: string
388
+ clusterName?: string
389
+ namespaceName?: string
390
+ nacosName?: string
391
+ nacosNamespaceShowName?: string
392
+ nacosNamespaceDesc?: string
393
+ }
394
+
395
+ export type CreateNacosNamespaceRes = {
396
+ success?: boolean
397
+ }
398
+
399
+ export type UpdateNacosNamespaceReq = {
400
+ workspaceId?: string
401
+ clusterName?: string
402
+ namespaceName?: string
403
+ nacosName?: string
404
+ nacosNamespace?: string
405
+ nacosNamespaceShowName?: string
406
+ nacosNamespaceDesc?: string
407
+ }
408
+
409
+ export type UpdateNacosNamespaceRes = {
410
+ success?: boolean
411
+ }
412
+
413
+ export type DeleteNacosNamespaceReq = {
414
+ workspaceId?: string
415
+ clusterName?: string
416
+ namespaceName?: string
417
+ nacosName?: string
418
+ nacosNamespace?: string
419
+ }
420
+
421
+ export type DeleteNacosNamespaceRes = {
422
+ success?: boolean
423
+ }
424
+
425
+ export type GetNacosNamespaceReq = {
426
+ workspaceId?: string
427
+ clusterName?: string
428
+ namespaceName?: string
429
+ nacosName?: string
430
+ nacosNamespace?: string
431
+ }
432
+
433
+ export type GetNacosNamespaceRes = {
434
+ namespace?: string
435
+ namespaceShowName?: string
436
+ namespaceDesc?: string
437
+ quota?: number
438
+ configCount?: number
439
+ type?: number
440
+ }
441
+
442
+ export type CheckNacosNamespaceReq = {
443
+ workspaceId?: string
444
+ clusterName?: string
445
+ namespaceName?: string
446
+ nacosName?: string
447
+ nacosNamespace?: string
448
+ }
449
+
450
+ export type CheckNacosNamespaceRes = {
451
+ duplicate?: boolean
452
+ }
453
+
454
+ export type NacosConfigBrief = {
455
+ appName?: string
456
+ content?: string
457
+ dataId?: string
458
+ group?: string
459
+ id?: string
460
+ md5?: string
461
+ tenant?: string
462
+ type?: string
463
+ }
464
+
465
+ export type ListNacosConfigReq = {
466
+ workspaceId?: string
467
+ clusterName?: string
468
+ namespaceName?: string
469
+ nacosName?: string
470
+ nacosNamespace?: string
471
+ nacosConfigDataId?: string
472
+ nacosConfigGroup?: string
473
+ nacosConfigAppName?: string
474
+ nacosConfigTags?: string
475
+ nacosConfigSearch?: string
476
+ page?: number
477
+ pageSize?: number
478
+ }
479
+
480
+ export type ListNacosConfigRes = {
481
+ items?: NacosConfigBrief[]
482
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
483
+ }
484
+
485
+ export type GetNacosConfigReq = {
486
+ workspaceId?: string
487
+ clusterName?: string
488
+ namespaceName?: string
489
+ nacosName?: string
490
+ nacosNamespace?: string
491
+ nacosConfigDataId?: string
492
+ nacosConfigGroup?: string
493
+ }
494
+
495
+ export type GetNacosConfigRes = {
496
+ appName?: string
497
+ configTags?: string
498
+ content?: string
499
+ createIp?: string
500
+ createTime?: string
501
+ createUser?: string
502
+ dataId?: string
503
+ desc?: string
504
+ effect?: string
505
+ group?: string
506
+ id?: string
507
+ md5?: string
508
+ modifyTime?: string
509
+ schema?: string
510
+ tenant?: string
511
+ type?: string
512
+ use?: string
513
+ }
514
+
515
+ export type NacosConfigHistoryBrief = {
516
+ appName?: string
517
+ content?: string
518
+ createTime?: string
519
+ dataId?: string
520
+ group?: string
521
+ id?: string
522
+ lastId?: number
523
+ lastModifyTime?: string
524
+ md5?: string
525
+ opType?: string
526
+ srcIp?: string
527
+ srcUser?: string
528
+ tenant?: string
529
+ }
530
+
531
+ export type ListNacosConfigHistoryReq = {
532
+ workspaceId?: string
533
+ clusterName?: string
534
+ namespaceName?: string
535
+ nacosName?: string
536
+ nacosNamespace?: string
537
+ nacosConfigDataId?: string
538
+ nacosConfigGroup?: string
539
+ page?: number
540
+ pageSize?: number
541
+ }
542
+
543
+ export type ListNacosConfigHistoryRes = {
544
+ items?: NacosConfigHistoryBrief[]
545
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
546
+ }
547
+
548
+ export type GetNacosConfigHistoryReq = {
549
+ workspaceId?: string
550
+ clusterName?: string
551
+ namespaceName?: string
552
+ nacosName?: string
553
+ nacosNamespace?: string
554
+ nacosConfigDataId?: string
555
+ nacosConfigGroup?: string
556
+ nacosConfigHistoryNid?: string
557
+ }
558
+
559
+ export type GetNacosConfigHistoryRes = {
560
+ appName?: string
561
+ content?: string
562
+ createTime?: string
563
+ dataId?: string
564
+ group?: string
565
+ id?: string
566
+ lastId?: number
567
+ lastModifyTime?: string
568
+ md5?: string
569
+ opType?: string
570
+ srcIp?: string
571
+ srcUser?: string
572
+ tenant?: string
573
+ }
574
+
575
+ export type ListNacosConfigListenerReq = {
576
+ workspaceId?: string
577
+ clusterName?: string
578
+ namespaceName?: string
579
+ nacosName?: string
580
+ nacosNamespace?: string
581
+ nacosConfigDataId?: string
582
+ nacosConfigGroup?: string
583
+ }
584
+
585
+ export type ListNacosConfigListenerRes = {
586
+ }
587
+
588
+ export type CreateNacosConfigReq = {
589
+ workspaceId?: string
590
+ clusterName?: string
591
+ namespaceName?: string
592
+ nacosName?: string
593
+ nacosNamespace?: string
594
+ nacosConfigDataId?: string
595
+ nacosConfigGroup?: string
596
+ nacosConfigContent?: string
597
+ nacosConfigDesc?: string
598
+ nacosConfigConfigTags?: string
599
+ nacosConfigType?: string
600
+ nacosConfigAppName?: string
601
+ }
602
+
603
+ export type CreateNacosConfigRes = {
604
+ success?: boolean
605
+ }
606
+
607
+ export type UpdateNacosConfigReq = {
608
+ workspaceId?: string
609
+ clusterName?: string
610
+ namespaceName?: string
611
+ nacosName?: string
612
+ nacosNamespace?: string
613
+ nacosConfigDataId?: string
614
+ nacosConfigGroup?: string
615
+ nacosConfigContent?: string
616
+ nacosConfigAppName?: string
617
+ nacosConfigDesc?: string
618
+ nacosConfigConfigTags?: string
619
+ nacosConfigType?: string
620
+ nacosConfigId?: string
621
+ nacosConfigMd5?: string
622
+ nacosConfigCreateTime?: string
623
+ nacosConfigModifyTime?: string
624
+ nacosConfigCreateUser?: string
625
+ nacosConfigCreateIp?: string
626
+ nacosConfigUse?: string
627
+ nacosConfigEffect?: string
628
+ nacosConfigSchema?: string
629
+ }
630
+
631
+ export type UpdateNacosConfigRes = {
632
+ success?: boolean
633
+ }
634
+
635
+ export type DeleteNacosConfigReq = {
636
+ workspaceId?: string
637
+ clusterName?: string
638
+ namespaceName?: string
639
+ nacosName?: string
640
+ nacosNamespace?: string
641
+ nacosConfigDataId?: string
642
+ nacosConfigGroup?: string
643
+ }
644
+
645
+ export type DeleteNacosConfigRes = {
646
+ success?: boolean
647
+ }
648
+
649
+ export type CheckNacosConfigReq = {
650
+ workspaceId?: string
651
+ clusterName?: string
652
+ namespaceName?: string
653
+ nacosName?: string
654
+ nacosNamespace?: string
655
+ nacosConfigDataId?: string
656
+ nacosConfigGroup?: string
657
+ }
658
+
659
+ export type CheckNacosConfigRes = {
660
+ appName?: string
661
+ configTags?: string
662
+ content?: string
663
+ createIp?: string
664
+ createTime?: string
665
+ createUser?: string
666
+ dataId?: string
667
+ desc?: string
668
+ effect?: string
669
+ group?: string
670
+ id?: string
671
+ md5?: string
672
+ modifyTime?: string
673
+ schema?: string
674
+ tenant?: string
675
+ type?: string
676
+ use?: string
147
677
  }
@@ -5,77 +5,71 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
- import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
- export type ListSentinelReq = {
8
+ export type FlowRule = {
9
+ id?: number
10
+ app?: string
11
+ ip?: string
12
+ port?: number
13
+ limitApp?: string
14
+ resource?: string
15
+ grade?: number
16
+ count?: number
17
+ strategy?: number
18
+ refResource?: string
19
+ controlBehavior?: number
20
+ warmUpPeriodSec?: number
21
+ maxQueueingTimeMs?: number
22
+ clusterMode?: boolean
23
+ }
24
+
25
+ export type ListFlowRuleReq = {
10
26
  workspace?: string
11
27
  cluster?: string
12
28
  namespace?: string
29
+ sentinelName?: string
13
30
  page?: number
14
31
  pageSize?: number
32
+ app?: string
15
33
  }
16
34
 
17
- export type ListSentinelRes = {
18
- items?: Sentinel[]
35
+ export type ListFlowRuleRes = {
36
+ items?: FlowRule[]
19
37
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
20
38
  }
21
39
 
22
- export type Sentinel = {
23
- workspace?: string
24
- cluster?: string
25
- namespace?: string
26
- name?: string
27
- config?: SentinelConfig
28
- }
29
-
30
- export type GetSentinelReq = {
31
- workspace?: string
32
- cluster?: string
33
- namespace?: string
34
- name?: string
35
- }
36
-
37
- export type GetSentinelRes = {
38
- sentinel?: Sentinel
39
- }
40
-
41
- export type UpdateSentinelReq = {
40
+ export type CreateFlowRuleReq = {
42
41
  workspace?: string
43
42
  cluster?: string
44
43
  namespace?: string
45
- name?: string
46
- nacosAddress?: string
47
- config?: SentinelConfig
48
- }
49
-
50
- export type UpdateSentinelRes = {
44
+ sentinelName?: string
45
+ flowRule?: FlowRule
51
46
  }
52
47
 
53
- export type SentinelConfig = {
54
- type?: string
55
- port?: number
56
- nodePort?: number
57
- resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
58
- image?: string
48
+ export type CreateFlowRuleRes = {
49
+ success?: boolean
59
50
  }
60
51
 
61
- export type CreateSentinelReq = {
52
+ export type UpdateFlowRuleReq = {
62
53
  workspace?: string
63
54
  cluster?: string
64
55
  namespace?: string
65
- name?: string
66
- nacosAddress?: string
67
- config?: SentinelConfig
56
+ sentinelName?: string
57
+ flowRuleId?: number
58
+ flowRule?: FlowRule
68
59
  }
69
60
 
70
- export type CreateSentinelRes = {
61
+ export type UpdateFlowRuleRes = {
62
+ success?: boolean
71
63
  }
72
64
 
73
- export type DeleteSentinelReq = {
65
+ export type DeleteFlowRuleReq = {
74
66
  workspace?: string
75
67
  cluster?: string
76
68
  namespace?: string
77
- name?: string
69
+ sentinelName?: string
70
+ flowRuleId?: number
78
71
  }
79
72
 
80
- export type DeleteSentinelRes = {
73
+ export type DeleteFlowRuleRes = {
74
+ success?: boolean
81
75
  }