@daocloud-proto/skoala 0.6.1-36 → 0.6.1-38

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.
@@ -17,6 +17,6 @@ export type ServicePort = {
17
17
  protocol?: string
18
18
  appProtocol?: string
19
19
  port?: number
20
- targetPort?: string
20
+ targetPort?: number
21
21
  nodePort?: number
22
22
  }
@@ -75,7 +75,6 @@ export type Nacos = {
75
75
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
76
76
  condition?: NacosCondition[]
77
77
  volume?: Volume
78
- plugins?: Plugins
79
78
  createAt?: string
80
79
  }
81
80
 
@@ -107,21 +106,6 @@ export type GetNacosReq = {
107
106
 
108
107
  export type GetNacosRes = {
109
108
  nacos?: Nacos
110
- plugins?: GetPluginsRes
111
- }
112
-
113
- export type GetPluginsRes = {
114
- mode?: string
115
- sentinel?: GetSentinelRes
116
- }
117
-
118
- export type GetSentinelRes = {
119
- nodes?: number
120
- resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
121
- port?: number
122
- nodePort?: number
123
- phase?: string
124
- visitAddress?: string
125
109
  }
126
110
 
127
111
  export type UpdateNacosReq = {
@@ -130,21 +114,6 @@ export type UpdateNacosReq = {
130
114
  nacosName?: string
131
115
  namespaceName?: string
132
116
  config?: NacosConfig
133
- plugins?: Plugins
134
- }
135
-
136
- export type Plugins = {
137
- sentinel?: Sentinel
138
- }
139
-
140
- export type Sentinel = {
141
- enabled?: boolean
142
- image?: string
143
- replicas?: number
144
- resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
145
- serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
146
- port?: number
147
- nodePort?: number
148
117
  }
149
118
 
150
119
  export type UpdateNacosRes = {
@@ -157,7 +126,6 @@ export type CreateNacosReq = {
157
126
  namespaceName?: string
158
127
  createNamespace?: boolean
159
128
  config?: NacosConfig
160
- plugins?: Plugins
161
129
  }
162
130
 
163
131
  export type CreateNacosRes = {
@@ -0,0 +1,112 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
9
+ export type Plugin = {
10
+ name?: string
11
+ enabled?: boolean
12
+ }
13
+
14
+ export type ListPluginReq = {
15
+ workspaceId?: string
16
+ clusterName?: string
17
+ namespace?: string
18
+ nacosName?: string
19
+ }
20
+
21
+ export type ListPluginRes = {
22
+ items?: Plugin[]
23
+ }
24
+
25
+ export type GetPluginReq = {
26
+ workspaceId?: string
27
+ clusterName?: string
28
+ namespace?: string
29
+ nacosName?: string
30
+ name?: string
31
+ }
32
+
33
+ export type GetPluginRes = {
34
+ sentinel?: GetSentinelPluginRes
35
+ mesh?: GetMeshPluginRes
36
+ }
37
+
38
+ export type GetSentinelPluginReq = {
39
+ }
40
+
41
+ export type GetSentinelPluginRes = {
42
+ image?: string
43
+ replicas?: number
44
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
45
+ type?: string
46
+ ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
47
+ }
48
+
49
+ export type GetMeshPluginReq = {
50
+ }
51
+
52
+ export type GetMeshPluginRes = {
53
+ name?: string
54
+ }
55
+
56
+ export type UpdatePluginReq = {
57
+ workspaceId?: string
58
+ clusterName?: string
59
+ namespace?: string
60
+ nacosName?: string
61
+ sentinel?: UpdateSentinelPluginReq
62
+ mesh?: UpdateMeshPluginReq
63
+ }
64
+
65
+ export type UpdatePluginRes = {
66
+ }
67
+
68
+ export type UpdateSentinelPluginReq = {
69
+ enabled?: boolean
70
+ image?: string
71
+ replicas?: number
72
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
73
+ type?: string
74
+ ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
75
+ }
76
+
77
+ export type UpdateSentinelPluginRes = {
78
+ }
79
+
80
+ export type UpdateMeshPluginReq = {
81
+ enabled?: boolean
82
+ name?: string
83
+ }
84
+
85
+ export type UpdateMeshPluginRes = {
86
+ }
87
+
88
+ export type GetGovernReq = {
89
+ workspaceId?: string
90
+ clusterName?: string
91
+ namespace?: string
92
+ nacosName?: string
93
+ }
94
+
95
+ export type GetGovernRes = {
96
+ mode?: string
97
+ sentinel?: GetSentinelRes
98
+ mesh?: GetMeshRes
99
+ }
100
+
101
+ export type GetSentinelRes = {
102
+ nodes?: number
103
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
104
+ port?: number
105
+ nodePort?: number
106
+ phase?: string
107
+ visitAddress?: string
108
+ }
109
+
110
+ export type GetMeshRes = {
111
+ name?: string
112
+ }
@@ -15,6 +15,7 @@ import * as SkoalaApiHostedV1alpha1Extension from "../../hosted/v1alpha1/extensi
15
15
  import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
16
16
  import * as SkoalaApiHostedV1alpha1Gatewayservice from "../../hosted/v1alpha1/gatewayservice.pb"
17
17
  import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
18
+ import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
18
19
  import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
19
20
  import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtualhost.pb"
20
21
  import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
@@ -236,6 +237,20 @@ export class Sentinel {
236
237
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinel/${req["sentinelName"]}/appinstance?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "sentinelName"])}`, {...initReq, method: "GET"})
237
238
  }
238
239
  }
240
+ export class Plugin {
241
+ static List(req: SkoalaApiHostedV1alpha1Plugins.ListPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.ListPluginRes> {
242
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Plugins.ListPluginReq, SkoalaApiHostedV1alpha1Plugins.ListPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/nacoses/${req["nacosName"]}/plugins?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespace", "nacosName"])}`, {...initReq, method: "GET"})
243
+ }
244
+ static Get(req: SkoalaApiHostedV1alpha1Plugins.GetPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.GetPluginRes> {
245
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Plugins.GetPluginReq, SkoalaApiHostedV1alpha1Plugins.GetPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/nacoses/${req["nacosName"]}/plugins/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespace", "nacosName", "name"])}`, {...initReq, method: "GET"})
246
+ }
247
+ static Update(req: SkoalaApiHostedV1alpha1Plugins.UpdatePluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.UpdatePluginRes> {
248
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Plugins.UpdatePluginReq, SkoalaApiHostedV1alpha1Plugins.UpdatePluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/nacoses/${req["nacosName"]}/plugins`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
249
+ }
250
+ static GetGovern(req: SkoalaApiHostedV1alpha1Plugins.GetGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.GetGovernRes> {
251
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Plugins.GetGovernReq, SkoalaApiHostedV1alpha1Plugins.GetGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/nacoses/${req["nacosName"]}/governs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespace", "nacosName"])}`, {...initReq, method: "GET"})
252
+ }
253
+ }
239
254
  export class Gateway {
240
255
  static ListAll(req: SkoalaApiHostedV1alpha1Gateway.ListAllGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
241
256
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListAllGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.6.1-36",
3
+ "version": "0.6.1-38",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {