@daocloud-proto/skoala 0.3.3 → 0.4.1-4
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/skoala.pb.ts +34 -7
- package/api/hosted/v1alpha1/api.pb.ts +260 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +112 -66
- package/api/hosted/v1alpha1/nacos.pb.ts +104 -2
- package/api/hosted/v1alpha1/sentinel.pb.ts +52 -10
- 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 +45 -20
- 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 +113 -0
- package/metric/v1alpha1/metric.pb.ts +98 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +101 -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/openmetrics.pb.ts +130 -0
- package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
- package/span_metric/v1alpha1/span_metric.pb.ts +100 -0
- package/type/v1alpha1/page.pb.ts +11 -0
- package/validate/validate.pb.ts +266 -0
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
export enum OrderBy {
|
|
8
|
+
desc = "desc",
|
|
9
|
+
asc = "asc",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export enum SortBy {
|
|
13
|
+
SORT_BY_UNSPECIFIED = "SORT_BY_UNSPECIFIED",
|
|
14
|
+
field_name = "field_name",
|
|
15
|
+
state = "state",
|
|
16
|
+
workspace = "workspace",
|
|
17
|
+
cluster = "cluster",
|
|
18
|
+
namespace = "namespace",
|
|
19
|
+
created_at = "created_at",
|
|
20
|
+
}
|
|
21
|
+
|
|
7
22
|
export enum Status {
|
|
8
23
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
9
24
|
RUNNING = "RUNNING",
|
|
@@ -18,21 +33,33 @@ export type Cluster = {
|
|
|
18
33
|
}
|
|
19
34
|
|
|
20
35
|
export type Workspace = {
|
|
21
|
-
id?:
|
|
36
|
+
id?: number
|
|
22
37
|
name?: string
|
|
23
|
-
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type Pagination = {
|
|
41
|
+
total?: number
|
|
42
|
+
page?: number
|
|
43
|
+
pageSize?: number
|
|
44
|
+
pages?: number
|
|
24
45
|
}
|
|
25
46
|
|
|
26
47
|
export type ListWorkspaceReq = {
|
|
27
48
|
page?: number
|
|
28
|
-
|
|
49
|
+
pageSize?: number
|
|
29
50
|
}
|
|
30
51
|
|
|
31
52
|
export type ListWorkspaceRes = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
53
|
+
items?: Workspace[]
|
|
54
|
+
pagination?: Pagination
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type GetWorkspaceReq = {
|
|
58
|
+
workspaceId?: number
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type GetWorkspaceRes = {
|
|
62
|
+
workspace?: Workspace
|
|
36
63
|
}
|
|
37
64
|
|
|
38
65
|
export type ListClusterReq = {
|
|
@@ -0,0 +1,260 @@
|
|
|
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 SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
+
|
|
9
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
10
|
+
type OneOf<T> =
|
|
11
|
+
| { [k in keyof T]?: undefined }
|
|
12
|
+
| (
|
|
13
|
+
keyof T extends infer K ?
|
|
14
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
15
|
+
: never)
|
|
16
|
+
: never);
|
|
17
|
+
|
|
18
|
+
export enum Protocol {
|
|
19
|
+
HTTP = "HTTP",
|
|
20
|
+
HTTPS = "HTTPS",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum ValueMatchType {
|
|
24
|
+
CONTAIN = "CONTAIN",
|
|
25
|
+
EXACT = "EXACT",
|
|
26
|
+
NOT_CONTAIN = "NOT_CONTAIN",
|
|
27
|
+
NOT_EXACT = "NOT_EXACT",
|
|
28
|
+
PRESENT = "PRESENT",
|
|
29
|
+
NOT_PRESENT = "NOT_PRESENT",
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export enum HttpMethod {
|
|
33
|
+
GET = "GET",
|
|
34
|
+
POST = "POST",
|
|
35
|
+
DELETE = "DELETE",
|
|
36
|
+
PUT = "PUT",
|
|
37
|
+
PATCH = "PATCH",
|
|
38
|
+
OPTION = "OPTION",
|
|
39
|
+
ALL = "ALL",
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export enum RedirectResponseCode {
|
|
43
|
+
MOVED_PERMANENTLY = "MOVED_PERMANENTLY",
|
|
44
|
+
FOUND = "FOUND",
|
|
45
|
+
SEE_OTHER = "SEE_OTHER",
|
|
46
|
+
TEMPORARY_REDIRECT = "TEMPORARY_REDIRECT",
|
|
47
|
+
PERMANENT_REDIRECT = "PERMANENT_REDIRECT",
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export enum RouteType {
|
|
51
|
+
CLUSTRE_SERVER = "CLUSTRE_SERVER",
|
|
52
|
+
DIRECT = "DIRECT",
|
|
53
|
+
REDIRECT = "REDIRECT",
|
|
54
|
+
EXTERNAL = "EXTERNAL",
|
|
55
|
+
REGISTRY = "REGISTRY",
|
|
56
|
+
UNKNOW = "UNKNOW",
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export enum APIStatus {
|
|
60
|
+
UP = "UP",
|
|
61
|
+
DOWN = "DOWN",
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type CreateAPIReq = {
|
|
65
|
+
workspaceId?: string
|
|
66
|
+
gatewayName?: string
|
|
67
|
+
clusterName?: string
|
|
68
|
+
apiConfig?: APIConfig
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type UpdateAPIReq = {
|
|
72
|
+
apiName?: string
|
|
73
|
+
workspaceId?: string
|
|
74
|
+
gatewayName?: string
|
|
75
|
+
clusterName?: string
|
|
76
|
+
apiConfig?: APIConfig
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type CreateAPIRes = {
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type UpdateAPIRes = {
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type DeleteAPIRes = {
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type GetAPIReq = {
|
|
89
|
+
workspaceId?: string
|
|
90
|
+
clusterName?: string
|
|
91
|
+
gatewayName?: string
|
|
92
|
+
apiName?: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type DeleteAPIReq = {
|
|
96
|
+
workspaceId?: string
|
|
97
|
+
clusterName?: string
|
|
98
|
+
gatewayName?: string
|
|
99
|
+
apiName?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type GetAPIRes = {
|
|
103
|
+
apiName?: string
|
|
104
|
+
apiStatus?: APIStatus
|
|
105
|
+
fqdn?: string
|
|
106
|
+
matchRule?: MatchRule
|
|
107
|
+
targetService?: TargetService
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type TargetService = {
|
|
111
|
+
serviceList?: ServiceDetail[]
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type ServiceDetail = {
|
|
115
|
+
clusterName?: string
|
|
116
|
+
k8SNamespaceName?: string
|
|
117
|
+
serviceName?: string
|
|
118
|
+
registrationId?: string
|
|
119
|
+
address?: string
|
|
120
|
+
protocol?: Protocol
|
|
121
|
+
port?: number
|
|
122
|
+
weight?: string
|
|
123
|
+
nacosNamespaceId?: string
|
|
124
|
+
groupName?: string
|
|
125
|
+
routeType?: RouteType
|
|
126
|
+
path?: string
|
|
127
|
+
statusCode?: number
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
type BaseAPIConfig = {
|
|
132
|
+
apiName?: string
|
|
133
|
+
virtualhost?: Virtualhost
|
|
134
|
+
matchRule?: MatchRule
|
|
135
|
+
enabled?: boolean
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type APIConfig = BaseAPIConfig
|
|
139
|
+
& OneOf<{ route: RouteAction; redirect: RedirectAction; directResponse: DirectResponse }>
|
|
140
|
+
|
|
141
|
+
export type Virtualhost = {
|
|
142
|
+
fqdn?: string
|
|
143
|
+
protocol?: Protocol
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type Certificate = {
|
|
147
|
+
namespace?: string
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
type BaseMatchRule = {
|
|
152
|
+
httpMethod?: HttpMethod[]
|
|
153
|
+
headers?: HeaderRule[]
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type MatchRule = BaseMatchRule
|
|
157
|
+
& OneOf<{ path: string; prefix: string }>
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
type BaseHeaderRule = {
|
|
161
|
+
name?: string
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export type HeaderRule = BaseHeaderRule
|
|
165
|
+
& OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean }>
|
|
166
|
+
|
|
167
|
+
export type RouteAction = {
|
|
168
|
+
routeService?: RouteService[]
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
type BaseRouteService = {
|
|
173
|
+
protocol?: Protocol
|
|
174
|
+
port?: number
|
|
175
|
+
weight?: number
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export type RouteService = BaseRouteService
|
|
179
|
+
& OneOf<{ kubernetesService: KubernetesService; registryService: RegistryService; externalService: ExternalService }>
|
|
180
|
+
|
|
181
|
+
export type KubernetesService = {
|
|
182
|
+
clusterId?: string
|
|
183
|
+
clusterName?: string
|
|
184
|
+
namespaceName?: string
|
|
185
|
+
serviceName?: string
|
|
186
|
+
address?: string
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export type ExternalService = {
|
|
190
|
+
serviceName?: string
|
|
191
|
+
address?: string
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
type BaseRegistryService = {
|
|
196
|
+
registrationId?: string
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type RegistryService = BaseRegistryService
|
|
200
|
+
& OneOf<{ eurekaService: EurekaService; nacosService: NacosService; zookeeperService: ZookeeperService; kubernetesService: KubernetesService }>
|
|
201
|
+
|
|
202
|
+
export type EurekaService = {
|
|
203
|
+
address?: string
|
|
204
|
+
serviceName?: string
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type NacosService = {
|
|
208
|
+
address?: string
|
|
209
|
+
serviceName?: string
|
|
210
|
+
namespaceId?: string
|
|
211
|
+
groupName?: string
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export type ZookeeperService = {
|
|
215
|
+
address?: string
|
|
216
|
+
serviceName?: string
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export type MeshService = {
|
|
220
|
+
instanceId?: string
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type ApplicationService = {
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export type RedirectAction = {
|
|
227
|
+
hostname?: string
|
|
228
|
+
path?: string
|
|
229
|
+
port?: number
|
|
230
|
+
statusCode?: number
|
|
231
|
+
protocol?: Protocol
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export type DirectResponse = {
|
|
235
|
+
statusCode?: number
|
|
236
|
+
body?: string
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type APIListReq = {
|
|
240
|
+
workspaceId?: string
|
|
241
|
+
clusterName?: string
|
|
242
|
+
gatewayName?: string
|
|
243
|
+
page?: number
|
|
244
|
+
pageSize?: number
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export type APIListRes = {
|
|
248
|
+
api?: APIInfo[]
|
|
249
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export type APIInfo = {
|
|
253
|
+
apiName?: string
|
|
254
|
+
fqdn?: string
|
|
255
|
+
method?: HttpMethod[]
|
|
256
|
+
requestPath?: string
|
|
257
|
+
routeType?: RouteType
|
|
258
|
+
apiStatus?: APIStatus
|
|
259
|
+
updatedAt?: string
|
|
260
|
+
}
|
|
@@ -40,15 +40,15 @@ export type Gateway = {
|
|
|
40
40
|
updatedAt?: string
|
|
41
41
|
status?: SkoalaApiGeneralV1alpha1Skoala.Status
|
|
42
42
|
endpoints?: string[]
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
contour?: Node
|
|
44
|
+
envoy?: Node
|
|
45
45
|
config?: GatewayConfig
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export type ListAllGatewayReq = {
|
|
49
49
|
workspaceId?: number
|
|
50
50
|
page?: number
|
|
51
|
-
|
|
51
|
+
pageSize?: number
|
|
52
52
|
filter?: string
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -56,22 +56,13 @@ export type ListClusterGatewayReq = {
|
|
|
56
56
|
workspaceId?: number
|
|
57
57
|
clusterName?: string
|
|
58
58
|
page?: number
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export type ListNamespaceGatewayReq = {
|
|
63
|
-
workspaceId?: number
|
|
64
|
-
clusterName?: string
|
|
65
|
-
namespaceName?: string
|
|
66
|
-
page?: number
|
|
67
|
-
size?: number
|
|
59
|
+
pageSize?: number
|
|
60
|
+
filter?: string
|
|
68
61
|
}
|
|
69
62
|
|
|
70
63
|
export type ListGatewayRes = {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
size?: number
|
|
74
|
-
total?: number
|
|
64
|
+
items?: Gateway[]
|
|
65
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
75
66
|
}
|
|
76
67
|
|
|
77
68
|
export type GetGatewayReq = {
|
|
@@ -85,6 +76,70 @@ export type GetGatewayRes = {
|
|
|
85
76
|
gateways?: Gateway
|
|
86
77
|
}
|
|
87
78
|
|
|
79
|
+
export type EnvoyPortsString = {
|
|
80
|
+
http?: string
|
|
81
|
+
https?: string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type EnvoyPorts = {
|
|
85
|
+
http?: number
|
|
86
|
+
https?: number
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type ContourPorts = {
|
|
90
|
+
xds?: number
|
|
91
|
+
metrics?: number
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type ContourPortsString = {
|
|
95
|
+
xds?: string
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type HostIPs = {
|
|
99
|
+
http?: string
|
|
100
|
+
https?: string
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type EnvoyService = {
|
|
104
|
+
type?: string
|
|
105
|
+
ports?: EnvoyPorts
|
|
106
|
+
targetPorts?: EnvoyPortsString
|
|
107
|
+
nodePorts?: EnvoyPortsString
|
|
108
|
+
extraPorts?: string[]
|
|
109
|
+
externalTrafficPolicy?: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type ContourService = {
|
|
113
|
+
type?: string
|
|
114
|
+
clusterIp?: string
|
|
115
|
+
ports?: ContourPorts
|
|
116
|
+
nodePorts?: ContourPortsString
|
|
117
|
+
extraPorts?: string[]
|
|
118
|
+
externalTrafficPolicy?: string
|
|
119
|
+
loadBalancerSourceRanges?: string[]
|
|
120
|
+
loadBalancerIp?: string
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type EnvoyNormalConfig = {
|
|
124
|
+
kind?: string
|
|
125
|
+
replicas?: number
|
|
126
|
+
hostNetwork?: boolean
|
|
127
|
+
dnsPolicy?: string
|
|
128
|
+
useHostIp?: boolean
|
|
129
|
+
useHostPort?: boolean
|
|
130
|
+
containerPorts?: EnvoyPorts
|
|
131
|
+
hostIps?: HostIPs
|
|
132
|
+
hostPorts?: EnvoyPorts
|
|
133
|
+
service?: EnvoyService
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type ContourNormalConfig = {
|
|
137
|
+
rootNamespaces?: string
|
|
138
|
+
replicas?: number
|
|
139
|
+
containerPorts?: ContourPorts
|
|
140
|
+
service?: ContourService
|
|
141
|
+
}
|
|
142
|
+
|
|
88
143
|
export type CreateGatewayReq = {
|
|
89
144
|
workspaceId?: number
|
|
90
145
|
name?: string
|
|
@@ -94,10 +149,6 @@ export type CreateGatewayReq = {
|
|
|
94
149
|
config?: GatewayConfig
|
|
95
150
|
}
|
|
96
151
|
|
|
97
|
-
export type CreateGatewayRes = {
|
|
98
|
-
gateway?: Gateway
|
|
99
|
-
}
|
|
100
|
-
|
|
101
152
|
export type UpdateGatewayReq = {
|
|
102
153
|
workspaceId?: number
|
|
103
154
|
gatewayName?: string
|
|
@@ -106,10 +157,6 @@ export type UpdateGatewayReq = {
|
|
|
106
157
|
config?: GatewayConfig
|
|
107
158
|
}
|
|
108
159
|
|
|
109
|
-
export type UpdateGatewayRes = {
|
|
110
|
-
gateway?: Gateway
|
|
111
|
-
}
|
|
112
|
-
|
|
113
160
|
export type DeleteGatewayReq = {
|
|
114
161
|
workspaceId?: number
|
|
115
162
|
clusterName?: string
|
|
@@ -121,71 +168,70 @@ export type DeleteGatewayRes = {
|
|
|
121
168
|
gateway?: Gateway
|
|
122
169
|
}
|
|
123
170
|
|
|
171
|
+
export type NormalConfig = {
|
|
172
|
+
contour?: ContourNormalConfig
|
|
173
|
+
envoy?: EnvoyNormalConfig
|
|
174
|
+
}
|
|
175
|
+
|
|
124
176
|
export type GatewayConfig = {
|
|
125
177
|
normal?: NormalConfig
|
|
126
178
|
advanced?: AdvancedConfig
|
|
127
179
|
}
|
|
128
180
|
|
|
129
181
|
|
|
130
|
-
type
|
|
131
|
-
|
|
132
|
-
workerCount?: number
|
|
182
|
+
type BaseContourAdvancedConfig = {
|
|
183
|
+
resources?: Resource
|
|
133
184
|
}
|
|
134
185
|
|
|
135
|
-
export type
|
|
136
|
-
& OneOf<{
|
|
186
|
+
export type ContourAdvancedConfig = BaseContourAdvancedConfig
|
|
187
|
+
& OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
|
|
137
188
|
|
|
138
|
-
export type Port = {
|
|
139
|
-
name?: string
|
|
140
|
-
protocol?: string
|
|
141
|
-
port?: number
|
|
142
|
-
targetPort?: number
|
|
143
|
-
nodePort?: number
|
|
144
|
-
}
|
|
145
189
|
|
|
146
|
-
|
|
147
|
-
|
|
190
|
+
type BaseEnvoyAdvancedConfig = {
|
|
191
|
+
resources?: Resource
|
|
148
192
|
}
|
|
149
193
|
|
|
150
|
-
export type
|
|
151
|
-
|
|
152
|
-
}
|
|
194
|
+
export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
|
|
195
|
+
& OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
|
|
153
196
|
|
|
154
|
-
export type
|
|
197
|
+
export type AdvancedConfig = {
|
|
198
|
+
log?: Log
|
|
199
|
+
contour?: ContourAdvancedConfig
|
|
200
|
+
envoy?: EnvoyAdvancedConfig
|
|
201
|
+
globalRateLimit?: boolean
|
|
155
202
|
}
|
|
156
203
|
|
|
157
|
-
export type
|
|
158
|
-
|
|
204
|
+
export type Log = {
|
|
205
|
+
envoyLogLevel?: LogLogLevel
|
|
206
|
+
k8SDebug?: number
|
|
207
|
+
contourDebug?: boolean
|
|
208
|
+
logToInsight?: boolean
|
|
159
209
|
}
|
|
160
210
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
211
|
+
export type Resource = {
|
|
212
|
+
cpuRequests?: string
|
|
213
|
+
cpuLimits?: string
|
|
214
|
+
memoryRequests?: string
|
|
215
|
+
memoryLimits?: string
|
|
166
216
|
}
|
|
167
217
|
|
|
168
|
-
export type
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
export type Log = {
|
|
172
|
-
workerLogLevel?: LogLogLevel
|
|
173
|
-
podLogLevel?: number
|
|
174
|
-
enableDebugLog?: boolean
|
|
175
|
-
enableLogToInsight?: boolean
|
|
218
|
+
export type RollingUpdate = {
|
|
219
|
+
maxSurge?: string
|
|
220
|
+
maxUnavailable?: string
|
|
176
221
|
}
|
|
177
222
|
|
|
178
|
-
export type
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
memoryRequests?: number
|
|
182
|
-
memoryLimits?: number
|
|
223
|
+
export type GetImagesRes = {
|
|
224
|
+
contour?: string
|
|
225
|
+
envoy?: string
|
|
183
226
|
}
|
|
184
227
|
|
|
185
|
-
export type
|
|
186
|
-
|
|
187
|
-
|
|
228
|
+
export type GetGatewayStatusReq = {
|
|
229
|
+
workspaceId?: number
|
|
230
|
+
clusterName?: string
|
|
231
|
+
namespaceName?: string
|
|
232
|
+
gatewayName?: string
|
|
188
233
|
}
|
|
189
234
|
|
|
190
|
-
export type
|
|
235
|
+
export type GetGatewayStatusRes = {
|
|
236
|
+
ready?: boolean
|
|
191
237
|
}
|
|
@@ -3,26 +3,102 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
+
|
|
9
|
+
export enum NacosStatus {
|
|
10
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
11
|
+
Running = "Running",
|
|
12
|
+
Creating = "Creating",
|
|
13
|
+
Failed = "Failed",
|
|
14
|
+
Scaling = "Scaling",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum NacosConfigType {
|
|
18
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
19
|
+
standalone = "standalone",
|
|
20
|
+
cluster = "cluster",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum NacosConfigServiceType {
|
|
24
|
+
SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
|
|
25
|
+
NodePort = "NodePort",
|
|
26
|
+
ClusterIP = "ClusterIP",
|
|
27
|
+
LoadBalancer = "LoadBalancer",
|
|
28
|
+
}
|
|
29
|
+
|
|
6
30
|
export type ListNacosReq = {
|
|
7
31
|
workspaceId?: string
|
|
32
|
+
clusterName?: string
|
|
33
|
+
namespaceName?: string
|
|
8
34
|
page?: number
|
|
35
|
+
pageSize?: number
|
|
9
36
|
}
|
|
10
37
|
|
|
11
38
|
export type ListNacosRes = {
|
|
39
|
+
items?: Nacos[]
|
|
40
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type Nacos = {
|
|
44
|
+
workspaceId?: string
|
|
45
|
+
clusterName?: string
|
|
46
|
+
nacosName?: string
|
|
47
|
+
namespaceName?: string
|
|
48
|
+
type?: NacosConfigType
|
|
49
|
+
serviceType?: NacosConfigServiceType
|
|
50
|
+
nodePort?: number
|
|
51
|
+
status?: NacosStatus
|
|
52
|
+
replicas?: number
|
|
53
|
+
image?: string
|
|
54
|
+
version?: string
|
|
55
|
+
database?: NacosDatabase
|
|
56
|
+
resource?: NacosResource
|
|
57
|
+
condition?: NacosCondition[]
|
|
58
|
+
createAt?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type NacosDatabase = {
|
|
62
|
+
type?: string
|
|
63
|
+
host?: string
|
|
64
|
+
port?: string
|
|
65
|
+
db?: string
|
|
66
|
+
user?: string
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type NacosResource = {
|
|
70
|
+
limits?: {[key: string]: string}
|
|
71
|
+
request?: {[key: string]: string}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type NacosCondition = {
|
|
75
|
+
type?: string
|
|
76
|
+
status?: string
|
|
77
|
+
reason?: string
|
|
78
|
+
message?: string
|
|
79
|
+
instance?: string
|
|
80
|
+
hostIP?: string
|
|
81
|
+
podName?: string
|
|
82
|
+
nodeName?: string
|
|
12
83
|
}
|
|
13
84
|
|
|
14
85
|
export type GetNacosReq = {
|
|
15
86
|
workspaceId?: string
|
|
87
|
+
clusterName?: string
|
|
16
88
|
nacosName?: string
|
|
89
|
+
namespaceName?: string
|
|
17
90
|
}
|
|
18
91
|
|
|
19
92
|
export type GetNacosRes = {
|
|
93
|
+
nacos?: Nacos
|
|
20
94
|
}
|
|
21
95
|
|
|
22
96
|
export type UpdateNacosReq = {
|
|
23
97
|
workspaceId?: string
|
|
98
|
+
clusterName?: string
|
|
24
99
|
nacosName?: string
|
|
25
|
-
|
|
100
|
+
namespaceName?: string
|
|
101
|
+
config?: NacosConfig
|
|
26
102
|
}
|
|
27
103
|
|
|
28
104
|
export type UpdateNacosRes = {
|
|
@@ -30,7 +106,11 @@ export type UpdateNacosRes = {
|
|
|
30
106
|
|
|
31
107
|
export type CreateNacosReq = {
|
|
32
108
|
workspaceId?: string
|
|
33
|
-
|
|
109
|
+
clusterName?: string
|
|
110
|
+
nacosName?: string
|
|
111
|
+
namespaceName?: string
|
|
112
|
+
createNamespace?: boolean
|
|
113
|
+
config?: NacosConfig
|
|
34
114
|
}
|
|
35
115
|
|
|
36
116
|
export type CreateNacosRes = {
|
|
@@ -38,8 +118,30 @@ export type CreateNacosRes = {
|
|
|
38
118
|
|
|
39
119
|
export type DeleteNacosReq = {
|
|
40
120
|
workspaceId?: string
|
|
121
|
+
clusterName?: string
|
|
41
122
|
nacosName?: string
|
|
123
|
+
namespaceName?: string
|
|
42
124
|
}
|
|
43
125
|
|
|
44
126
|
export type DeleteNacosRes = {
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type NacosConfig = {
|
|
130
|
+
type?: NacosConfigType
|
|
131
|
+
version?: string
|
|
132
|
+
replicas?: number
|
|
133
|
+
cpu?: string
|
|
134
|
+
memory?: string
|
|
135
|
+
serviceType?: NacosConfigServiceType
|
|
136
|
+
nodePort?: string
|
|
137
|
+
databaseEnabled?: boolean
|
|
138
|
+
databaseParam?: DatabaseParam
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type DatabaseParam = {
|
|
142
|
+
host?: string
|
|
143
|
+
port?: string
|
|
144
|
+
username?: string
|
|
145
|
+
password?: string
|
|
146
|
+
db?: string
|
|
45
147
|
}
|