@daocloud-proto/skoala 0.23.0 → 0.24.1-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.
@@ -213,6 +213,7 @@ export type GetPrerequisiteReq = {
213
213
 
214
214
  export type GetPrerequisiteRes = {
215
215
  ok?: boolean
216
+ chartVersion?: string
216
217
  }
217
218
 
218
219
  export type ListMysqlReq = {
@@ -27,6 +27,12 @@ export enum GatewayStatus {
27
27
  Running = "Running",
28
28
  }
29
29
 
30
+ export enum SesameGatewayResourceType {
31
+ SESAME_RESOURCE_VIRTUALHOST = "SESAME_RESOURCE_VIRTUALHOST",
32
+ SESAME_RESOURCE_EXTERNALSERVICE = "SESAME_RESOURCE_EXTERNALSERVICE",
33
+ SESAME_RESOURCE_API = "SESAME_RESOURCE_API",
34
+ }
35
+
30
36
  export enum HealthStatus {
31
37
  HEALTH_STATUS_UNSPECIFIED = "HEALTH_STATUS_UNSPECIFIED",
32
38
  Healthy = "Healthy",
@@ -250,6 +256,24 @@ export type UpdateGatewayRes = {
250
256
  status?: SkoalaApiGeneralV1alpha1Common.Status
251
257
  }
252
258
 
259
+ export type DeleteGatewayCheckReq = {
260
+ workspaceId?: string
261
+ clusterName?: string
262
+ namespaceName?: string
263
+ gatewayName?: string
264
+ }
265
+
266
+ export type DeleteGatewayCheckRes = {
267
+ canDelete?: boolean
268
+ gatewayUsage?: GatewayUsage[]
269
+ }
270
+
271
+ export type GatewayUsage = {
272
+ sesameResourceType?: SesameGatewayResourceType
273
+ resourceCount?: number
274
+ canDelete?: boolean
275
+ }
276
+
253
277
  export type DeleteGatewayReq = {
254
278
  workspaceId?: string
255
279
  clusterName?: string
@@ -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,163 @@ export type ListServiceGovern = {
250
251
  protocol?: GovernProtocol
251
252
  }
252
253
 
253
- export type UpdateServiceWasmPluginReq = {
254
+ export type CreateServiceIstioPluginReq = {
254
255
  workspaceId?: string
255
256
  meshId?: string
256
257
  namespaceName?: string
257
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 = {
258
282
  port?: number
259
- wasmPlugin?: WasmPlugin[]
283
+ pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
284
+ pluginName?: string
285
+ istioPlugin?: IstioPlugin
286
+ }
287
+
288
+ export type DeleteServiceIstioPluginReq = {
289
+ workspaceId?: string
290
+ meshId?: string
291
+ namespaceName?: string
292
+ serviceName?: string
293
+ pluginName?: string[]
294
+ pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
260
295
  }
261
296
 
262
- export type UpdateServiceWasmPluginRes = {
297
+ export type DeleteServiceIstioPluginRes = {
263
298
  }
264
299
 
265
- export type GetServiceWasmPluginReq = {
300
+ export type UpdateServiceIstioPluginReq = {
301
+ workspaceId?: string
302
+ meshId?: string
303
+ namespaceName?: string
304
+ pluginName?: string[]
305
+ pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
306
+ istioPlugin?: IstioPlugin
307
+ }
308
+
309
+ export type UpdateServiceIstioPluginRes = {
310
+ }
311
+
312
+ export type SortServiceIstioPluginReqPluginSort = {
313
+ pluginName?: string
314
+ sort?: number
315
+ }
316
+
317
+ export type SortServiceIstioPluginReq = {
266
318
  workspaceId?: string
267
319
  meshId?: string
268
320
  namespaceName?: string
269
321
  serviceName?: string
270
322
  port?: number
323
+ pluginSort?: SortServiceIstioPluginReqPluginSort[]
324
+ }
325
+
326
+ export type SortServiceIstioPluginRes = {
271
327
  }
272
328
 
273
- export type GetServiceWasmPluginRes = {
329
+ export type SortIstioPluginReq = {
330
+ workspaceId?: string
331
+ meshId?: string
332
+ namespaceName?: string
274
333
  serviceName?: string
275
334
  port?: number
276
- wasmPlugin?: WasmPlugin[]
335
+ pluginName?: string[]
336
+ }
337
+
338
+ export type SortIstioPluginRes = {
339
+ }
340
+
341
+ export type ListServiceIstioPluginReq = {
342
+ workspaceId?: string
343
+ meshId?: string
344
+ namespaceName?: string
345
+ serviceName?: string
346
+ port?: string
347
+ }
348
+
349
+ export type ListServiceIstioPluginRes = {
350
+ items?: ServiceIstioPluginInfo[]
351
+ }
352
+
353
+ export type ServiceIstioPluginInfo = {
354
+ pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
355
+ pluginName?: string
356
+ ports?: number
357
+ showName?: string
358
+ }
359
+
360
+ export type ListServiceIstioPluginRLSPortsReq = {
361
+ workspaceId?: string
362
+ meshId?: string
363
+ namespaceName?: string
364
+ serviceName?: string
365
+ }
366
+
367
+ export type ListServiceIstioPluginRLSPortsRes = {
368
+ ports?: number[]
369
+ }
370
+
371
+ export type ListServiceIstioPluginRLSRulesReq = {
372
+ workspaceId?: string
373
+ meshId?: string
374
+ namespaceName?: string
375
+ serviceName?: string
376
+ }
377
+
378
+ export type ListServiceIstioPluginRLSRulesRes = {
379
+ items?: PortRuleName[]
380
+ }
381
+
382
+ export type PortRuleName = {
383
+ port?: number
384
+ ruleName?: string
385
+ }
386
+
387
+ export type CreateServiceIstioPluginRLSRulesReq = {
388
+ workspaceId?: string
389
+ meshId?: string
390
+ namespaceName?: string
391
+ serviceName?: string
392
+ port?: number
393
+ rlsRule?: string
394
+ }
395
+
396
+ export type DeleteServiceIstioPluginRLSRulesReq = {
397
+ workspaceId?: string
398
+ meshId?: string
399
+ namespaceName?: string
400
+ serviceName?: string
401
+ port?: number
402
+ }
403
+
404
+ export type UpdateServiceIstioPluginRLSRulesReq = {
405
+ workspaceId?: string
406
+ meshId?: string
407
+ namespaceName?: string
408
+ serviceName?: string
409
+ port?: number
410
+ rlsRule?: string
277
411
  }
278
412
 
279
413
  export type UpdateServiceGovernReq = {
@@ -321,6 +455,19 @@ export type HTTPRetry = {
321
455
  retryOn?: string[]
322
456
  }
323
457
 
458
+ export type AuthPlugin = {
459
+ authPluginName?: string
460
+ }
461
+
462
+ export type JwtPlugin = {
463
+ jwtPluginName?: string
464
+ }
465
+
466
+ export type RateLimitPlugin = {
467
+ ratelimitPluginName?: string
468
+ domain?: string
469
+ }
470
+
324
471
  export type WasmPlugin = {
325
472
  wasmPluginName?: string
326
473
  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 {
@@ -505,6 +532,9 @@ export class Gateway {
505
532
  static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
506
533
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
507
534
  }
535
+ static DeleteGatewayCheck(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckRes> {
536
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckReq, SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/deletecheck?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
537
+ }
508
538
  static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
509
539
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
510
540
  }
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.1-12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {