@daocloud-proto/skoala 0.5.1-28 → 0.5.1-34

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.
@@ -12,6 +12,12 @@ export enum ListNamespaceReqGatewayStatus {
12
12
  Unavailable = "Unavailable",
13
13
  }
14
14
 
15
+ export enum ListServiceReqServiceType {
16
+ ALL = "ALL",
17
+ SESAME = "SESAME",
18
+ K8S = "K8S",
19
+ }
20
+
15
21
  export type ListWorkspaceReq = {
16
22
  page?: number
17
23
  pageSize?: number
@@ -49,6 +55,30 @@ export type ListNamespaceReq = {
49
55
  pageSize?: number
50
56
  }
51
57
 
58
+ export type ListServiceReq = {
59
+ workspaceId?: string
60
+ clusterName?: string
61
+ namespaceName?: string[]
62
+ serviceType?: ListServiceReqServiceType
63
+ serviceName?: string
64
+ page?: number
65
+ pageSize?: number
66
+ }
67
+
68
+ export type ListServiceRes = {
69
+ items?: ListServiceInfo[]
70
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
71
+ }
72
+
73
+ export type ListServiceInfo = {
74
+ serviceName?: string
75
+ namespaceName?: string
76
+ labels?: {[key: string]: string}
77
+ createdAt?: string
78
+ sesameServiceName?: string
79
+ sesameNamespaceName?: string
80
+ }
81
+
52
82
  export type ListNamespaceRes = {
53
83
  namespaceNames?: string[]
54
84
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
@@ -5,7 +5,6 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
- import * as SkoalaApiHostedV1alpha1Gatewayservice from "./gatewayservice.pb"
9
8
  import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
10
9
 
11
10
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
@@ -162,7 +161,7 @@ export type ServiceDetail = {
162
161
 
163
162
  type BaseAPIConfig = {
164
163
  apiName?: string
165
- virtualhost?: Virtualhost
164
+ fqdn?: string
166
165
  matchRule?: MatchRule
167
166
  enabled?: boolean
168
167
  }
@@ -200,16 +199,15 @@ export type RouteAction = {
200
199
  routeService?: RouteService[]
201
200
  }
202
201
 
203
-
204
- type BaseRouteService = {
202
+ export type RouteService = {
205
203
  protocol?: SkoalaApiHostedV1alpha1Http.Protocol
204
+ enableGrpc?: boolean
205
+ serviceName?: string
206
+ namespaceName?: string
206
207
  port?: number
207
208
  weight?: number
208
209
  }
209
210
 
210
- export type RouteService = BaseRouteService
211
- & OneOf<{ kubernetesService: SkoalaApiHostedV1alpha1Gatewayservice.KubernetesService; registryService: SkoalaApiHostedV1alpha1Gatewayservice.RegistryService; externalService: SkoalaApiHostedV1alpha1Gatewayservice.ExternalService }>
212
-
213
211
  export type RedirectAction = {
214
212
  hostname?: string
215
213
  path?: string
@@ -26,6 +26,7 @@ export type ListNacosReq = {
26
26
  workspaceId?: string
27
27
  clusterName?: string
28
28
  namespaceName?: string
29
+ nacosName?: string
29
30
  page?: number
30
31
  pageSize?: number
31
32
  }
@@ -120,8 +121,7 @@ export type NacosConfig = {
120
121
  type?: NacosConfigType
121
122
  version?: string
122
123
  replicas?: number
123
- cpu?: string
124
- memory?: string
124
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
125
125
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
126
126
  nodePort?: string
127
127
  databaseEnabled?: boolean
@@ -38,6 +38,9 @@ export class Skoala {
38
38
  static ListClusterNamespace(req: SkoalaApiGeneralV1alpha1Skoala.ListNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListNamespaceRes> {
39
39
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListNamespaceReq, SkoalaApiGeneralV1alpha1Skoala.ListNamespaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
40
40
  }
41
+ static ListClusterNamespaceService(req: SkoalaApiGeneralV1alpha1Skoala.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListServiceRes> {
42
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListServiceReq, SkoalaApiGeneralV1alpha1Skoala.ListServiceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
43
+ }
41
44
  static ListWorkspace(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes> {
42
45
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
43
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.5.1-28",
3
+ "version": "0.5.1-34",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {