@daocloud-proto/skoala 0.4.0 → 0.4.1-101
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 +15 -50
- package/api/hosted/v1alpha1/api.pb.ts +16 -25
- package/api/hosted/v1alpha1/gateway.pb.ts +162 -36
- package/api/hosted/v1alpha1/http.pb.ts +20 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +17 -17
- package/api/hosted/v1alpha1/sentinel.pb.ts +4 -10
- package/api/hosted/v1alpha1/virtualhost.pb.ts +96 -0
- package/api/integrated/v1alpha1/instance.pb.ts +2 -2
- package/api/integrated/v1alpha1/registry.pb.ts +2 -2
- package/api/integrated/v1alpha1/service.pb.ts +2 -2
- package/api/skoala/v1alpha1/skoala.pb.ts +33 -11
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
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 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
|
+
|
|
22
|
+
export enum Status {
|
|
23
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
24
|
+
Starting = "Starting",
|
|
25
|
+
Destroying = "Destroying",
|
|
26
|
+
Upgrading = "Upgrading",
|
|
27
|
+
Running = "Running",
|
|
28
|
+
Exception = "Exception",
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type Cluster = {
|
|
32
|
+
id?: string
|
|
33
|
+
name?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type Workspace = {
|
|
37
|
+
id?: number
|
|
38
|
+
name?: string
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type Pagination = {
|
|
42
|
+
total?: number
|
|
43
|
+
page?: number
|
|
44
|
+
pageSize?: number
|
|
45
|
+
pages?: number
|
|
46
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
export type ResourceList = {
|
|
7
|
+
cpu?: string
|
|
8
|
+
memory?: string
|
|
9
|
+
storage?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ResourceRequirements = {
|
|
13
|
+
limits?: ResourceList
|
|
14
|
+
requests?: ResourceList
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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 ServiceType {
|
|
8
|
+
SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
|
|
9
|
+
ClusterIP = "ClusterIP",
|
|
10
|
+
NodePort = "NodePort",
|
|
11
|
+
LoadBalancer = "LoadBalancer",
|
|
12
|
+
ExternalName = "ExternalName",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type ServicePort = {
|
|
16
|
+
name?: string
|
|
17
|
+
protocol?: string
|
|
18
|
+
appProtocol?: string
|
|
19
|
+
port?: number
|
|
20
|
+
targetPort?: string
|
|
21
|
+
nodePort?: number
|
|
22
|
+
}
|
|
@@ -4,44 +4,12 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
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
|
-
|
|
22
|
-
export enum Status {
|
|
23
|
-
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
24
|
-
RUNNING = "RUNNING",
|
|
25
|
-
STARTING = "STARTING",
|
|
26
|
-
DESTROYING = "DESTROYING",
|
|
27
|
-
EXCEPTION = "EXCEPTION",
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type Cluster = {
|
|
31
|
-
id?: string
|
|
32
|
-
name?: string
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type Workspace = {
|
|
36
|
-
id?: number
|
|
37
|
-
name?: string
|
|
38
|
-
}
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "./common.pb"
|
|
39
8
|
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
pages?: number
|
|
9
|
+
export enum ListNamespaceReqGatewayStatus {
|
|
10
|
+
NoFilter = "NoFilter",
|
|
11
|
+
Available = "Available",
|
|
12
|
+
Unavailable = "Unavailable",
|
|
45
13
|
}
|
|
46
14
|
|
|
47
15
|
export type ListWorkspaceReq = {
|
|
@@ -50,41 +18,38 @@ export type ListWorkspaceReq = {
|
|
|
50
18
|
}
|
|
51
19
|
|
|
52
20
|
export type ListWorkspaceRes = {
|
|
53
|
-
items?: Workspace[]
|
|
54
|
-
pagination?: Pagination
|
|
21
|
+
items?: SkoalaApiGeneralV1alpha1Common.Workspace[]
|
|
22
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
55
23
|
}
|
|
56
24
|
|
|
57
25
|
export type GetWorkspaceReq = {
|
|
58
|
-
workspaceId?:
|
|
26
|
+
workspaceId?: string
|
|
59
27
|
}
|
|
60
28
|
|
|
61
29
|
export type GetWorkspaceRes = {
|
|
62
|
-
workspace?: Workspace
|
|
30
|
+
workspace?: SkoalaApiGeneralV1alpha1Common.Workspace
|
|
63
31
|
}
|
|
64
32
|
|
|
65
33
|
export type ListClusterReq = {
|
|
66
34
|
workspaceId?: string
|
|
67
35
|
page?: number
|
|
68
|
-
|
|
36
|
+
pageSize?: number
|
|
69
37
|
}
|
|
70
38
|
|
|
71
39
|
export type ListClusterRes = {
|
|
72
|
-
clusters?: Cluster[]
|
|
73
|
-
|
|
74
|
-
size?: number
|
|
75
|
-
total?: number
|
|
40
|
+
clusters?: SkoalaApiGeneralV1alpha1Common.Cluster[]
|
|
41
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
76
42
|
}
|
|
77
43
|
|
|
78
44
|
export type ListNamespaceReq = {
|
|
79
45
|
workspaceId?: string
|
|
80
46
|
clusterName?: string
|
|
47
|
+
gatewayStatus?: ListNamespaceReqGatewayStatus
|
|
81
48
|
page?: number
|
|
82
|
-
|
|
49
|
+
pageSize?: number
|
|
83
50
|
}
|
|
84
51
|
|
|
85
52
|
export type ListNamespaceRes = {
|
|
86
53
|
namespaceNames?: string[]
|
|
87
|
-
|
|
88
|
-
size?: number
|
|
89
|
-
total?: number
|
|
54
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
90
55
|
}
|
|
@@ -4,7 +4,8 @@
|
|
|
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 SkoalaApiHostedV1alpha1Http from "./http.pb"
|
|
8
9
|
|
|
9
10
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
10
11
|
type OneOf<T> =
|
|
@@ -15,11 +16,6 @@ type OneOf<T> =
|
|
|
15
16
|
: never)
|
|
16
17
|
: never);
|
|
17
18
|
|
|
18
|
-
export enum Protocol {
|
|
19
|
-
HTTP = "HTTP",
|
|
20
|
-
HTTPS = "HTTPS",
|
|
21
|
-
}
|
|
22
|
-
|
|
23
19
|
export enum ValueMatchType {
|
|
24
20
|
CONTAIN = "CONTAIN",
|
|
25
21
|
EXACT = "EXACT",
|
|
@@ -29,16 +25,6 @@ export enum ValueMatchType {
|
|
|
29
25
|
NOT_PRESENT = "NOT_PRESENT",
|
|
30
26
|
}
|
|
31
27
|
|
|
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
28
|
export enum RedirectResponseCode {
|
|
43
29
|
MOVED_PERMANENTLY = "MOVED_PERMANENTLY",
|
|
44
30
|
FOUND = "FOUND",
|
|
@@ -65,6 +51,7 @@ export type CreateAPIReq = {
|
|
|
65
51
|
workspaceId?: string
|
|
66
52
|
gatewayName?: string
|
|
67
53
|
clusterName?: string
|
|
54
|
+
namespaceName?: string
|
|
68
55
|
apiConfig?: APIConfig
|
|
69
56
|
}
|
|
70
57
|
|
|
@@ -73,6 +60,7 @@ export type UpdateAPIReq = {
|
|
|
73
60
|
workspaceId?: string
|
|
74
61
|
gatewayName?: string
|
|
75
62
|
clusterName?: string
|
|
63
|
+
namespaceName?: string
|
|
76
64
|
apiConfig?: APIConfig
|
|
77
65
|
}
|
|
78
66
|
|
|
@@ -90,6 +78,7 @@ export type GetAPIReq = {
|
|
|
90
78
|
clusterName?: string
|
|
91
79
|
gatewayName?: string
|
|
92
80
|
apiName?: string
|
|
81
|
+
namespaceName?: string
|
|
93
82
|
}
|
|
94
83
|
|
|
95
84
|
export type DeleteAPIReq = {
|
|
@@ -97,6 +86,7 @@ export type DeleteAPIReq = {
|
|
|
97
86
|
clusterName?: string
|
|
98
87
|
gatewayName?: string
|
|
99
88
|
apiName?: string
|
|
89
|
+
namespaceName?: string
|
|
100
90
|
}
|
|
101
91
|
|
|
102
92
|
export type GetAPIRes = {
|
|
@@ -115,9 +105,9 @@ export type ServiceDetail = {
|
|
|
115
105
|
clusterName?: string
|
|
116
106
|
k8SNamespaceName?: string
|
|
117
107
|
serviceName?: string
|
|
118
|
-
|
|
108
|
+
registryId?: string
|
|
119
109
|
address?: string
|
|
120
|
-
protocol?: Protocol
|
|
110
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
121
111
|
port?: number
|
|
122
112
|
weight?: string
|
|
123
113
|
nacosNamespaceId?: string
|
|
@@ -140,7 +130,7 @@ export type APIConfig = BaseAPIConfig
|
|
|
140
130
|
|
|
141
131
|
export type Virtualhost = {
|
|
142
132
|
fqdn?: string
|
|
143
|
-
protocol?: Protocol
|
|
133
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
144
134
|
}
|
|
145
135
|
|
|
146
136
|
export type Certificate = {
|
|
@@ -149,7 +139,7 @@ export type Certificate = {
|
|
|
149
139
|
|
|
150
140
|
|
|
151
141
|
type BaseMatchRule = {
|
|
152
|
-
httpMethod?: HttpMethod[]
|
|
142
|
+
httpMethod?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
153
143
|
headers?: HeaderRule[]
|
|
154
144
|
}
|
|
155
145
|
|
|
@@ -170,7 +160,7 @@ export type RouteAction = {
|
|
|
170
160
|
|
|
171
161
|
|
|
172
162
|
type BaseRouteService = {
|
|
173
|
-
protocol?: Protocol
|
|
163
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
174
164
|
port?: number
|
|
175
165
|
weight?: number
|
|
176
166
|
}
|
|
@@ -193,7 +183,7 @@ export type ExternalService = {
|
|
|
193
183
|
|
|
194
184
|
|
|
195
185
|
type BaseRegistryService = {
|
|
196
|
-
|
|
186
|
+
registryId?: string
|
|
197
187
|
}
|
|
198
188
|
|
|
199
189
|
export type RegistryService = BaseRegistryService
|
|
@@ -228,7 +218,7 @@ export type RedirectAction = {
|
|
|
228
218
|
path?: string
|
|
229
219
|
port?: number
|
|
230
220
|
statusCode?: number
|
|
231
|
-
protocol?: Protocol
|
|
221
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
232
222
|
}
|
|
233
223
|
|
|
234
224
|
export type DirectResponse = {
|
|
@@ -240,19 +230,20 @@ export type APIListReq = {
|
|
|
240
230
|
workspaceId?: string
|
|
241
231
|
clusterName?: string
|
|
242
232
|
gatewayName?: string
|
|
233
|
+
namespaceName?: string
|
|
243
234
|
page?: number
|
|
244
235
|
pageSize?: number
|
|
245
236
|
}
|
|
246
237
|
|
|
247
238
|
export type APIListRes = {
|
|
248
239
|
api?: APIInfo[]
|
|
249
|
-
pagination?:
|
|
240
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
250
241
|
}
|
|
251
242
|
|
|
252
243
|
export type APIInfo = {
|
|
253
244
|
apiName?: string
|
|
254
245
|
fqdn?: string
|
|
255
|
-
method?: HttpMethod[]
|
|
246
|
+
method?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
256
247
|
requestPath?: string
|
|
257
248
|
routeType?: RouteType
|
|
258
249
|
apiStatus?: APIStatus
|
|
@@ -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,41 +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
59
|
contour?: Node
|
|
44
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
76
|
pageSize?: number
|
|
77
|
+
namespaceNames?: string[]
|
|
60
78
|
filter?: string
|
|
61
79
|
}
|
|
62
80
|
|
|
63
81
|
export type ListGatewayRes = {
|
|
64
82
|
items?: Gateway[]
|
|
65
|
-
pagination?:
|
|
83
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
66
84
|
}
|
|
67
85
|
|
|
68
86
|
export type GetGatewayReq = {
|
|
69
|
-
workspaceId?:
|
|
87
|
+
workspaceId?: string
|
|
70
88
|
clusterName?: string
|
|
71
89
|
namespaceName?: string
|
|
72
90
|
gatewayName?: string
|
|
@@ -101,7 +119,12 @@ export type HostIPs = {
|
|
|
101
119
|
}
|
|
102
120
|
|
|
103
121
|
export type EnvoyService = {
|
|
104
|
-
|
|
122
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
123
|
+
enableHttps?: boolean
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type EnvoyServicePro = {
|
|
127
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
105
128
|
ports?: EnvoyPorts
|
|
106
129
|
targetPorts?: EnvoyPortsString
|
|
107
130
|
nodePorts?: EnvoyPortsString
|
|
@@ -110,7 +133,7 @@ export type EnvoyService = {
|
|
|
110
133
|
}
|
|
111
134
|
|
|
112
135
|
export type ContourService = {
|
|
113
|
-
|
|
136
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
114
137
|
clusterIp?: string
|
|
115
138
|
ports?: ContourPorts
|
|
116
139
|
nodePorts?: ContourPortsString
|
|
@@ -121,6 +144,11 @@ export type ContourService = {
|
|
|
121
144
|
}
|
|
122
145
|
|
|
123
146
|
export type EnvoyNormalConfig = {
|
|
147
|
+
replicas?: number
|
|
148
|
+
service?: EnvoyService
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type EnvoyNormalConfigPro = {
|
|
124
152
|
kind?: string
|
|
125
153
|
replicas?: number
|
|
126
154
|
hostNetwork?: boolean
|
|
@@ -130,42 +158,71 @@ export type EnvoyNormalConfig = {
|
|
|
130
158
|
containerPorts?: EnvoyPorts
|
|
131
159
|
hostIps?: HostIPs
|
|
132
160
|
hostPorts?: EnvoyPorts
|
|
133
|
-
service?:
|
|
161
|
+
service?: EnvoyServicePro
|
|
134
162
|
}
|
|
135
163
|
|
|
136
164
|
export type ContourNormalConfig = {
|
|
137
|
-
rootNamespaces?: string
|
|
165
|
+
rootNamespaces?: string[]
|
|
166
|
+
replicas?: number
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type ContourNormalConfigPro = {
|
|
170
|
+
rootNamespaces?: string[]
|
|
138
171
|
replicas?: number
|
|
139
172
|
containerPorts?: ContourPorts
|
|
140
173
|
service?: ContourService
|
|
141
174
|
}
|
|
142
175
|
|
|
143
176
|
export type CreateGatewayReq = {
|
|
144
|
-
workspaceId?:
|
|
145
|
-
|
|
177
|
+
workspaceId?: string
|
|
178
|
+
gatewayName?: string
|
|
146
179
|
clusterName?: string
|
|
147
180
|
namespaceName?: string
|
|
148
|
-
createNamespace?: boolean
|
|
149
181
|
config?: GatewayConfig
|
|
150
182
|
}
|
|
151
183
|
|
|
184
|
+
export type CreateGatewayRes = {
|
|
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
|
|
195
|
+
}
|
|
196
|
+
|
|
152
197
|
export type UpdateGatewayReq = {
|
|
153
|
-
workspaceId?:
|
|
198
|
+
workspaceId?: string
|
|
154
199
|
gatewayName?: string
|
|
155
200
|
clusterName?: string
|
|
156
201
|
namespaceName?: string
|
|
157
202
|
config?: GatewayConfig
|
|
158
203
|
}
|
|
159
204
|
|
|
205
|
+
export type UpdateGatewayRes = {
|
|
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
|
|
215
|
+
}
|
|
216
|
+
|
|
160
217
|
export type DeleteGatewayReq = {
|
|
161
|
-
workspaceId?:
|
|
218
|
+
workspaceId?: string
|
|
162
219
|
clusterName?: string
|
|
163
220
|
namespaceName?: string
|
|
164
221
|
gatewayName?: string
|
|
165
222
|
}
|
|
166
223
|
|
|
167
224
|
export type DeleteGatewayRes = {
|
|
168
|
-
|
|
225
|
+
status?: SkoalaApiGeneralV1alpha1Common.Status
|
|
169
226
|
}
|
|
170
227
|
|
|
171
228
|
export type NormalConfig = {
|
|
@@ -173,14 +230,25 @@ export type NormalConfig = {
|
|
|
173
230
|
envoy?: EnvoyNormalConfig
|
|
174
231
|
}
|
|
175
232
|
|
|
233
|
+
export type NormalConfigPro = {
|
|
234
|
+
contour?: ContourNormalConfigPro
|
|
235
|
+
envoy?: EnvoyNormalConfigPro
|
|
236
|
+
}
|
|
237
|
+
|
|
176
238
|
export type GatewayConfig = {
|
|
177
239
|
normal?: NormalConfig
|
|
178
240
|
advanced?: AdvancedConfig
|
|
179
241
|
}
|
|
180
242
|
|
|
243
|
+
export type GatewayConfigPro = {
|
|
244
|
+
normal?: NormalConfigPro
|
|
245
|
+
advanced?: AdvancedConfigPro
|
|
246
|
+
}
|
|
247
|
+
|
|
181
248
|
|
|
182
249
|
type BaseContourAdvancedConfig = {
|
|
183
|
-
resources?:
|
|
250
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
251
|
+
diagnostic?: GatewayDiagnostic
|
|
184
252
|
}
|
|
185
253
|
|
|
186
254
|
export type ContourAdvancedConfig = BaseContourAdvancedConfig
|
|
@@ -188,7 +256,7 @@ export type ContourAdvancedConfig = BaseContourAdvancedConfig
|
|
|
188
256
|
|
|
189
257
|
|
|
190
258
|
type BaseEnvoyAdvancedConfig = {
|
|
191
|
-
resources?:
|
|
259
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
192
260
|
}
|
|
193
261
|
|
|
194
262
|
export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
|
|
@@ -198,6 +266,12 @@ export type AdvancedConfig = {
|
|
|
198
266
|
log?: Log
|
|
199
267
|
contour?: ContourAdvancedConfig
|
|
200
268
|
envoy?: EnvoyAdvancedConfig
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export type AdvancedConfigPro = {
|
|
272
|
+
log?: Log
|
|
273
|
+
contour?: ContourAdvancedConfig
|
|
274
|
+
envoy?: EnvoyAdvancedConfig
|
|
201
275
|
globalRateLimit?: boolean
|
|
202
276
|
}
|
|
203
277
|
|
|
@@ -208,13 +282,6 @@ export type Log = {
|
|
|
208
282
|
logToInsight?: boolean
|
|
209
283
|
}
|
|
210
284
|
|
|
211
|
-
export type Resource = {
|
|
212
|
-
cpuRequests?: string
|
|
213
|
-
cpuLimits?: string
|
|
214
|
-
memoryRequests?: string
|
|
215
|
-
memoryLimits?: string
|
|
216
|
-
}
|
|
217
|
-
|
|
218
285
|
export type RollingUpdate = {
|
|
219
286
|
maxSurge?: string
|
|
220
287
|
maxUnavailable?: string
|
|
@@ -226,12 +293,71 @@ export type GetImagesRes = {
|
|
|
226
293
|
}
|
|
227
294
|
|
|
228
295
|
export type GetGatewayStatusReq = {
|
|
229
|
-
workspaceId?:
|
|
296
|
+
workspaceId?: string
|
|
230
297
|
clusterName?: string
|
|
231
298
|
namespaceName?: string
|
|
232
299
|
gatewayName?: string
|
|
233
300
|
}
|
|
234
301
|
|
|
235
302
|
export type GetGatewayStatusRes = {
|
|
236
|
-
|
|
303
|
+
health?: GatewayHealth
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export type DeploymentHealth = {
|
|
307
|
+
name?: string
|
|
308
|
+
status?: HealthStatus
|
|
309
|
+
availableReplicas?: number
|
|
310
|
+
replicas?: number
|
|
311
|
+
msgs?: string[]
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type ContainerHealth = {
|
|
315
|
+
name?: string
|
|
316
|
+
status?: HealthStatus
|
|
317
|
+
containerPort?: number
|
|
318
|
+
responseTime?: number
|
|
319
|
+
msgs?: string[]
|
|
320
|
+
}
|
|
321
|
+
|
|
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[]
|
|
330
|
+
}
|
|
331
|
+
|
|
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
|
|
237
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
|
+
}
|
|
@@ -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
|
export enum NacosStatus {
|
|
10
12
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
@@ -20,13 +22,6 @@ export enum NacosConfigType {
|
|
|
20
22
|
cluster = "cluster",
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
export enum NacosConfigServiceType {
|
|
24
|
-
SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
|
|
25
|
-
NodePort = "NodePort",
|
|
26
|
-
ClusterIP = "ClusterIP",
|
|
27
|
-
LoadBalancer = "LoadBalancer",
|
|
28
|
-
}
|
|
29
|
-
|
|
30
25
|
export type ListNacosReq = {
|
|
31
26
|
workspaceId?: string
|
|
32
27
|
clusterName?: string
|
|
@@ -37,7 +32,7 @@ export type ListNacosReq = {
|
|
|
37
32
|
|
|
38
33
|
export type ListNacosRes = {
|
|
39
34
|
items?: Nacos[]
|
|
40
|
-
pagination?:
|
|
35
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
41
36
|
}
|
|
42
37
|
|
|
43
38
|
export type Nacos = {
|
|
@@ -46,14 +41,14 @@ export type Nacos = {
|
|
|
46
41
|
nacosName?: string
|
|
47
42
|
namespaceName?: string
|
|
48
43
|
type?: NacosConfigType
|
|
49
|
-
serviceType?:
|
|
44
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
50
45
|
nodePort?: number
|
|
51
46
|
status?: NacosStatus
|
|
52
47
|
replicas?: number
|
|
53
48
|
image?: string
|
|
54
49
|
version?: string
|
|
55
50
|
database?: NacosDatabase
|
|
56
|
-
|
|
51
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
57
52
|
condition?: NacosCondition[]
|
|
58
53
|
createAt?: string
|
|
59
54
|
}
|
|
@@ -66,11 +61,6 @@ export type NacosDatabase = {
|
|
|
66
61
|
user?: string
|
|
67
62
|
}
|
|
68
63
|
|
|
69
|
-
export type NacosResource = {
|
|
70
|
-
limits?: {[key: string]: string}
|
|
71
|
-
request?: {[key: string]: string}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
64
|
export type NacosCondition = {
|
|
75
65
|
type?: string
|
|
76
66
|
status?: string
|
|
@@ -132,7 +122,7 @@ export type NacosConfig = {
|
|
|
132
122
|
replicas?: number
|
|
133
123
|
cpu?: string
|
|
134
124
|
memory?: string
|
|
135
|
-
serviceType?:
|
|
125
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
136
126
|
nodePort?: string
|
|
137
127
|
databaseEnabled?: boolean
|
|
138
128
|
databaseParam?: DatabaseParam
|
|
@@ -144,4 +134,14 @@ export type DatabaseParam = {
|
|
|
144
134
|
username?: string
|
|
145
135
|
password?: string
|
|
146
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 = {
|
|
147
147
|
}
|
|
@@ -4,7 +4,8 @@
|
|
|
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"
|
|
8
9
|
export type ListSentinelReq = {
|
|
9
10
|
workspace?: string
|
|
10
11
|
cluster?: string
|
|
@@ -15,7 +16,7 @@ export type ListSentinelReq = {
|
|
|
15
16
|
|
|
16
17
|
export type ListSentinelRes = {
|
|
17
18
|
items?: Sentinel[]
|
|
18
|
-
pagination?:
|
|
19
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export type Sentinel = {
|
|
@@ -49,18 +50,11 @@ export type UpdateSentinelReq = {
|
|
|
49
50
|
export type UpdateSentinelRes = {
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
export type Resources = {
|
|
53
|
-
cpuRequests?: string
|
|
54
|
-
cpuLimits?: string
|
|
55
|
-
memoryRequests?: string
|
|
56
|
-
memoryLimits?: string
|
|
57
|
-
}
|
|
58
|
-
|
|
59
53
|
export type SentinelConfig = {
|
|
60
54
|
type?: string
|
|
61
55
|
port?: number
|
|
62
56
|
nodePort?: number
|
|
63
|
-
resources?:
|
|
57
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
64
58
|
image?: string
|
|
65
59
|
}
|
|
66
60
|
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
|
|
9
|
+
export type CreateVirtualhostReq = {
|
|
10
|
+
workspaceId?: string
|
|
11
|
+
gatewayName?: string
|
|
12
|
+
clusterName?: string
|
|
13
|
+
namespaceName?: string
|
|
14
|
+
fqdn?: string
|
|
15
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type CreateVirtualhostRes = {
|
|
19
|
+
fqdn?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type ListVirtualhostReq = {
|
|
23
|
+
workspaceId?: string
|
|
24
|
+
clusterName?: string
|
|
25
|
+
gatewayName?: string
|
|
26
|
+
namespaceName?: string
|
|
27
|
+
fqdn?: string
|
|
28
|
+
page?: number
|
|
29
|
+
pageSize?: number
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type VirtualhostInfo = {
|
|
33
|
+
fqdn?: string
|
|
34
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
35
|
+
secretName?: string
|
|
36
|
+
namespaceName?: string
|
|
37
|
+
updatedAt?: string
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type ListVirtualhostRes = {
|
|
41
|
+
virtualhost?: VirtualhostInfo[]
|
|
42
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type GetVirtualhostReq = {
|
|
46
|
+
workspaceId?: string
|
|
47
|
+
clusterName?: string
|
|
48
|
+
gatewayName?: string
|
|
49
|
+
namespaceName?: string
|
|
50
|
+
fqdn?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type GetVirtualhostRes = {
|
|
54
|
+
fqdn?: string
|
|
55
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type UpdateVirtualhostReq = {
|
|
59
|
+
workspaceId?: string
|
|
60
|
+
gatewayName?: string
|
|
61
|
+
clusterName?: string
|
|
62
|
+
namespaceName?: string
|
|
63
|
+
fqdn?: string
|
|
64
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type UpdateVirtualhostRes = {
|
|
68
|
+
fqdn?: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type DeleteVirtualhostReq = {
|
|
72
|
+
workspaceId?: string
|
|
73
|
+
gatewayName?: string
|
|
74
|
+
clusterName?: string
|
|
75
|
+
namespaceName?: string
|
|
76
|
+
fqdn?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type DeleteVirtualhostRes = {
|
|
80
|
+
fqdn?: string
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type CorsPolicy = {
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type RateLimitPolicy = {
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type Tls = {
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type Authorization = {
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type AuthPolicy = {
|
|
96
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
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
8
|
import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
|
|
9
9
|
|
|
10
10
|
export enum InstanceStatus {
|
|
@@ -40,7 +40,7 @@ export type ListInstanceReq = {
|
|
|
40
40
|
|
|
41
41
|
export type ListInstanceRes = {
|
|
42
42
|
items?: Instance[]
|
|
43
|
-
pagination?:
|
|
43
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export type GetInstanceReq = {
|
|
@@ -4,7 +4,7 @@
|
|
|
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
8
|
|
|
9
9
|
export enum RegistryStatus {
|
|
10
10
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
@@ -53,7 +53,7 @@ export type ListRegistryReq = {
|
|
|
53
53
|
|
|
54
54
|
export type ListRegistryRes = {
|
|
55
55
|
items?: Registry[]
|
|
56
|
-
pagination?:
|
|
56
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export type GetRegistryReq = {
|
|
@@ -4,7 +4,7 @@
|
|
|
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
8
|
import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
|
|
9
9
|
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
10
10
|
export type Service = {
|
|
@@ -27,7 +27,7 @@ export type ListServiceReq = {
|
|
|
27
27
|
|
|
28
28
|
export type ListServiceRes = {
|
|
29
29
|
items?: Service[]
|
|
30
|
-
pagination?:
|
|
30
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export type GetServiceReq = {
|
|
@@ -12,6 +12,7 @@ import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
|
|
|
12
12
|
import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
|
|
13
13
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
14
14
|
import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
|
|
15
|
+
import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtualhost.pb"
|
|
15
16
|
import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
|
|
16
17
|
import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
|
|
17
18
|
import * as SkoalaApiIntegratedV1alpha1Service from "../../integrated/v1alpha1/service.pb"
|
|
@@ -94,6 +95,9 @@ export class Nacos {
|
|
|
94
95
|
static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
95
96
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE"})
|
|
96
97
|
}
|
|
98
|
+
static ListService(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes> {
|
|
99
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "nacosName"])}`, {...initReq, method: "GET"})
|
|
100
|
+
}
|
|
97
101
|
}
|
|
98
102
|
export class Sentinel {
|
|
99
103
|
static List(req: SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes> {
|
|
@@ -122,14 +126,14 @@ export class Gateway {
|
|
|
122
126
|
static Get(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayRes> {
|
|
123
127
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
124
128
|
}
|
|
125
|
-
static Create(req: SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, initReq?: fm.InitReq): Promise<
|
|
126
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq,
|
|
129
|
+
static Create(req: SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes> {
|
|
130
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
127
131
|
}
|
|
128
|
-
static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<
|
|
129
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq,
|
|
132
|
+
static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes> {
|
|
133
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
130
134
|
}
|
|
131
|
-
static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<
|
|
132
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq,
|
|
135
|
+
static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes> {
|
|
136
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
|
|
133
137
|
}
|
|
134
138
|
static GetImages(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
|
|
135
139
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetImagesRes>(`/apis/sesame.skoala.io/v1alpha1/images?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -137,19 +141,37 @@ export class Gateway {
|
|
|
137
141
|
static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
|
|
138
142
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
139
143
|
}
|
|
144
|
+
static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticRes> {
|
|
145
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
146
|
+
}
|
|
147
|
+
static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes> {
|
|
148
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
149
|
+
}
|
|
150
|
+
static ListVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostRes> {
|
|
151
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
152
|
+
}
|
|
153
|
+
static GetVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostRes> {
|
|
154
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts/${req["fqdn"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "fqdn"])}`, {...initReq, method: "GET"})
|
|
155
|
+
}
|
|
156
|
+
static DeleteVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostRes> {
|
|
157
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts/${req["fqdn"]}`, {...initReq, method: "DELETE"})
|
|
158
|
+
}
|
|
159
|
+
static UpdateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostRes> {
|
|
160
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts/${req["fqdn"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
161
|
+
}
|
|
140
162
|
static CreateAPI(req: SkoalaApiHostedV1alpha1Api.CreateAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.CreateAPIRes> {
|
|
141
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.CreateAPIReq, SkoalaApiHostedV1alpha1Api.CreateAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
163
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.CreateAPIReq, SkoalaApiHostedV1alpha1Api.CreateAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
142
164
|
}
|
|
143
165
|
static ListAPI(req: SkoalaApiHostedV1alpha1Api.APIListReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.APIListRes> {
|
|
144
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.APIListReq, SkoalaApiHostedV1alpha1Api.APIListRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/${req["gatewayName"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
166
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.APIListReq, SkoalaApiHostedV1alpha1Api.APIListRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
145
167
|
}
|
|
146
168
|
static GetAPI(req: SkoalaApiHostedV1alpha1Api.GetAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.GetAPIRes> {
|
|
147
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.GetAPIReq, SkoalaApiHostedV1alpha1Api.GetAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
|
|
169
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.GetAPIReq, SkoalaApiHostedV1alpha1Api.GetAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
|
|
148
170
|
}
|
|
149
171
|
static DeleteAPI(req: SkoalaApiHostedV1alpha1Api.DeleteAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.DeleteAPIRes> {
|
|
150
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.DeleteAPIReq, SkoalaApiHostedV1alpha1Api.DeleteAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "DELETE"})
|
|
172
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.DeleteAPIReq, SkoalaApiHostedV1alpha1Api.DeleteAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "DELETE"})
|
|
151
173
|
}
|
|
152
174
|
static UpdateAPI(req: SkoalaApiHostedV1alpha1Api.UpdateAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.UpdateAPIRes> {
|
|
153
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.UpdateAPIReq, SkoalaApiHostedV1alpha1Api.UpdateAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
175
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.UpdateAPIReq, SkoalaApiHostedV1alpha1Api.UpdateAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
154
176
|
}
|
|
155
177
|
}
|