@daocloud-proto/skoala 0.4.1-85 → 0.4.1-91

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
  }
@@ -134,4 +134,14 @@ export type DatabaseParam = {
134
134
  username?: string
135
135
  password?: string
136
136
  db?: string
137
+ }
138
+
139
+ export type ListNacosServiceReq = {
140
+ workspaceId?: string
141
+ clusterName?: string
142
+ nacosName?: string
143
+ namespaceName?: string
144
+ }
145
+
146
+ export type ListNacosServiceRes = {
137
147
  }
@@ -95,6 +95,9 @@ export class Nacos {
95
95
  static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
96
96
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE"})
97
97
  }
98
+ static ListService(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes> {
99
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "nacosName"])}`, {...initReq, method: "GET"})
100
+ }
98
101
  }
99
102
  export class Sentinel {
100
103
  static List(req: SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes> {
@@ -138,6 +141,9 @@ export class Gateway {
138
141
  static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
139
142
  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
143
  }
144
+ static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticRes> {
145
+ 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)})
146
+ }
141
147
  static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes> {
142
148
  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
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.4.1-85",
3
+ "version": "0.4.1-91",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {