@daocloud-proto/skoala 0.23.0 → 0.24.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.
@@ -8,6 +8,7 @@ import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"
8
8
  import * as GoogleProtobufDuration from "../../../google/protobuf/duration.pb"
9
9
  import * as GoogleProtobufStruct from "../../../google/protobuf/struct.pb"
10
10
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
11
+ import * as SkoalaApiHostedV1alpha1Skoala_plugins from "./skoala_plugins.pb"
11
12
 
12
13
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
13
14
  type OneOf<T> =
@@ -250,30 +251,160 @@ export type ListServiceGovern = {
250
251
  protocol?: GovernProtocol
251
252
  }
252
253
 
253
- export type UpdateServiceWasmPluginReq = {
254
+ export type CreateServiceIstioPluginReq = {
255
+ workspaceId?: string
256
+ meshId?: string
257
+ namespaceName?: string
258
+ serviceName?: string
259
+ ports?: number[]
260
+ istioPlugin?: IstioPlugin
261
+ }
262
+
263
+
264
+ type BaseIstioPlugin = {
265
+ }
266
+
267
+ export type IstioPlugin = BaseIstioPlugin
268
+ & OneOf<{ wasmPlugin: WasmPlugin; authPlugin: AuthPlugin; jwtPlugin: JwtPlugin; rateLimitPlugin: RateLimitPlugin }>
269
+
270
+ export type CreateServiceIstioPluginRes = {
271
+ }
272
+
273
+ export type GetServiceIstioPluginReq = {
274
+ workspaceId?: string
275
+ meshId?: string
276
+ namespaceName?: string
277
+ serviceName?: string
278
+ pluginName?: string
279
+ }
280
+
281
+ export type GetServiceIstioPluginRes = {
282
+ istioPlugin?: IstioPlugin
283
+ }
284
+
285
+ export type DeleteServiceIstioPluginReq = {
286
+ workspaceId?: string
287
+ meshId?: string
288
+ namespaceName?: string
289
+ serviceName?: string
290
+ pluginName?: string[]
291
+ pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
292
+ }
293
+
294
+ export type DeleteServiceIstioPluginRes = {
295
+ }
296
+
297
+ export type UpdateServiceIstioPluginReq = {
298
+ workspaceId?: string
299
+ meshId?: string
300
+ namespaceName?: string
301
+ pluginName?: string[]
302
+ pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
303
+ istioPlugin?: IstioPlugin
304
+ }
305
+
306
+ export type UpdateServiceIstioPluginRes = {
307
+ }
308
+
309
+ export type SortServiceIstioPluginReqPluginSort = {
310
+ pluginName?: string
311
+ sort?: number
312
+ }
313
+
314
+ export type SortServiceIstioPluginReq = {
315
+ workspaceId?: string
316
+ meshId?: string
317
+ namespaceName?: string
318
+ serviceName?: string
319
+ port?: number
320
+ pluginSort?: SortServiceIstioPluginReqPluginSort[]
321
+ }
322
+
323
+ export type SortServiceIstioPluginRes = {
324
+ }
325
+
326
+ export type SortIstioPluginReq = {
254
327
  workspaceId?: string
255
328
  meshId?: string
256
329
  namespaceName?: string
257
330
  serviceName?: string
258
331
  port?: number
259
- wasmPlugin?: WasmPlugin[]
332
+ pluginName?: string[]
260
333
  }
261
334
 
262
- export type UpdateServiceWasmPluginRes = {
335
+ export type SortIstioPluginRes = {
263
336
  }
264
337
 
265
- export type GetServiceWasmPluginReq = {
338
+ export type ListServiceIstioPluginReq = {
266
339
  workspaceId?: string
267
340
  meshId?: string
268
341
  namespaceName?: string
269
342
  serviceName?: string
343
+ port?: string
344
+ }
345
+
346
+ export type ListServiceIstioPluginRes = {
347
+ items?: ServiceIstioPluginInfo[]
348
+ }
349
+
350
+ export type ServiceIstioPluginInfo = {
351
+ pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
352
+ pluginName?: string[]
353
+ ports?: number[]
354
+ showName?: string
355
+ }
356
+
357
+ export type ListServiceIstioPluginRLSPortsReq = {
358
+ workspaceId?: string
359
+ meshId?: string
360
+ namespaceName?: string
361
+ serviceName?: string
362
+ }
363
+
364
+ export type ListServiceIstioPluginRLSPortsRes = {
365
+ ports?: number[]
366
+ }
367
+
368
+ export type ListServiceIstioPluginRLSRulesReq = {
369
+ workspaceId?: string
370
+ meshId?: string
371
+ namespaceName?: string
372
+ serviceName?: string
373
+ }
374
+
375
+ export type ListServiceIstioPluginRLSRulesRes = {
376
+ items?: PortRuleName[]
377
+ }
378
+
379
+ export type PortRuleName = {
270
380
  port?: number
381
+ ruleName?: string
271
382
  }
272
383
 
273
- export type GetServiceWasmPluginRes = {
384
+ export type CreateServiceIstioPluginRLSRulesReq = {
385
+ workspaceId?: string
386
+ meshId?: string
387
+ namespaceName?: string
388
+ serviceName?: string
389
+ port?: number
390
+ rlsRule?: string
391
+ }
392
+
393
+ export type DeleteServiceIstioPluginRLSRulesReq = {
394
+ workspaceId?: string
395
+ meshId?: string
396
+ namespaceName?: string
274
397
  serviceName?: string
275
398
  port?: number
276
- wasmPlugin?: WasmPlugin[]
399
+ }
400
+
401
+ export type UpdateServiceIstioPluginRLSRulesReq = {
402
+ workspaceId?: string
403
+ meshId?: string
404
+ namespaceName?: string
405
+ serviceName?: string
406
+ port?: number
407
+ rlsRule?: string
277
408
  }
278
409
 
279
410
  export type UpdateServiceGovernReq = {
@@ -321,6 +452,19 @@ export type HTTPRetry = {
321
452
  retryOn?: string[]
322
453
  }
323
454
 
455
+ export type AuthPlugin = {
456
+ authPluginName?: string
457
+ }
458
+
459
+ export type JwtPlugin = {
460
+ jwtPluginName?: string
461
+ }
462
+
463
+ export type RateLimitPlugin = {
464
+ ratelimitPluginName?: string
465
+ domain?: string
466
+ }
467
+
324
468
  export type WasmPlugin = {
325
469
  wasmPluginName?: string
326
470
  imagePullPolicy?: ImagePullPolicy
@@ -468,11 +468,38 @@ export class Mesh {
468
468
  static GetServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.GetServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceGovernRes> {
469
469
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.GetServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/protocols/${req["protocol"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port", "protocol"])}`, {...initReq, method: "GET"})
470
470
  }
471
- static UpdateServiceWasmPlugin(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginRes> {
472
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginReq, SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/wasmplugin`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
471
+ static CreateServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
472
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["ports"]}/istioplugin`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
473
473
  }
474
- static GetServiceWasmPlugin(req: SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginRes> {
475
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginReq, SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/wasmplugin?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
474
+ static ListServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRes> {
475
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
476
+ }
477
+ static GetServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRes> {
478
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginReq, SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/${req["pluginName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "pluginName"])}`, {...initReq, method: "GET"})
479
+ }
480
+ static DeleteServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
481
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/${req["pluginName"]}`, {...initReq, method: "DELETE"})
482
+ }
483
+ static UpdateServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
484
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/istioplugin/${req["pluginName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
485
+ }
486
+ static SortServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.SortServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
487
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.SortServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin/sort`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
488
+ }
489
+ static ListServiceIstioPluginRLSPorts(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsRes> {
490
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/rls/ports?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
491
+ }
492
+ static ListServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesRes> {
493
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
494
+ }
495
+ static CreateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
496
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
497
+ }
498
+ static DeleteServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
499
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "DELETE"})
500
+ }
501
+ static UpdateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
502
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/port/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
476
503
  }
477
504
  }
478
505
  export class Plugin {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {