@daocloud-proto/skoala 0.4.1-83 → 0.4.1-89

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.
@@ -223,7 +223,6 @@ export type DeleteGatewayReq = {
223
223
 
224
224
  export type DeleteGatewayRes = {
225
225
  status?: SkoalaApiGeneralV1alpha1Common.Status
226
- gateway?: Gateway
227
226
  }
228
227
 
229
228
  export type NormalConfig = {
@@ -249,6 +248,7 @@ export type GatewayConfigPro = {
249
248
 
250
249
  type BaseContourAdvancedConfig = {
251
250
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
251
+ diagnostic?: GatewayDiagnostic
252
252
  }
253
253
 
254
254
  export type ContourAdvancedConfig = BaseContourAdvancedConfig
@@ -342,4 +342,22 @@ export type GatewayHealth = {
342
342
  services?: ServiceHealth[]
343
343
  pods?: PodHealth[]
344
344
  exceptionResources?: string[]
345
+ }
346
+
347
+ export type GatewayDiagnostic = {
348
+ enabled?: boolean
349
+ command?: string[]
350
+ args?: string[]
351
+ }
352
+
353
+ export type GatewayDiagnosticReq = {
354
+ workspaceId?: string
355
+ gatewayName?: string
356
+ clusterName?: string
357
+ namespaceName?: string
358
+ diagnostic?: GatewayDiagnostic
359
+ }
360
+
361
+ export type GatewayDiagnosticRes = {
362
+ tips?: string
345
363
  }
@@ -138,6 +138,9 @@ export class Gateway {
138
138
  static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
139
139
  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"})
140
140
  }
141
+ static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticRes> {
142
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
143
+ }
141
144
  static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes> {
142
145
  return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
143
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.4.1-83",
3
+ "version": "0.4.1-89",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {