@daocloud-proto/skoala 0.4.1-31 → 0.4.1-37

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.
@@ -65,26 +65,23 @@ export type GetWorkspaceRes = {
65
65
  export type ListClusterReq = {
66
66
  workspaceId?: string
67
67
  page?: number
68
- size?: number
68
+ pageSize?: number
69
69
  }
70
70
 
71
71
  export type ListClusterRes = {
72
72
  clusters?: Cluster[]
73
- page?: number
74
- size?: number
75
- total?: number
73
+ pagination?: Pagination
76
74
  }
77
75
 
78
76
  export type ListNamespaceReq = {
79
77
  workspaceId?: string
80
78
  clusterName?: string
79
+ gatewayStatus?: number
81
80
  page?: number
82
- size?: number
81
+ pageSize?: number
83
82
  }
84
83
 
85
84
  export type ListNamespaceRes = {
86
85
  namespaceNames?: string[]
87
- page?: number
88
- size?: number
89
- total?: number
86
+ pagination?: Pagination
90
87
  }
@@ -15,6 +15,12 @@ type OneOf<T> =
15
15
  : never)
16
16
  : never);
17
17
 
18
+ export enum ServiceType {
19
+ SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
20
+ NodePort = "NodePort",
21
+ LoadBalancer = "LoadBalancer",
22
+ }
23
+
18
24
  export enum LogLogLevel {
19
25
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
20
26
  TRACE = "TRACE",
@@ -57,6 +63,7 @@ export type ListClusterGatewayReq = {
57
63
  clusterName?: string
58
64
  page?: number
59
65
  pageSize?: number
66
+ namespaceNames?: string[]
60
67
  filter?: string
61
68
  }
62
69
 
@@ -101,7 +108,13 @@ export type HostIPs = {
101
108
  }
102
109
 
103
110
  export type EnvoyService = {
104
- type?: string
111
+ type?: ServiceType
112
+ ports?: EnvoyPorts
113
+ nodePorts?: EnvoyPortsString
114
+ }
115
+
116
+ export type EnvoyServicePro = {
117
+ type?: ServiceType
105
118
  ports?: EnvoyPorts
106
119
  targetPorts?: EnvoyPortsString
107
120
  nodePorts?: EnvoyPortsString
@@ -110,7 +123,7 @@ export type EnvoyService = {
110
123
  }
111
124
 
112
125
  export type ContourService = {
113
- type?: string
126
+ type?: ServiceType
114
127
  clusterIp?: string
115
128
  ports?: ContourPorts
116
129
  nodePorts?: ContourPortsString
@@ -121,6 +134,11 @@ export type ContourService = {
121
134
  }
122
135
 
123
136
  export type EnvoyNormalConfig = {
137
+ replicas?: number
138
+ service?: EnvoyService
139
+ }
140
+
141
+ export type EnvoyNormalConfigPro = {
124
142
  kind?: string
125
143
  replicas?: number
126
144
  hostNetwork?: boolean
@@ -130,11 +148,16 @@ export type EnvoyNormalConfig = {
130
148
  containerPorts?: EnvoyPorts
131
149
  hostIps?: HostIPs
132
150
  hostPorts?: EnvoyPorts
133
- service?: EnvoyService
151
+ service?: EnvoyServicePro
134
152
  }
135
153
 
136
154
  export type ContourNormalConfig = {
137
- rootNamespaces?: string
155
+ rootNamespaces?: string[]
156
+ replicas?: number
157
+ }
158
+
159
+ export type ContourNormalConfigPro = {
160
+ rootNamespaces?: string[]
138
161
  replicas?: number
139
162
  containerPorts?: ContourPorts
140
163
  service?: ContourService
@@ -145,10 +168,18 @@ export type CreateGatewayReq = {
145
168
  name?: string
146
169
  clusterName?: string
147
170
  namespaceName?: string
148
- createNamespace?: boolean
149
171
  config?: GatewayConfig
150
172
  }
151
173
 
174
+ export type CreateGatewayProReq = {
175
+ workspaceId?: number
176
+ name?: string
177
+ clusterName?: string
178
+ namespaceName?: string
179
+ createNamespace?: boolean
180
+ config?: GatewayConfigPro
181
+ }
182
+
152
183
  export type UpdateGatewayReq = {
153
184
  workspaceId?: number
154
185
  gatewayName?: string
@@ -157,6 +188,14 @@ export type UpdateGatewayReq = {
157
188
  config?: GatewayConfig
158
189
  }
159
190
 
191
+ export type UpdateGatewayProReq = {
192
+ workspaceId?: number
193
+ gatewayName?: string
194
+ clusterName?: string
195
+ namespaceName?: string
196
+ config?: GatewayConfigPro
197
+ }
198
+
160
199
  export type DeleteGatewayReq = {
161
200
  workspaceId?: number
162
201
  clusterName?: string
@@ -173,11 +212,21 @@ export type NormalConfig = {
173
212
  envoy?: EnvoyNormalConfig
174
213
  }
175
214
 
215
+ export type NormalConfigPro = {
216
+ contour?: ContourNormalConfigPro
217
+ envoy?: EnvoyNormalConfigPro
218
+ }
219
+
176
220
  export type GatewayConfig = {
177
221
  normal?: NormalConfig
178
222
  advanced?: AdvancedConfig
179
223
  }
180
224
 
225
+ export type GatewayConfigPro = {
226
+ normal?: NormalConfigPro
227
+ advanced?: AdvancedConfigPro
228
+ }
229
+
181
230
 
182
231
  type BaseContourAdvancedConfig = {
183
232
  resources?: Resource
@@ -198,6 +247,12 @@ export type AdvancedConfig = {
198
247
  log?: Log
199
248
  contour?: ContourAdvancedConfig
200
249
  envoy?: EnvoyAdvancedConfig
250
+ }
251
+
252
+ export type AdvancedConfigPro = {
253
+ log?: Log
254
+ contour?: ContourAdvancedConfig
255
+ envoy?: EnvoyAdvancedConfig
201
256
  globalRateLimit?: boolean
202
257
  }
203
258
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.4.1-31",
3
+ "version": "0.4.1-37",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {