@daocloud-proto/skoala 0.21.2-56 → 0.21.2-64

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.
@@ -73,6 +73,18 @@ export enum LB {
73
73
  ROUND_ROBIN = "ROUND_ROBIN",
74
74
  }
75
75
 
76
+ export enum WasmPluginPhase {
77
+ UNSPECIFIED_PHASE = "UNSPECIFIED_PHASE",
78
+ AUTHN = "AUTHN",
79
+ AUTHZ = "AUTHZ",
80
+ STATS = "STATS",
81
+ }
82
+
83
+ export enum ImagePullPolicy {
84
+ Always = "Always",
85
+ IfNotPresent = "IfNotPresent",
86
+ }
87
+
76
88
 
77
89
  type BaseIstioResource = {
78
90
  type?: ResourceType
@@ -237,6 +249,32 @@ export type ListServiceGovern = {
237
249
  protocol?: GovernProtocol
238
250
  }
239
251
 
252
+ export type UpdateServiceWasmPluginReq = {
253
+ workspaceId?: string
254
+ meshId?: string
255
+ namespaceName?: string
256
+ serviceName?: string
257
+ port?: number
258
+ wasmPlugin?: WasmPlugin[]
259
+ }
260
+
261
+ export type UpdateServiceWasmPluginRes = {
262
+ }
263
+
264
+ export type GetServiceWasmPluginReq = {
265
+ workspaceId?: string
266
+ meshId?: string
267
+ namespaceName?: string
268
+ serviceName?: string
269
+ port?: number
270
+ }
271
+
272
+ export type GetServiceWasmPluginRes = {
273
+ serviceName?: string
274
+ port?: number
275
+ wasmPlugin?: WasmPlugin[]
276
+ }
277
+
240
278
  export type UpdateServiceGovernReq = {
241
279
  workspaceId?: string
242
280
  meshId?: string
@@ -282,6 +320,14 @@ export type HTTPRetry = {
282
320
  retryOn?: string
283
321
  }
284
322
 
323
+ export type WasmPlugin = {
324
+ wasmPluginName?: string
325
+ imagePullPolicy?: ImagePullPolicy
326
+ imagePullSecret?: string
327
+ pluginConfig?: {[key: string]: string}
328
+ phase?: WasmPluginPhase
329
+ }
330
+
285
331
  export type OutlierDetection = {
286
332
  consecutiveErrors?: number
287
333
  interval?: GoogleProtobufDuration.Duration
@@ -248,4 +248,14 @@ export type GetRLSRuleReq = {
248
248
  workspaceId?: string
249
249
  pluginName?: string
250
250
  domain?: string
251
+ }
252
+
253
+ export type SkoalaPluginUpdateReq = {
254
+ workspaceId?: string
255
+ pluginName?: string
256
+ add?: boolean
257
+ pluginUsage?: PluginUsage
258
+ }
259
+
260
+ export type SkoalaPluginUpdateRes = {
251
261
  }
@@ -451,6 +451,12 @@ export class Mesh {
451
451
  static GetServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.GetServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceGovernRes> {
452
452
  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"})
453
453
  }
454
+ static UpdateServiceWasmPlugin(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginRes> {
455
+ 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)})
456
+ }
457
+ static GetServiceWasmPlugin(req: SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginRes> {
458
+ 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"})
459
+ }
454
460
  }
455
461
  export class Plugin {
456
462
  static List(req: SkoalaApiHostedV1alpha1Plugins.ListPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.ListPluginRes> {
@@ -690,4 +696,7 @@ export class SkoalaPlugin {
690
696
  static GetRLSDomainRules(req: SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes> {
691
697
  return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}/domain/${req["domain"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName", "domain"])}`, {...initReq, method: "GET"})
692
698
  }
699
+ static SkoalaPluginUsageUpdate(req: SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes> {
700
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}/usage`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
701
+ }
693
702
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.21.2-56",
3
+ "version": "0.21.2-64",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {