@daocloud-proto/skoala 0.4.0 → 0.4.1-105
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/apilog.pb.ts +47 -0
- 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 +37 -11
- package/log/v1alpha1/log.pb.ts +9 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +1 -4
- package/span_metric/v1alpha1/span_metric.pb.ts +0 -39
- package/tracing/v1alpha1/tracing.pb.ts +18 -0
- package/span_metric/v1alpha1/openmetrics.pb.ts +0 -130
|
@@ -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
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
export type SearchLogReq = {
|
|
9
|
+
workspaceId?: string
|
|
10
|
+
gatewayName?: string
|
|
11
|
+
clusterName?: string
|
|
12
|
+
namespaceName?: string
|
|
13
|
+
requestId?: string
|
|
14
|
+
fqdn?: string
|
|
15
|
+
requestPath?: string
|
|
16
|
+
statusCode?: string[]
|
|
17
|
+
requestMethod?: string[]
|
|
18
|
+
message?: string
|
|
19
|
+
startTime?: string
|
|
20
|
+
endTime?: string
|
|
21
|
+
sortOrder?: SortOrder[]
|
|
22
|
+
page?: number
|
|
23
|
+
pageSize?: number
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type SortOrder = {
|
|
27
|
+
orderBy?: SkoalaApiGeneralV1alpha1Common.OrderBy
|
|
28
|
+
sortBy?: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type SearchLogRes = {
|
|
32
|
+
logResult?: LogResult[]
|
|
33
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type LogResult = {
|
|
37
|
+
authority?: string
|
|
38
|
+
userAgent?: string
|
|
39
|
+
gatewayName?: string
|
|
40
|
+
method?: string
|
|
41
|
+
xForwardedFor?: string
|
|
42
|
+
requestId?: string
|
|
43
|
+
path?: string
|
|
44
|
+
upstreamServiceTime?: string
|
|
45
|
+
requestTime?: string
|
|
46
|
+
json?: string
|
|
47
|
+
}
|