@daocloud-proto/skoala 0.6.1-60 → 0.6.1-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.
@@ -64,7 +64,7 @@ export enum LogLogLevel {
64
64
  Info = "Info",
65
65
  Warning = "Warning",
66
66
  Error = "Error",
67
- CriticalL = "CriticalL",
67
+ Critical = "Critical",
68
68
  Off = "Off",
69
69
  }
70
70
 
@@ -120,14 +120,10 @@ export type GetGatewayRes = {
120
120
  gateways?: Gateway
121
121
  }
122
122
 
123
- export type EnvoyPortsString = {
124
- http?: string
125
- https?: string
126
- }
127
-
128
- export type EnvoyPorts = {
129
- http?: number
130
- https?: number
123
+ export type Port = {
124
+ port?: number
125
+ containerPort?: number
126
+ nodePort?: number
131
127
  }
132
128
 
133
129
  export type ContourPorts = {
@@ -146,16 +142,8 @@ export type HostIPs = {
146
142
 
147
143
  export type EnvoyService = {
148
144
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
149
- enableHttps?: boolean
150
- }
151
-
152
- export type EnvoyServicePro = {
153
- serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
154
- ports?: EnvoyPorts
155
- targetPorts?: EnvoyPortsString
156
- nodePorts?: EnvoyPortsString
157
- extraPorts?: string[]
158
- externalTrafficPolicy?: string
145
+ http?: Port
146
+ https?: Port
159
147
  }
160
148
 
161
149
  export type ContourService = {
@@ -174,31 +162,11 @@ export type EnvoyNormalConfig = {
174
162
  service?: EnvoyService
175
163
  }
176
164
 
177
- export type EnvoyNormalConfigPro = {
178
- kind?: string
179
- replicas?: number
180
- hostNetwork?: boolean
181
- dnsPolicy?: string
182
- useHostIp?: boolean
183
- useHostPort?: boolean
184
- containerPorts?: EnvoyPorts
185
- hostIps?: HostIPs
186
- hostPorts?: EnvoyPorts
187
- service?: EnvoyServicePro
188
- }
189
-
190
165
  export type ContourNormalConfig = {
191
166
  rootNamespaces?: string[]
192
167
  replicas?: number
193
168
  }
194
169
 
195
- export type ContourNormalConfigPro = {
196
- rootNamespaces?: string[]
197
- replicas?: number
198
- containerPorts?: ContourPorts
199
- service?: ContourService
200
- }
201
-
202
170
  export type CreateGatewayReq = {
203
171
  workspaceId?: string
204
172
  gatewayName?: string
@@ -207,13 +175,8 @@ export type CreateGatewayReq = {
207
175
  config?: GatewayConfig
208
176
  }
209
177
 
210
- export type CreateGatewayProReq = {
211
- workspaceId?: string
212
- gatewayName?: string
213
- clusterName?: string
214
- namespaceName?: string
215
- createNamespace?: boolean
216
- config?: GatewayConfigPro
178
+ export type CreateGatewayRes = {
179
+ status?: SkoalaApiGeneralV1alpha1Common.Status
217
180
  }
218
181
 
219
182
  export type UpdateGatewayReq = {
@@ -224,12 +187,8 @@ export type UpdateGatewayReq = {
224
187
  config?: GatewayConfig
225
188
  }
226
189
 
227
- export type UpdateGatewayProReq = {
228
- workspaceId?: string
229
- gatewayName?: string
230
- clusterName?: string
231
- namespaceName?: string
232
- config?: GatewayConfigPro
190
+ export type UpdateGatewayRes = {
191
+ status?: SkoalaApiGeneralV1alpha1Common.Status
233
192
  }
234
193
 
235
194
  export type DeleteGatewayReq = {
@@ -244,21 +203,11 @@ export type NormalConfig = {
244
203
  envoy?: EnvoyNormalConfig
245
204
  }
246
205
 
247
- export type NormalConfigPro = {
248
- contour?: ContourNormalConfigPro
249
- envoy?: EnvoyNormalConfigPro
250
- }
251
-
252
206
  export type GatewayConfig = {
253
207
  normal?: NormalConfig
254
208
  advanced?: AdvancedConfig
255
209
  }
256
210
 
257
- export type GatewayConfigPro = {
258
- normal?: NormalConfigPro
259
- advanced?: AdvancedConfigPro
260
- }
261
-
262
211
 
263
212
  type BaseContourAdvancedConfig = {
264
213
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
@@ -282,13 +231,6 @@ export type AdvancedConfig = {
282
231
  envoy?: EnvoyAdvancedConfig
283
232
  }
284
233
 
285
- export type AdvancedConfigPro = {
286
- log?: Log
287
- contour?: ContourAdvancedConfig
288
- envoy?: EnvoyAdvancedConfig
289
- globalRateLimit?: boolean
290
- }
291
-
292
234
  export type Log = {
293
235
  envoyLogLevel?: LogLogLevel
294
236
  kubernetesDebug?: number
@@ -306,6 +248,13 @@ export type GetImagesRes = {
306
248
  envoy?: string
307
249
  }
308
250
 
251
+ export type GetImagesReq = {
252
+ workspaceId?: string
253
+ clusterName?: string
254
+ namespaceName?: string
255
+ gatewayName?: string
256
+ }
257
+
309
258
  export type GetGatewayStatusReq = {
310
259
  workspaceId?: string
311
260
  clusterName?: string
@@ -283,8 +283,8 @@ export class Gateway {
283
283
  static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
284
284
  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"})
285
285
  }
286
- static GetImages(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
287
- return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetImagesRes>(`/apis/sesame.skoala.io/v1alpha1/images?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
286
+ static GetImages(req: SkoalaApiHostedV1alpha1Gateway.GetImagesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
287
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetImagesReq, SkoalaApiHostedV1alpha1Gateway.GetImagesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/images?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
288
288
  }
289
289
  static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
290
290
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.6.1-60",
3
+ "version": "0.6.1-64",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {