@daocloud-proto/skoala 0.6.1 → 0.7.0-2
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 +17 -0
- package/api/general/v1alpha1/insight.pb.ts +57 -0
- package/api/general/v1alpha1/service.pb.ts +1 -1
- package/api/general/v1alpha1/skoala.pb.ts +3 -3
- package/api/hosted/v1alpha1/api.pb.ts +25 -61
- package/api/hosted/v1alpha1/apilog.pb.ts +1 -1
- package/api/hosted/v1alpha1/extension.pb.ts +0 -18
- package/api/hosted/v1alpha1/gateway.pb.ts +34 -82
- package/api/hosted/v1alpha1/gatewaysecret.pb.ts +74 -0
- package/api/hosted/v1alpha1/gatewayservice.pb.ts +47 -10
- package/api/hosted/v1alpha1/http.pb.ts +2 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +257 -123
- package/api/hosted/v1alpha1/plugins.pb.ts +118 -0
- package/api/hosted/v1alpha1/sentinel.pb.ts +262 -30
- package/api/hosted/v1alpha1/virtualhost.pb.ts +15 -13
- package/api/integrated/v1alpha1/instance.pb.ts +15 -4
- package/api/integrated/v1alpha1/registry.pb.ts +0 -12
- package/api/integrated/v1alpha1/service.pb.ts +49 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +219 -88
- package/google/api/httpbody.pb.ts +12 -0
- package/package.json +1 -1
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
export enum APIDataType {
|
|
8
|
+
DATA_TYPE_UNSPECIFIED = "DATA_TYPE_UNSPECIFIED",
|
|
9
|
+
JSON = "JSON",
|
|
10
|
+
YAML = "YAML",
|
|
11
|
+
}
|
|
12
|
+
|
|
7
13
|
export enum OrderBy {
|
|
8
14
|
desc = "desc",
|
|
9
15
|
asc = "asc",
|
|
@@ -73,4 +79,15 @@ export type Pagination = {
|
|
|
73
79
|
page?: number
|
|
74
80
|
pageSize?: number
|
|
75
81
|
pages?: number
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type API = {
|
|
85
|
+
apiId?: number
|
|
86
|
+
isHosted?: boolean
|
|
87
|
+
registry?: string
|
|
88
|
+
serviceName?: string
|
|
89
|
+
nacosNamespace?: string
|
|
90
|
+
nacosGroupName?: string
|
|
91
|
+
dataType?: APIDataType
|
|
92
|
+
detail?: string
|
|
76
93
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
|
|
8
|
+
export type InsightBrief = {
|
|
9
|
+
enabled?: boolean
|
|
10
|
+
brief?: InsightTracingBrief
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type ServiceInsightDetail = {
|
|
14
|
+
enabled?: boolean
|
|
15
|
+
brief?: InsightTracingBrief
|
|
16
|
+
tracingMetrics?: InsightTracingMetrics
|
|
17
|
+
monitorMetrics?: InsightMonitorMetrics
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type InstanceInsightDetail = {
|
|
21
|
+
enabled?: boolean
|
|
22
|
+
brief?: InsightTracingBrief
|
|
23
|
+
tracingMetrics?: InsightTracingMetrics
|
|
24
|
+
monitorMetrics?: InsightMonitorMetrics
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type InsightTracingBrief = {
|
|
28
|
+
call?: string
|
|
29
|
+
successRates?: string
|
|
30
|
+
latencies?: string
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type InsightTracingMetrics = {
|
|
34
|
+
p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
35
|
+
p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
36
|
+
p90Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
37
|
+
p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
38
|
+
p99Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
39
|
+
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
40
|
+
repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
41
|
+
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
42
|
+
successTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
43
|
+
errorTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type InsightMonitorMetrics = {
|
|
47
|
+
cpuRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
48
|
+
cpuLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
49
|
+
cpuUsage?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
50
|
+
memoryRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
51
|
+
memoryLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
52
|
+
memoryUsage?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
53
|
+
diskRead?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
54
|
+
diskWrite?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
55
|
+
netBytesReceived?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
56
|
+
netBytesTransmitted?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
57
|
+
}
|
|
@@ -121,15 +121,15 @@ export type ListMeshReq = {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
export type ListMeshRes = {
|
|
124
|
-
|
|
124
|
+
items?: SkoalaApiGeneralV1alpha1Common.Mesh[]
|
|
125
125
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
export type
|
|
128
|
+
export type ListStorageClassesReq = {
|
|
129
129
|
workspaceId?: string
|
|
130
130
|
clusterName?: string
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export type
|
|
133
|
+
export type ListStorageClassesRes = {
|
|
134
134
|
items?: string[]
|
|
135
135
|
}
|
|
@@ -36,15 +36,6 @@ export enum GrpcRetryOnEnum {
|
|
|
36
36
|
unavailable = "unavailable",
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export enum ValueMatchType {
|
|
40
|
-
CONTAIN = "CONTAIN",
|
|
41
|
-
EXACT = "EXACT",
|
|
42
|
-
NOT_CONTAIN = "NOT_CONTAIN",
|
|
43
|
-
NOT_EXACT = "NOT_EXACT",
|
|
44
|
-
PRESENT = "PRESENT",
|
|
45
|
-
NOT_PRESENT = "NOT_PRESENT",
|
|
46
|
-
}
|
|
47
|
-
|
|
48
39
|
export enum RedirectResponseCode {
|
|
49
40
|
MOVED_PERMANENTLY = "MOVED_PERMANENTLY",
|
|
50
41
|
FOUND = "FOUND",
|
|
@@ -70,17 +61,24 @@ export type CreateAPIReq = {
|
|
|
70
61
|
advancedApiConfig?: AdvancedAPIConfig
|
|
71
62
|
}
|
|
72
63
|
|
|
73
|
-
export type
|
|
64
|
+
export type ListAPIGroupReq = {
|
|
74
65
|
workspaceId?: string
|
|
75
66
|
gatewayName?: string
|
|
76
67
|
clusterName?: string
|
|
77
68
|
namespaceName?: string
|
|
78
|
-
apiName?: string
|
|
79
|
-
advancedApiConfig?: AdvancedAPIConfig
|
|
80
69
|
}
|
|
81
70
|
|
|
82
|
-
export type
|
|
71
|
+
export type ListAPIGroupRes = {
|
|
72
|
+
groupNames?: string[]
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type AdvancedAPIReq = {
|
|
76
|
+
workspaceId?: string
|
|
77
|
+
gatewayName?: string
|
|
78
|
+
clusterName?: string
|
|
79
|
+
namespaceName?: string
|
|
83
80
|
apiName?: string
|
|
81
|
+
advancedApiConfig?: AdvancedAPIConfig
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
export type TimeoutPolicy = {
|
|
@@ -100,6 +98,13 @@ export type AdvancedAPIConfig = {
|
|
|
100
98
|
websocketPolicy?: WebsocketPolicy
|
|
101
99
|
healthCheckPolicy?: HealthCheckPolicy
|
|
102
100
|
rateLimitPolicy?: SkoalaApiHostedV1alpha1Virtualhost.RateLimitPolicy
|
|
101
|
+
requestHeadersPolicy?: HeaderPolicy
|
|
102
|
+
responseHeadersPolicy?: HeaderPolicy
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type HeaderPolicy = {
|
|
106
|
+
remove?: string[]
|
|
107
|
+
set?: SkoalaApiHostedV1alpha1Http.Header[]
|
|
103
108
|
}
|
|
104
109
|
|
|
105
110
|
export type HealthCheckPolicy = {
|
|
@@ -170,28 +175,12 @@ export type UpdateAPIStatusReq = {
|
|
|
170
175
|
enabled?: boolean
|
|
171
176
|
}
|
|
172
177
|
|
|
173
|
-
export type UpdateAPIStatusRes = {
|
|
174
|
-
apiName?: string
|
|
175
|
-
enabled?: boolean
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export type CreateAPIRes = {
|
|
179
|
-
apiName?: string
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export type UpdateAPIRes = {
|
|
183
|
-
apiName?: string
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export type DeleteAPIRes = {
|
|
187
|
-
apiName?: string
|
|
188
|
-
}
|
|
189
|
-
|
|
190
178
|
export type GetAPIReq = {
|
|
191
179
|
workspaceId?: string
|
|
192
180
|
clusterName?: string
|
|
193
181
|
gatewayName?: string
|
|
194
182
|
apiName?: string
|
|
183
|
+
apiGroup?: string
|
|
195
184
|
namespaceName?: string
|
|
196
185
|
}
|
|
197
186
|
|
|
@@ -207,6 +196,7 @@ export type DeleteAPIReq = {
|
|
|
207
196
|
type BaseGetAPIRes = {
|
|
208
197
|
apiName?: string
|
|
209
198
|
enabled?: boolean
|
|
199
|
+
apiGroup?: string
|
|
210
200
|
fqdn?: string
|
|
211
201
|
matchRule?: MatchRule
|
|
212
202
|
advancedPolicy?: AdvancedAPIConfig
|
|
@@ -215,46 +205,18 @@ type BaseGetAPIRes = {
|
|
|
215
205
|
export type GetAPIRes = BaseGetAPIRes
|
|
216
206
|
& OneOf<{ route: RouteAction; redirect: RedirectAction; directResponse: DirectResponse }>
|
|
217
207
|
|
|
218
|
-
export type TargetService = {
|
|
219
|
-
serviceList?: ServiceDetail[]
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export type ServiceDetail = {
|
|
223
|
-
clusterName?: string
|
|
224
|
-
k8SNamespaceName?: string
|
|
225
|
-
serviceName?: string
|
|
226
|
-
registryId?: string
|
|
227
|
-
address?: string
|
|
228
|
-
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
229
|
-
port?: number
|
|
230
|
-
weight?: string
|
|
231
|
-
nacosNamespaceId?: string
|
|
232
|
-
groupName?: string
|
|
233
|
-
routeType?: SkoalaApiHostedV1alpha1Http.RouteType
|
|
234
|
-
path?: string
|
|
235
|
-
statusCode?: number
|
|
236
|
-
}
|
|
237
|
-
|
|
238
208
|
|
|
239
209
|
type BaseAPIConfig = {
|
|
240
210
|
apiName?: string
|
|
241
211
|
fqdn?: string
|
|
242
212
|
matchRule?: MatchRule
|
|
243
213
|
enabled?: boolean
|
|
214
|
+
apiGroup?: string
|
|
244
215
|
}
|
|
245
216
|
|
|
246
217
|
export type APIConfig = BaseAPIConfig
|
|
247
218
|
& OneOf<{ route: RouteAction; redirect: RedirectAction; directResponse: DirectResponse }>
|
|
248
219
|
|
|
249
|
-
export type Virtualhost = {
|
|
250
|
-
fqdn?: string
|
|
251
|
-
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export type Certificate = {
|
|
255
|
-
namespace?: string
|
|
256
|
-
}
|
|
257
|
-
|
|
258
220
|
|
|
259
221
|
type BaseMatchRule = {
|
|
260
222
|
httpMethod?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
@@ -271,10 +233,11 @@ export type RouteAction = {
|
|
|
271
233
|
export type RouteService = {
|
|
272
234
|
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
273
235
|
enableGrpc?: boolean
|
|
274
|
-
|
|
275
|
-
|
|
236
|
+
showServiceName?: string
|
|
237
|
+
sesameId?: string
|
|
276
238
|
port?: number
|
|
277
239
|
weight?: number
|
|
240
|
+
mirror?: boolean
|
|
278
241
|
}
|
|
279
242
|
|
|
280
243
|
export type RedirectAction = {
|
|
@@ -296,6 +259,7 @@ export type APIListReq = {
|
|
|
296
259
|
gatewayName?: string
|
|
297
260
|
namespaceName?: string
|
|
298
261
|
apiName?: string
|
|
262
|
+
apiGroup?: string
|
|
299
263
|
page?: number
|
|
300
264
|
pageSize?: number
|
|
301
265
|
}
|
|
@@ -18,9 +18,6 @@ export type CreateGatewayRLSReq = {
|
|
|
18
18
|
config?: GatewayRLSConfig
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export type CreateGatewayRLSRes = {
|
|
22
|
-
}
|
|
23
|
-
|
|
24
21
|
export type GetGatewayRLSReq = {
|
|
25
22
|
workspaceId?: string
|
|
26
23
|
clusterName?: string
|
|
@@ -39,9 +36,6 @@ export type DeleteGatewayRLSReq = {
|
|
|
39
36
|
gatewayName?: string
|
|
40
37
|
}
|
|
41
38
|
|
|
42
|
-
export type DeleteGatewayRLSRes = {
|
|
43
|
-
}
|
|
44
|
-
|
|
45
39
|
export type UpdateGatewayRLSReq = {
|
|
46
40
|
workspaceId?: string
|
|
47
41
|
clusterName?: string
|
|
@@ -50,9 +44,6 @@ export type UpdateGatewayRLSReq = {
|
|
|
50
44
|
config?: GatewayRLSConfig
|
|
51
45
|
}
|
|
52
46
|
|
|
53
|
-
export type UpdateGatewayRLSRes = {
|
|
54
|
-
}
|
|
55
|
-
|
|
56
47
|
export type GatewayAuthzConfig = {
|
|
57
48
|
}
|
|
58
49
|
|
|
@@ -63,9 +54,6 @@ export type CreateGatewayAuthzReq = {
|
|
|
63
54
|
gatewayName?: string
|
|
64
55
|
}
|
|
65
56
|
|
|
66
|
-
export type CreateGatewayAuthzRes = {
|
|
67
|
-
}
|
|
68
|
-
|
|
69
57
|
export type GetGatewayAuthzReq = {
|
|
70
58
|
workspaceId?: string
|
|
71
59
|
clusterName?: string
|
|
@@ -83,15 +71,9 @@ export type DeleteGatewayAuthzReq = {
|
|
|
83
71
|
gatewayName?: string
|
|
84
72
|
}
|
|
85
73
|
|
|
86
|
-
export type DeleteGatewayAuthzRes = {
|
|
87
|
-
}
|
|
88
|
-
|
|
89
74
|
export type UpdateGatewayAuthzReq = {
|
|
90
75
|
workspaceId?: string
|
|
91
76
|
clusterName?: string
|
|
92
77
|
namespaceName?: string
|
|
93
78
|
gatewayName?: string
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export type UpdateGatewayAuthzRes = {
|
|
97
79
|
}
|
|
@@ -57,6 +57,19 @@ export enum AlertSeverity {
|
|
|
57
57
|
Info = "Info",
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
export enum GatewayConditionType {
|
|
61
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
62
|
+
Scheduled = "Scheduled",
|
|
63
|
+
Ready = "Ready",
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export enum GatewayConditionStatus {
|
|
67
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
68
|
+
True = "True",
|
|
69
|
+
False = "False",
|
|
70
|
+
Unknown = "Unknown",
|
|
71
|
+
}
|
|
72
|
+
|
|
60
73
|
export enum LogLogLevel {
|
|
61
74
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
62
75
|
Trace = "Trace",
|
|
@@ -64,7 +77,7 @@ export enum LogLogLevel {
|
|
|
64
77
|
Info = "Info",
|
|
65
78
|
Warning = "Warning",
|
|
66
79
|
Error = "Error",
|
|
67
|
-
|
|
80
|
+
Critical = "Critical",
|
|
68
81
|
Off = "Off",
|
|
69
82
|
}
|
|
70
83
|
|
|
@@ -73,6 +86,12 @@ export type Node = {
|
|
|
73
86
|
online?: number
|
|
74
87
|
}
|
|
75
88
|
|
|
89
|
+
export type GatewayCondition = {
|
|
90
|
+
type?: GatewayConditionType
|
|
91
|
+
status?: GatewayConditionStatus
|
|
92
|
+
message?: string
|
|
93
|
+
}
|
|
94
|
+
|
|
76
95
|
export type Gateway = {
|
|
77
96
|
workspaceId?: string
|
|
78
97
|
clusterName?: string
|
|
@@ -80,7 +99,7 @@ export type Gateway = {
|
|
|
80
99
|
gatewayName?: string
|
|
81
100
|
createdAt?: string
|
|
82
101
|
updatedAt?: string
|
|
83
|
-
|
|
102
|
+
condition?: GatewayCondition
|
|
84
103
|
endpoints?: string[]
|
|
85
104
|
contour?: Node
|
|
86
105
|
envoy?: Node
|
|
@@ -120,14 +139,10 @@ export type GetGatewayRes = {
|
|
|
120
139
|
gateways?: Gateway
|
|
121
140
|
}
|
|
122
141
|
|
|
123
|
-
export type
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
export type EnvoyPorts = {
|
|
129
|
-
http?: number
|
|
130
|
-
https?: number
|
|
142
|
+
export type Port = {
|
|
143
|
+
port?: number
|
|
144
|
+
containerPort?: number
|
|
145
|
+
nodePort?: number
|
|
131
146
|
}
|
|
132
147
|
|
|
133
148
|
export type ContourPorts = {
|
|
@@ -146,16 +161,8 @@ export type HostIPs = {
|
|
|
146
161
|
|
|
147
162
|
export type EnvoyService = {
|
|
148
163
|
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
export type EnvoyServicePro = {
|
|
153
|
-
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
154
|
-
ports?: EnvoyPorts
|
|
155
|
-
targetPorts?: EnvoyPortsString
|
|
156
|
-
nodePorts?: EnvoyPortsString
|
|
157
|
-
extraPorts?: string[]
|
|
158
|
-
externalTrafficPolicy?: string
|
|
164
|
+
http?: Port
|
|
165
|
+
https?: Port
|
|
159
166
|
}
|
|
160
167
|
|
|
161
168
|
export type ContourService = {
|
|
@@ -174,31 +181,11 @@ export type EnvoyNormalConfig = {
|
|
|
174
181
|
service?: EnvoyService
|
|
175
182
|
}
|
|
176
183
|
|
|
177
|
-
export type EnvoyNormalConfigPro = {
|
|
178
|
-
kind?: string
|
|
179
|
-
replicas?: number
|
|
180
|
-
hostNetwork?: boolean
|
|
181
|
-
dnsPolicy?: string
|
|
182
|
-
useHostIp?: boolean
|
|
183
|
-
useHostPort?: boolean
|
|
184
|
-
containerPorts?: EnvoyPorts
|
|
185
|
-
hostIps?: HostIPs
|
|
186
|
-
hostPorts?: EnvoyPorts
|
|
187
|
-
service?: EnvoyServicePro
|
|
188
|
-
}
|
|
189
|
-
|
|
190
184
|
export type ContourNormalConfig = {
|
|
191
185
|
rootNamespaces?: string[]
|
|
192
186
|
replicas?: number
|
|
193
187
|
}
|
|
194
188
|
|
|
195
|
-
export type ContourNormalConfigPro = {
|
|
196
|
-
rootNamespaces?: string[]
|
|
197
|
-
replicas?: number
|
|
198
|
-
containerPorts?: ContourPorts
|
|
199
|
-
service?: ContourService
|
|
200
|
-
}
|
|
201
|
-
|
|
202
189
|
export type CreateGatewayReq = {
|
|
203
190
|
workspaceId?: string
|
|
204
191
|
gatewayName?: string
|
|
@@ -211,15 +198,6 @@ export type CreateGatewayRes = {
|
|
|
211
198
|
status?: SkoalaApiGeneralV1alpha1Common.Status
|
|
212
199
|
}
|
|
213
200
|
|
|
214
|
-
export type CreateGatewayProReq = {
|
|
215
|
-
workspaceId?: string
|
|
216
|
-
gatewayName?: string
|
|
217
|
-
clusterName?: string
|
|
218
|
-
namespaceName?: string
|
|
219
|
-
createNamespace?: boolean
|
|
220
|
-
config?: GatewayConfigPro
|
|
221
|
-
}
|
|
222
|
-
|
|
223
201
|
export type UpdateGatewayReq = {
|
|
224
202
|
workspaceId?: string
|
|
225
203
|
gatewayName?: string
|
|
@@ -232,14 +210,6 @@ export type UpdateGatewayRes = {
|
|
|
232
210
|
status?: SkoalaApiGeneralV1alpha1Common.Status
|
|
233
211
|
}
|
|
234
212
|
|
|
235
|
-
export type UpdateGatewayProReq = {
|
|
236
|
-
workspaceId?: string
|
|
237
|
-
gatewayName?: string
|
|
238
|
-
clusterName?: string
|
|
239
|
-
namespaceName?: string
|
|
240
|
-
config?: GatewayConfigPro
|
|
241
|
-
}
|
|
242
|
-
|
|
243
213
|
export type DeleteGatewayReq = {
|
|
244
214
|
workspaceId?: string
|
|
245
215
|
clusterName?: string
|
|
@@ -247,30 +217,16 @@ export type DeleteGatewayReq = {
|
|
|
247
217
|
gatewayName?: string
|
|
248
218
|
}
|
|
249
219
|
|
|
250
|
-
export type DeleteGatewayRes = {
|
|
251
|
-
status?: SkoalaApiGeneralV1alpha1Common.Status
|
|
252
|
-
}
|
|
253
|
-
|
|
254
220
|
export type NormalConfig = {
|
|
255
221
|
contour?: ContourNormalConfig
|
|
256
222
|
envoy?: EnvoyNormalConfig
|
|
257
223
|
}
|
|
258
224
|
|
|
259
|
-
export type NormalConfigPro = {
|
|
260
|
-
contour?: ContourNormalConfigPro
|
|
261
|
-
envoy?: EnvoyNormalConfigPro
|
|
262
|
-
}
|
|
263
|
-
|
|
264
225
|
export type GatewayConfig = {
|
|
265
226
|
normal?: NormalConfig
|
|
266
227
|
advanced?: AdvancedConfig
|
|
267
228
|
}
|
|
268
229
|
|
|
269
|
-
export type GatewayConfigPro = {
|
|
270
|
-
normal?: NormalConfigPro
|
|
271
|
-
advanced?: AdvancedConfigPro
|
|
272
|
-
}
|
|
273
|
-
|
|
274
230
|
|
|
275
231
|
type BaseContourAdvancedConfig = {
|
|
276
232
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
@@ -294,13 +250,6 @@ export type AdvancedConfig = {
|
|
|
294
250
|
envoy?: EnvoyAdvancedConfig
|
|
295
251
|
}
|
|
296
252
|
|
|
297
|
-
export type AdvancedConfigPro = {
|
|
298
|
-
log?: Log
|
|
299
|
-
contour?: ContourAdvancedConfig
|
|
300
|
-
envoy?: EnvoyAdvancedConfig
|
|
301
|
-
globalRateLimit?: boolean
|
|
302
|
-
}
|
|
303
|
-
|
|
304
253
|
export type Log = {
|
|
305
254
|
envoyLogLevel?: LogLogLevel
|
|
306
255
|
kubernetesDebug?: number
|
|
@@ -318,6 +267,13 @@ export type GetImagesRes = {
|
|
|
318
267
|
envoy?: string
|
|
319
268
|
}
|
|
320
269
|
|
|
270
|
+
export type GetImagesReq = {
|
|
271
|
+
workspaceId?: string
|
|
272
|
+
clusterName?: string
|
|
273
|
+
namespaceName?: string
|
|
274
|
+
gatewayName?: string
|
|
275
|
+
}
|
|
276
|
+
|
|
321
277
|
export type GetGatewayStatusReq = {
|
|
322
278
|
workspaceId?: string
|
|
323
279
|
clusterName?: string
|
|
@@ -384,10 +340,6 @@ export type GatewayDiagnosticReq = {
|
|
|
384
340
|
diagnostic?: GatewayDiagnostic
|
|
385
341
|
}
|
|
386
342
|
|
|
387
|
-
export type GatewayDiagnosticRes = {
|
|
388
|
-
tips?: string
|
|
389
|
-
}
|
|
390
|
-
|
|
391
343
|
export type PodSummary = {
|
|
392
344
|
podName?: string
|
|
393
345
|
namespaceName?: string
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
|
|
9
|
+
export enum SignatureAlgorithm {
|
|
10
|
+
MD2WithRSA = "MD2WithRSA",
|
|
11
|
+
MD5WithRSA = "MD5WithRSA",
|
|
12
|
+
SHA1WithRSA = "SHA1WithRSA",
|
|
13
|
+
SHA256WithRSA = "SHA256WithRSA",
|
|
14
|
+
SHA384WithRSA = "SHA384WithRSA",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type CreateSecretReq = {
|
|
18
|
+
workspaceId?: string
|
|
19
|
+
gatewayName?: string
|
|
20
|
+
clusterName?: string
|
|
21
|
+
namespaceName?: string
|
|
22
|
+
secretConfig?: SecretConfig
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type ListSecretReq = {
|
|
26
|
+
workspaceId?: string
|
|
27
|
+
clusterName?: string
|
|
28
|
+
gatewayName?: string
|
|
29
|
+
namespaceName?: string
|
|
30
|
+
secretNamespaceName?: string
|
|
31
|
+
secretName?: string
|
|
32
|
+
page?: number
|
|
33
|
+
pageSize?: number
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type ListSecretRes = {
|
|
37
|
+
items?: SecretInfo[]
|
|
38
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type CertInfo = {
|
|
42
|
+
errInfo?: string
|
|
43
|
+
sha1Fingerprint?: string
|
|
44
|
+
sha256Fingerprint?: string
|
|
45
|
+
signatureAlgorithm?: string
|
|
46
|
+
beginTime?: string
|
|
47
|
+
endTime?: string
|
|
48
|
+
domain?: string
|
|
49
|
+
encryptAlgorithm?: string
|
|
50
|
+
keyLength?: number
|
|
51
|
+
issuer?: string
|
|
52
|
+
subjectAltName?: string[]
|
|
53
|
+
cA?: boolean
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type SecretInfo = {
|
|
57
|
+
secretName?: string
|
|
58
|
+
secretNamespaceName?: string
|
|
59
|
+
tlsCertificate?: CertInfo[]
|
|
60
|
+
caCertificate?: CertInfo[]
|
|
61
|
+
errMsg?: string
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type SecretConfig = {
|
|
65
|
+
name?: string
|
|
66
|
+
namespaceName?: string
|
|
67
|
+
caCrt?: string
|
|
68
|
+
tlsCrt?: string
|
|
69
|
+
tlsKey?: string
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type CreateSecretRes = {
|
|
73
|
+
secretName?: string
|
|
74
|
+
}
|