@daocloud-proto/skoala 0.3.3 → 0.4.1-103
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.
- package/api/general/v1alpha1/common.pb.ts +46 -0
- package/api/general/v1alpha1/resource.pb.ts +15 -0
- package/api/general/v1alpha1/service.pb.ts +22 -0
- package/api/general/v1alpha1/skoala.pb.ts +22 -30
- package/api/hosted/v1alpha1/api.pb.ts +251 -0
- package/api/hosted/v1alpha1/apilog.pb.ts +47 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +248 -76
- package/api/hosted/v1alpha1/http.pb.ts +20 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +104 -2
- package/api/hosted/v1alpha1/sentinel.pb.ts +46 -10
- package/api/hosted/v1alpha1/virtualhost.pb.ts +96 -0
- package/api/integrated/v1alpha1/insight.pb.ts +39 -4
- package/api/integrated/v1alpha1/instance.pb.ts +31 -19
- package/api/integrated/v1alpha1/registry.pb.ts +8 -5
- package/api/integrated/v1alpha1/service.pb.ts +8 -11
- package/api/skoala/v1alpha1/book.pb.ts +2 -2
- package/api/skoala/v1alpha1/skoala.pb.ts +75 -24
- package/feature_gate/v1alpha1/feature_gate.pb.ts +27 -0
- package/fetch.pb.ts +109 -0
- package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
- package/google/api/annotations.pb.ts +1 -0
- package/google/api/http.pb.ts +34 -0
- package/google/protobuf/any.pb.ts +9 -0
- package/google/protobuf/api.pb.ts +32 -0
- package/google/protobuf/descriptor.pb.ts +262 -0
- package/google/protobuf/duration.pb.ts +9 -0
- package/google/protobuf/empty.pb.ts +7 -0
- package/google/protobuf/field_mask.pb.ts +8 -0
- package/google/protobuf/struct.pb.ts +33 -0
- package/google/protobuf/timestamp.pb.ts +9 -0
- package/google/protobuf/type.pb.ts +83 -0
- package/google/protobuf/wrappers.pb.ts +40 -0
- package/google/rpc/status.pb.ts +12 -0
- package/insight/v1alpha1/alert.pb.ts +291 -0
- package/insight/v1alpha1/notify.pb.ts +84 -0
- package/log/v1alpha1/log.pb.ts +122 -0
- package/metric/v1alpha1/metric.pb.ts +98 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +98 -0
- package/resource/v1alpha1/job.pb.ts +93 -0
- package/resource/v1alpha1/node.pb.ts +62 -0
- package/resource/v1alpha1/pod.pb.ts +82 -0
- package/resource/v1alpha1/service.pb.ts +61 -0
- package/resource/v1alpha1/type.pb.ts +9 -0
- package/resource/v1alpha1/workload.pb.ts +69 -0
- package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
- package/span_metric/v1alpha1/span_metric.pb.ts +61 -0
- package/tracing/v1alpha1/tracing.pb.ts +18 -0
- package/type/v1alpha1/page.pb.ts +11 -0
- package/validate/validate.pb.ts +266 -0
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
9
|
+
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
8
10
|
|
|
9
11
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
10
12
|
type OneOf<T> =
|
|
@@ -15,15 +17,29 @@ type OneOf<T> =
|
|
|
15
17
|
: never)
|
|
16
18
|
: never);
|
|
17
19
|
|
|
20
|
+
export enum HealthStatus {
|
|
21
|
+
HEALTH_STATUS_UNSPECIFIED = "HEALTH_STATUS_UNSPECIFIED",
|
|
22
|
+
Healthy = "Healthy",
|
|
23
|
+
Unhealthy = "Unhealthy",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export enum GatewayResource {
|
|
27
|
+
GATEWAY_RESOURCE_UNSPECIFIED = "GATEWAY_RESOURCE_UNSPECIFIED",
|
|
28
|
+
Api = "Api",
|
|
29
|
+
Deployment = "Deployment",
|
|
30
|
+
Service = "Service",
|
|
31
|
+
Pod = "Pod",
|
|
32
|
+
}
|
|
33
|
+
|
|
18
34
|
export enum LogLogLevel {
|
|
19
35
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
Trace = "Trace",
|
|
37
|
+
Debug = "Debug",
|
|
38
|
+
Info = "Info",
|
|
39
|
+
Warning = "Warning",
|
|
40
|
+
Error = "Error",
|
|
41
|
+
CriticalL = "CriticalL",
|
|
42
|
+
Off = "Off",
|
|
27
43
|
}
|
|
28
44
|
|
|
29
45
|
export type Node = {
|
|
@@ -32,50 +48,43 @@ export type Node = {
|
|
|
32
48
|
}
|
|
33
49
|
|
|
34
50
|
export type Gateway = {
|
|
35
|
-
workspaceId?:
|
|
51
|
+
workspaceId?: string
|
|
36
52
|
clusterName?: string
|
|
37
53
|
namespaceName?: string
|
|
38
|
-
|
|
54
|
+
gatewayName?: string
|
|
39
55
|
createdAt?: string
|
|
40
56
|
updatedAt?: string
|
|
41
|
-
status?:
|
|
57
|
+
status?: SkoalaApiGeneralV1alpha1Common.Status
|
|
42
58
|
endpoints?: string[]
|
|
43
|
-
|
|
44
|
-
|
|
59
|
+
contour?: Node
|
|
60
|
+
envoy?: Node
|
|
61
|
+
apiCount?: number
|
|
45
62
|
config?: GatewayConfig
|
|
46
63
|
}
|
|
47
64
|
|
|
48
65
|
export type ListAllGatewayReq = {
|
|
49
|
-
workspaceId?:
|
|
66
|
+
workspaceId?: string
|
|
50
67
|
page?: number
|
|
51
|
-
|
|
68
|
+
pageSize?: number
|
|
52
69
|
filter?: string
|
|
53
70
|
}
|
|
54
71
|
|
|
55
72
|
export type ListClusterGatewayReq = {
|
|
56
|
-
workspaceId?:
|
|
73
|
+
workspaceId?: string
|
|
57
74
|
clusterName?: string
|
|
58
75
|
page?: number
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export type ListNamespaceGatewayReq = {
|
|
63
|
-
workspaceId?: number
|
|
64
|
-
clusterName?: string
|
|
65
|
-
namespaceName?: string
|
|
66
|
-
page?: number
|
|
67
|
-
size?: number
|
|
76
|
+
pageSize?: number
|
|
77
|
+
namespaceNames?: string[]
|
|
78
|
+
filter?: string
|
|
68
79
|
}
|
|
69
80
|
|
|
70
81
|
export type ListGatewayRes = {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
size?: number
|
|
74
|
-
total?: number
|
|
82
|
+
items?: Gateway[]
|
|
83
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
75
84
|
}
|
|
76
85
|
|
|
77
86
|
export type GetGatewayReq = {
|
|
78
|
-
workspaceId?:
|
|
87
|
+
workspaceId?: string
|
|
79
88
|
clusterName?: string
|
|
80
89
|
namespaceName?: string
|
|
81
90
|
gatewayName?: string
|
|
@@ -85,21 +94,108 @@ export type GetGatewayRes = {
|
|
|
85
94
|
gateways?: Gateway
|
|
86
95
|
}
|
|
87
96
|
|
|
97
|
+
export type EnvoyPortsString = {
|
|
98
|
+
http?: string
|
|
99
|
+
https?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type EnvoyPorts = {
|
|
103
|
+
http?: number
|
|
104
|
+
https?: number
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type ContourPorts = {
|
|
108
|
+
xds?: number
|
|
109
|
+
metrics?: number
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type ContourPortsString = {
|
|
113
|
+
xds?: string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type HostIPs = {
|
|
117
|
+
http?: string
|
|
118
|
+
https?: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type EnvoyService = {
|
|
122
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
123
|
+
enableHttps?: boolean
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type EnvoyServicePro = {
|
|
127
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
128
|
+
ports?: EnvoyPorts
|
|
129
|
+
targetPorts?: EnvoyPortsString
|
|
130
|
+
nodePorts?: EnvoyPortsString
|
|
131
|
+
extraPorts?: string[]
|
|
132
|
+
externalTrafficPolicy?: string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type ContourService = {
|
|
136
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
137
|
+
clusterIp?: string
|
|
138
|
+
ports?: ContourPorts
|
|
139
|
+
nodePorts?: ContourPortsString
|
|
140
|
+
extraPorts?: string[]
|
|
141
|
+
externalTrafficPolicy?: string
|
|
142
|
+
loadBalancerSourceRanges?: string[]
|
|
143
|
+
loadBalancerIp?: string
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type EnvoyNormalConfig = {
|
|
147
|
+
replicas?: number
|
|
148
|
+
service?: EnvoyService
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type EnvoyNormalConfigPro = {
|
|
152
|
+
kind?: string
|
|
153
|
+
replicas?: number
|
|
154
|
+
hostNetwork?: boolean
|
|
155
|
+
dnsPolicy?: string
|
|
156
|
+
useHostIp?: boolean
|
|
157
|
+
useHostPort?: boolean
|
|
158
|
+
containerPorts?: EnvoyPorts
|
|
159
|
+
hostIps?: HostIPs
|
|
160
|
+
hostPorts?: EnvoyPorts
|
|
161
|
+
service?: EnvoyServicePro
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export type ContourNormalConfig = {
|
|
165
|
+
rootNamespaces?: string[]
|
|
166
|
+
replicas?: number
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type ContourNormalConfigPro = {
|
|
170
|
+
rootNamespaces?: string[]
|
|
171
|
+
replicas?: number
|
|
172
|
+
containerPorts?: ContourPorts
|
|
173
|
+
service?: ContourService
|
|
174
|
+
}
|
|
175
|
+
|
|
88
176
|
export type CreateGatewayReq = {
|
|
89
|
-
workspaceId?:
|
|
90
|
-
|
|
177
|
+
workspaceId?: string
|
|
178
|
+
gatewayName?: string
|
|
91
179
|
clusterName?: string
|
|
92
180
|
namespaceName?: string
|
|
93
|
-
createNamespace?: boolean
|
|
94
181
|
config?: GatewayConfig
|
|
95
182
|
}
|
|
96
183
|
|
|
97
184
|
export type CreateGatewayRes = {
|
|
98
|
-
|
|
185
|
+
status?: SkoalaApiGeneralV1alpha1Common.Status
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export type CreateGatewayProReq = {
|
|
189
|
+
workspaceId?: string
|
|
190
|
+
gatewayName?: string
|
|
191
|
+
clusterName?: string
|
|
192
|
+
namespaceName?: string
|
|
193
|
+
createNamespace?: boolean
|
|
194
|
+
config?: GatewayConfigPro
|
|
99
195
|
}
|
|
100
196
|
|
|
101
197
|
export type UpdateGatewayReq = {
|
|
102
|
-
workspaceId?:
|
|
198
|
+
workspaceId?: string
|
|
103
199
|
gatewayName?: string
|
|
104
200
|
clusterName?: string
|
|
105
201
|
namespaceName?: string
|
|
@@ -107,18 +203,36 @@ export type UpdateGatewayReq = {
|
|
|
107
203
|
}
|
|
108
204
|
|
|
109
205
|
export type UpdateGatewayRes = {
|
|
110
|
-
|
|
206
|
+
status?: SkoalaApiGeneralV1alpha1Common.Status
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export type UpdateGatewayProReq = {
|
|
210
|
+
workspaceId?: string
|
|
211
|
+
gatewayName?: string
|
|
212
|
+
clusterName?: string
|
|
213
|
+
namespaceName?: string
|
|
214
|
+
config?: GatewayConfigPro
|
|
111
215
|
}
|
|
112
216
|
|
|
113
217
|
export type DeleteGatewayReq = {
|
|
114
|
-
workspaceId?:
|
|
218
|
+
workspaceId?: string
|
|
115
219
|
clusterName?: string
|
|
116
220
|
namespaceName?: string
|
|
117
221
|
gatewayName?: string
|
|
118
222
|
}
|
|
119
223
|
|
|
120
224
|
export type DeleteGatewayRes = {
|
|
121
|
-
|
|
225
|
+
status?: SkoalaApiGeneralV1alpha1Common.Status
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export type NormalConfig = {
|
|
229
|
+
contour?: ContourNormalConfig
|
|
230
|
+
envoy?: EnvoyNormalConfig
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export type NormalConfigPro = {
|
|
234
|
+
contour?: ContourNormalConfigPro
|
|
235
|
+
envoy?: EnvoyNormalConfigPro
|
|
122
236
|
}
|
|
123
237
|
|
|
124
238
|
export type GatewayConfig = {
|
|
@@ -126,66 +240,124 @@ export type GatewayConfig = {
|
|
|
126
240
|
advanced?: AdvancedConfig
|
|
127
241
|
}
|
|
128
242
|
|
|
243
|
+
export type GatewayConfigPro = {
|
|
244
|
+
normal?: NormalConfigPro
|
|
245
|
+
advanced?: AdvancedConfigPro
|
|
246
|
+
}
|
|
247
|
+
|
|
129
248
|
|
|
130
|
-
type
|
|
131
|
-
|
|
132
|
-
|
|
249
|
+
type BaseContourAdvancedConfig = {
|
|
250
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
251
|
+
diagnostic?: GatewayDiagnostic
|
|
133
252
|
}
|
|
134
253
|
|
|
135
|
-
export type
|
|
136
|
-
& OneOf<{
|
|
254
|
+
export type ContourAdvancedConfig = BaseContourAdvancedConfig
|
|
255
|
+
& OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
|
|
137
256
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
port?: number
|
|
142
|
-
targetPort?: number
|
|
143
|
-
nodePort?: number
|
|
257
|
+
|
|
258
|
+
type BaseEnvoyAdvancedConfig = {
|
|
259
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
144
260
|
}
|
|
145
261
|
|
|
146
|
-
export type
|
|
147
|
-
|
|
262
|
+
export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
|
|
263
|
+
& OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
|
|
264
|
+
|
|
265
|
+
export type AdvancedConfig = {
|
|
266
|
+
log?: Log
|
|
267
|
+
contour?: ContourAdvancedConfig
|
|
268
|
+
envoy?: EnvoyAdvancedConfig
|
|
148
269
|
}
|
|
149
270
|
|
|
150
|
-
export type
|
|
151
|
-
|
|
271
|
+
export type AdvancedConfigPro = {
|
|
272
|
+
log?: Log
|
|
273
|
+
contour?: ContourAdvancedConfig
|
|
274
|
+
envoy?: EnvoyAdvancedConfig
|
|
275
|
+
globalRateLimit?: boolean
|
|
152
276
|
}
|
|
153
277
|
|
|
154
|
-
export type
|
|
278
|
+
export type Log = {
|
|
279
|
+
envoyLogLevel?: LogLogLevel
|
|
280
|
+
k8SDebug?: number
|
|
281
|
+
contourDebug?: boolean
|
|
282
|
+
logToInsight?: boolean
|
|
155
283
|
}
|
|
156
284
|
|
|
157
|
-
export type
|
|
158
|
-
|
|
285
|
+
export type RollingUpdate = {
|
|
286
|
+
maxSurge?: string
|
|
287
|
+
maxUnavailable?: string
|
|
159
288
|
}
|
|
160
289
|
|
|
290
|
+
export type GetImagesRes = {
|
|
291
|
+
contour?: string
|
|
292
|
+
envoy?: string
|
|
293
|
+
}
|
|
161
294
|
|
|
162
|
-
type
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
295
|
+
export type GetGatewayStatusReq = {
|
|
296
|
+
workspaceId?: string
|
|
297
|
+
clusterName?: string
|
|
298
|
+
namespaceName?: string
|
|
299
|
+
gatewayName?: string
|
|
166
300
|
}
|
|
167
301
|
|
|
168
|
-
export type
|
|
169
|
-
|
|
302
|
+
export type GetGatewayStatusRes = {
|
|
303
|
+
health?: GatewayHealth
|
|
304
|
+
}
|
|
170
305
|
|
|
171
|
-
export type
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
306
|
+
export type DeploymentHealth = {
|
|
307
|
+
name?: string
|
|
308
|
+
status?: HealthStatus
|
|
309
|
+
availableReplicas?: number
|
|
310
|
+
replicas?: number
|
|
311
|
+
msgs?: string[]
|
|
176
312
|
}
|
|
177
313
|
|
|
178
|
-
export type
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
314
|
+
export type ContainerHealth = {
|
|
315
|
+
name?: string
|
|
316
|
+
status?: HealthStatus
|
|
317
|
+
containerPort?: number
|
|
318
|
+
responseTime?: number
|
|
319
|
+
msgs?: string[]
|
|
183
320
|
}
|
|
184
321
|
|
|
185
|
-
export type
|
|
186
|
-
|
|
187
|
-
|
|
322
|
+
export type ServiceHealth = {
|
|
323
|
+
name?: string
|
|
324
|
+
status?: HealthStatus
|
|
325
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
326
|
+
clusterIp?: string
|
|
327
|
+
nodeIp?: string
|
|
328
|
+
ports?: string[]
|
|
329
|
+
msgs?: string[]
|
|
188
330
|
}
|
|
189
331
|
|
|
190
|
-
export type
|
|
332
|
+
export type PodHealth = {
|
|
333
|
+
name?: string
|
|
334
|
+
status?: HealthStatus
|
|
335
|
+
containers?: ContainerHealth[]
|
|
336
|
+
msgs?: string[]
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export type GatewayHealth = {
|
|
340
|
+
status?: SkoalaApiGeneralV1alpha1Common.Status
|
|
341
|
+
deployments?: DeploymentHealth[]
|
|
342
|
+
services?: ServiceHealth[]
|
|
343
|
+
pods?: PodHealth[]
|
|
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
|
|
191
363
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export enum HttpMethod {
|
|
8
|
+
GET = "GET",
|
|
9
|
+
POST = "POST",
|
|
10
|
+
DELETE = "DELETE",
|
|
11
|
+
PUT = "PUT",
|
|
12
|
+
PATCH = "PATCH",
|
|
13
|
+
OPTION = "OPTION",
|
|
14
|
+
ALL = "ALL",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum Protocol {
|
|
18
|
+
HTTP = "HTTP",
|
|
19
|
+
HTTPS = "HTTPS",
|
|
20
|
+
}
|
|
@@ -3,26 +3,92 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
9
|
+
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
10
|
+
|
|
11
|
+
export enum NacosStatus {
|
|
12
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
13
|
+
Running = "Running",
|
|
14
|
+
Creating = "Creating",
|
|
15
|
+
Failed = "Failed",
|
|
16
|
+
Scaling = "Scaling",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export enum NacosConfigType {
|
|
20
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
21
|
+
standalone = "standalone",
|
|
22
|
+
cluster = "cluster",
|
|
23
|
+
}
|
|
24
|
+
|
|
6
25
|
export type ListNacosReq = {
|
|
7
26
|
workspaceId?: string
|
|
27
|
+
clusterName?: string
|
|
28
|
+
namespaceName?: string
|
|
8
29
|
page?: number
|
|
30
|
+
pageSize?: number
|
|
9
31
|
}
|
|
10
32
|
|
|
11
33
|
export type ListNacosRes = {
|
|
34
|
+
items?: Nacos[]
|
|
35
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type Nacos = {
|
|
39
|
+
workspaceId?: string
|
|
40
|
+
clusterName?: string
|
|
41
|
+
nacosName?: string
|
|
42
|
+
namespaceName?: string
|
|
43
|
+
type?: NacosConfigType
|
|
44
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
45
|
+
nodePort?: number
|
|
46
|
+
status?: NacosStatus
|
|
47
|
+
replicas?: number
|
|
48
|
+
image?: string
|
|
49
|
+
version?: string
|
|
50
|
+
database?: NacosDatabase
|
|
51
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
52
|
+
condition?: NacosCondition[]
|
|
53
|
+
createAt?: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type NacosDatabase = {
|
|
57
|
+
type?: string
|
|
58
|
+
host?: string
|
|
59
|
+
port?: string
|
|
60
|
+
db?: string
|
|
61
|
+
user?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type NacosCondition = {
|
|
65
|
+
type?: string
|
|
66
|
+
status?: string
|
|
67
|
+
reason?: string
|
|
68
|
+
message?: string
|
|
69
|
+
instance?: string
|
|
70
|
+
hostIP?: string
|
|
71
|
+
podName?: string
|
|
72
|
+
nodeName?: string
|
|
12
73
|
}
|
|
13
74
|
|
|
14
75
|
export type GetNacosReq = {
|
|
15
76
|
workspaceId?: string
|
|
77
|
+
clusterName?: string
|
|
16
78
|
nacosName?: string
|
|
79
|
+
namespaceName?: string
|
|
17
80
|
}
|
|
18
81
|
|
|
19
82
|
export type GetNacosRes = {
|
|
83
|
+
nacos?: Nacos
|
|
20
84
|
}
|
|
21
85
|
|
|
22
86
|
export type UpdateNacosReq = {
|
|
23
87
|
workspaceId?: string
|
|
88
|
+
clusterName?: string
|
|
24
89
|
nacosName?: string
|
|
25
|
-
|
|
90
|
+
namespaceName?: string
|
|
91
|
+
config?: NacosConfig
|
|
26
92
|
}
|
|
27
93
|
|
|
28
94
|
export type UpdateNacosRes = {
|
|
@@ -30,7 +96,11 @@ export type UpdateNacosRes = {
|
|
|
30
96
|
|
|
31
97
|
export type CreateNacosReq = {
|
|
32
98
|
workspaceId?: string
|
|
33
|
-
|
|
99
|
+
clusterName?: string
|
|
100
|
+
nacosName?: string
|
|
101
|
+
namespaceName?: string
|
|
102
|
+
createNamespace?: boolean
|
|
103
|
+
config?: NacosConfig
|
|
34
104
|
}
|
|
35
105
|
|
|
36
106
|
export type CreateNacosRes = {
|
|
@@ -38,8 +108,40 @@ export type CreateNacosRes = {
|
|
|
38
108
|
|
|
39
109
|
export type DeleteNacosReq = {
|
|
40
110
|
workspaceId?: string
|
|
111
|
+
clusterName?: string
|
|
41
112
|
nacosName?: string
|
|
113
|
+
namespaceName?: string
|
|
42
114
|
}
|
|
43
115
|
|
|
44
116
|
export type DeleteNacosRes = {
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type NacosConfig = {
|
|
120
|
+
type?: NacosConfigType
|
|
121
|
+
version?: string
|
|
122
|
+
replicas?: number
|
|
123
|
+
cpu?: string
|
|
124
|
+
memory?: string
|
|
125
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
126
|
+
nodePort?: string
|
|
127
|
+
databaseEnabled?: boolean
|
|
128
|
+
databaseParam?: DatabaseParam
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type DatabaseParam = {
|
|
132
|
+
host?: string
|
|
133
|
+
port?: string
|
|
134
|
+
username?: string
|
|
135
|
+
password?: string
|
|
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 = {
|
|
45
147
|
}
|
|
@@ -3,42 +3,78 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
6
9
|
export type ListSentinelReq = {
|
|
7
|
-
|
|
10
|
+
workspace?: string
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
8
13
|
page?: number
|
|
14
|
+
pageSize?: number
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
export type ListSentinelRes = {
|
|
18
|
+
items?: Sentinel[]
|
|
19
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type Sentinel = {
|
|
23
|
+
workspace?: string
|
|
24
|
+
cluster?: string
|
|
25
|
+
namespace?: string
|
|
26
|
+
name?: string
|
|
27
|
+
config?: SentinelConfig
|
|
12
28
|
}
|
|
13
29
|
|
|
14
30
|
export type GetSentinelReq = {
|
|
15
|
-
|
|
16
|
-
|
|
31
|
+
workspace?: string
|
|
32
|
+
cluster?: string
|
|
33
|
+
namespace?: string
|
|
34
|
+
name?: string
|
|
17
35
|
}
|
|
18
36
|
|
|
19
37
|
export type GetSentinelRes = {
|
|
38
|
+
sentinel?: Sentinel
|
|
20
39
|
}
|
|
21
40
|
|
|
22
41
|
export type UpdateSentinelReq = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
42
|
+
workspace?: string
|
|
43
|
+
cluster?: string
|
|
44
|
+
namespace?: string
|
|
45
|
+
name?: string
|
|
46
|
+
nacosAddress?: string
|
|
47
|
+
config?: SentinelConfig
|
|
26
48
|
}
|
|
27
49
|
|
|
28
50
|
export type UpdateSentinelRes = {
|
|
29
51
|
}
|
|
30
52
|
|
|
53
|
+
export type SentinelConfig = {
|
|
54
|
+
type?: string
|
|
55
|
+
port?: number
|
|
56
|
+
nodePort?: number
|
|
57
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
58
|
+
image?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
31
61
|
export type CreateSentinelReq = {
|
|
32
|
-
|
|
33
|
-
|
|
62
|
+
workspace?: string
|
|
63
|
+
cluster?: string
|
|
64
|
+
namespace?: string
|
|
65
|
+
name?: string
|
|
66
|
+
nacosAddress?: string
|
|
67
|
+
config?: SentinelConfig
|
|
34
68
|
}
|
|
35
69
|
|
|
36
70
|
export type CreateSentinelRes = {
|
|
37
71
|
}
|
|
38
72
|
|
|
39
73
|
export type DeleteSentinelReq = {
|
|
40
|
-
|
|
41
|
-
|
|
74
|
+
workspace?: string
|
|
75
|
+
cluster?: string
|
|
76
|
+
namespace?: string
|
|
77
|
+
name?: string
|
|
42
78
|
}
|
|
43
79
|
|
|
44
80
|
export type DeleteSentinelRes = {
|