@daocloud-proto/skoala 0.10.1-2 → 0.10.1-20

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.
@@ -111,7 +111,7 @@ export type Image = {
111
111
  pullPolicy?: string
112
112
  }
113
113
 
114
- export type Chart = {
115
- version?: string
114
+ export type Component = {
115
+ name?: string
116
116
  images?: {[key: string]: Image}
117
117
  }
@@ -17,5 +17,5 @@ export type GetVersionRes = {
17
17
  }
18
18
 
19
19
  export type GetHiveChartsRes = {
20
- nacos?: SkoalaApiGeneralV1alpha1Common.Chart
20
+ nacos?: SkoalaApiGeneralV1alpha1Common.Component
21
21
  }
@@ -141,10 +141,17 @@ export type GetGatewayReq = {
141
141
  gatewayName?: string
142
142
  }
143
143
 
144
- export type GetGatewayChartsRes = {
145
- sesame?: SkoalaApiGeneralV1alpha1Common.Chart
146
- rls?: SkoalaApiGeneralV1alpha1Common.Chart
147
- authz?: SkoalaApiGeneralV1alpha1Common.Chart
144
+ export type GetGatewayComponentsReq = {
145
+ workspaceId?: string
146
+ clusterName?: string
147
+ namespaceName?: string
148
+ gatewayName?: string
149
+ }
150
+
151
+ export type GetGatewayComponentsRes = {
152
+ gatway?: SkoalaApiGeneralV1alpha1Common.Component
153
+ rls?: SkoalaApiGeneralV1alpha1Common.Component
154
+ authz?: SkoalaApiGeneralV1alpha1Common.Component
148
155
  }
149
156
 
150
157
  export type GetGatewayRes = {
@@ -235,7 +242,7 @@ export type NormalConfig = {
235
242
  }
236
243
 
237
244
  export type GatewayConfig = {
238
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
245
+ component?: SkoalaApiGeneralV1alpha1Common.Component
239
246
  normal?: NormalConfig
240
247
  advanced?: AdvancedConfig
241
248
  }
@@ -275,18 +282,6 @@ export type RollingUpdate = {
275
282
  maxUnavailable?: string
276
283
  }
277
284
 
278
- export type GetImagesRes = {
279
- contour?: string
280
- envoy?: string
281
- }
282
-
283
- export type GetImagesReq = {
284
- workspaceId?: string
285
- clusterName?: string
286
- namespaceName?: string
287
- gatewayName?: string
288
- }
289
-
290
285
  export type GetGatewayStatusReq = {
291
286
  workspaceId?: string
292
287
  clusterName?: string
@@ -69,7 +69,7 @@ export type GetGatewayRLSRuleRes = {
69
69
  }
70
70
 
71
71
  export type GatewayPluginConfig = {
72
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
72
+ component?: SkoalaApiGeneralV1alpha1Common.Component
73
73
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
74
74
  replicas?: number
75
75
  }
@@ -171,7 +171,7 @@ export type RestartNacosReq = {
171
171
 
172
172
  export type NacosConfig = {
173
173
  type?: NacosConfigType
174
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
174
+ component?: SkoalaApiGeneralV1alpha1Common.Component
175
175
  replicas?: number
176
176
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
177
177
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
@@ -92,7 +92,7 @@ export type UpdatePluginReq = {
92
92
 
93
93
  export type UpdateSentinelPluginReq = {
94
94
  enabled?: boolean
95
- chart?: SkoalaApiGeneralV1alpha1Common.Chart
95
+ chart?: SkoalaApiGeneralV1alpha1Common.Component
96
96
  replicas?: number
97
97
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
98
98
  type?: SkoalaApiGeneralV1alpha1Service.ServiceType
@@ -100,6 +100,7 @@ export type PingRegistryReq = {
100
100
  }
101
101
 
102
102
  export type PingRegistryRes = {
103
+ status?: {[key: string]: boolean}
103
104
  namespaces?: Namespace[]
104
105
  }
105
106
 
@@ -386,8 +386,8 @@ export class Gateway {
386
386
  static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
387
387
  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"})
388
388
  }
389
- static GetImages(req: SkoalaApiHostedV1alpha1Gateway.GetImagesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
390
- 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"})
389
+ static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
390
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/components?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
391
391
  }
392
392
  static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
393
393
  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"})
@@ -395,8 +395,8 @@ export class Gateway {
395
395
  static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
396
396
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
397
397
  }
398
- static GetCharts(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayChartsRes> {
399
- return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetGatewayChartsRes>(`/apis/sesame.skoala.io/v1alpha1/charts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
398
+ static GetProvisionedComponents(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
399
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/components?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
400
400
  }
401
401
  static ListGatewayPods(req: SkoalaApiHostedV1alpha1Gateway.ListPodsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListPodsRes> {
402
402
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListPodsReq, SkoalaApiHostedV1alpha1Gateway.ListPodsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods?${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.10.1-2",
3
+ "version": "0.10.1-20",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {