@daocloud-proto/skoala 0.4.1-53 → 0.4.1-59
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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
-
import * as
|
|
8
|
+
import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
|
|
9
9
|
|
|
10
10
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
11
|
type OneOf<T> =
|
|
@@ -107,7 +107,7 @@ export type ServiceDetail = {
|
|
|
107
107
|
serviceName?: string
|
|
108
108
|
registrationId?: string
|
|
109
109
|
address?: string
|
|
110
|
-
protocol?:
|
|
110
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
111
111
|
port?: number
|
|
112
112
|
weight?: string
|
|
113
113
|
nacosNamespaceId?: string
|
|
@@ -130,7 +130,7 @@ export type APIConfig = BaseAPIConfig
|
|
|
130
130
|
|
|
131
131
|
export type Virtualhost = {
|
|
132
132
|
fqdn?: string
|
|
133
|
-
protocol?:
|
|
133
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
export type Certificate = {
|
|
@@ -139,7 +139,7 @@ export type Certificate = {
|
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
type BaseMatchRule = {
|
|
142
|
-
httpMethod?:
|
|
142
|
+
httpMethod?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
143
143
|
headers?: HeaderRule[]
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -160,7 +160,7 @@ export type RouteAction = {
|
|
|
160
160
|
|
|
161
161
|
|
|
162
162
|
type BaseRouteService = {
|
|
163
|
-
protocol?:
|
|
163
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
164
164
|
port?: number
|
|
165
165
|
weight?: number
|
|
166
166
|
}
|
|
@@ -218,7 +218,7 @@ export type RedirectAction = {
|
|
|
218
218
|
path?: string
|
|
219
219
|
port?: number
|
|
220
220
|
statusCode?: number
|
|
221
|
-
protocol?:
|
|
221
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
export type DirectResponse = {
|
|
@@ -243,7 +243,7 @@ export type APIListRes = {
|
|
|
243
243
|
export type APIInfo = {
|
|
244
244
|
apiName?: string
|
|
245
245
|
fqdn?: string
|
|
246
|
-
method?:
|
|
246
|
+
method?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
247
247
|
requestPath?: string
|
|
248
248
|
routeType?: RouteType
|
|
249
249
|
apiStatus?: APIStatus
|
|
@@ -38,7 +38,7 @@ export type Node = {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export type Gateway = {
|
|
41
|
-
workspaceId?:
|
|
41
|
+
workspaceId?: string
|
|
42
42
|
clusterName?: string
|
|
43
43
|
namespaceName?: string
|
|
44
44
|
name?: string
|
|
@@ -48,18 +48,19 @@ export type Gateway = {
|
|
|
48
48
|
endpoints?: string[]
|
|
49
49
|
contour?: Node
|
|
50
50
|
envoy?: Node
|
|
51
|
+
apiCount?: number
|
|
51
52
|
config?: GatewayConfig
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
export type ListAllGatewayReq = {
|
|
55
|
-
workspaceId?:
|
|
56
|
+
workspaceId?: string
|
|
56
57
|
page?: number
|
|
57
58
|
pageSize?: number
|
|
58
59
|
filter?: string
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
export type ListClusterGatewayReq = {
|
|
62
|
-
workspaceId?:
|
|
63
|
+
workspaceId?: string
|
|
63
64
|
clusterName?: string
|
|
64
65
|
page?: number
|
|
65
66
|
pageSize?: number
|
|
@@ -73,10 +74,10 @@ export type ListGatewayRes = {
|
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
export type GetGatewayReq = {
|
|
76
|
-
workspaceId?:
|
|
77
|
+
workspaceId?: string
|
|
77
78
|
clusterName?: string
|
|
78
79
|
namespaceName?: string
|
|
79
|
-
|
|
80
|
+
name?: string
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
export type GetGatewayRes = {
|
|
@@ -109,6 +110,7 @@ export type HostIPs = {
|
|
|
109
110
|
|
|
110
111
|
export type EnvoyService = {
|
|
111
112
|
type?: ServiceType
|
|
113
|
+
enableHttps?: boolean
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
export type EnvoyServicePro = {
|
|
@@ -162,7 +164,7 @@ export type ContourNormalConfigPro = {
|
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
export type CreateGatewayReq = {
|
|
165
|
-
workspaceId?:
|
|
167
|
+
workspaceId?: string
|
|
166
168
|
name?: string
|
|
167
169
|
clusterName?: string
|
|
168
170
|
namespaceName?: string
|
|
@@ -170,7 +172,7 @@ export type CreateGatewayReq = {
|
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
export type CreateGatewayProReq = {
|
|
173
|
-
workspaceId?:
|
|
175
|
+
workspaceId?: string
|
|
174
176
|
name?: string
|
|
175
177
|
clusterName?: string
|
|
176
178
|
namespaceName?: string
|
|
@@ -179,26 +181,26 @@ export type CreateGatewayProReq = {
|
|
|
179
181
|
}
|
|
180
182
|
|
|
181
183
|
export type UpdateGatewayReq = {
|
|
182
|
-
workspaceId?:
|
|
183
|
-
|
|
184
|
+
workspaceId?: string
|
|
185
|
+
name?: string
|
|
184
186
|
clusterName?: string
|
|
185
187
|
namespaceName?: string
|
|
186
188
|
config?: GatewayConfig
|
|
187
189
|
}
|
|
188
190
|
|
|
189
191
|
export type UpdateGatewayProReq = {
|
|
190
|
-
workspaceId?:
|
|
191
|
-
|
|
192
|
+
workspaceId?: string
|
|
193
|
+
name?: string
|
|
192
194
|
clusterName?: string
|
|
193
195
|
namespaceName?: string
|
|
194
196
|
config?: GatewayConfigPro
|
|
195
197
|
}
|
|
196
198
|
|
|
197
199
|
export type DeleteGatewayReq = {
|
|
198
|
-
workspaceId?:
|
|
200
|
+
workspaceId?: string
|
|
199
201
|
clusterName?: string
|
|
200
202
|
namespaceName?: string
|
|
201
|
-
|
|
203
|
+
name?: string
|
|
202
204
|
}
|
|
203
205
|
|
|
204
206
|
export type DeleteGatewayRes = {
|
|
@@ -272,10 +274,10 @@ export type GetImagesRes = {
|
|
|
272
274
|
}
|
|
273
275
|
|
|
274
276
|
export type GetGatewayStatusReq = {
|
|
275
|
-
workspaceId?:
|
|
277
|
+
workspaceId?: string
|
|
276
278
|
clusterName?: string
|
|
277
279
|
namespaceName?: string
|
|
278
|
-
|
|
280
|
+
name?: string
|
|
279
281
|
}
|
|
280
282
|
|
|
281
283
|
export type GetGatewayStatusRes = {
|
|
File without changes
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
-
import * as
|
|
8
|
+
import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
|
|
9
9
|
export type CreateVirtualhostReq = {
|
|
10
10
|
workspaceId?: string
|
|
11
11
|
gatewayName?: string
|
|
12
12
|
clusterName?: string
|
|
13
13
|
namespaceName?: string
|
|
14
14
|
fqdn?: string
|
|
15
|
-
protocol?:
|
|
15
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export type CreateVirtualhostRes = {
|
|
@@ -31,7 +31,7 @@ export type ListVirtualhostReq = {
|
|
|
31
31
|
|
|
32
32
|
export type VirtualhostInfo = {
|
|
33
33
|
fqdn?: string
|
|
34
|
-
protocol?:
|
|
34
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
35
35
|
secretName?: string
|
|
36
36
|
namespaceName?: string
|
|
37
37
|
updatedAt?: string
|
|
@@ -52,7 +52,7 @@ export type GetVirtualhostReq = {
|
|
|
52
52
|
|
|
53
53
|
export type GetVirtualhostRes = {
|
|
54
54
|
fqdn?: string
|
|
55
|
-
protocol?:
|
|
55
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export type UpdateVirtualhostReq = {
|
|
@@ -61,7 +61,7 @@ export type UpdateVirtualhostReq = {
|
|
|
61
61
|
clusterName?: string
|
|
62
62
|
namespaceName?: string
|
|
63
63
|
fqdn?: string
|
|
64
|
-
protocol?:
|
|
64
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export type UpdateVirtualhostRes = {
|
|
@@ -121,22 +121,22 @@ export class Gateway {
|
|
|
121
121
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListClusterGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
122
122
|
}
|
|
123
123
|
static Get(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayRes> {
|
|
124
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["
|
|
124
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "name"])}`, {...initReq, method: "GET"})
|
|
125
125
|
}
|
|
126
126
|
static Create(req: SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
127
127
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
128
128
|
}
|
|
129
129
|
static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
130
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["
|
|
130
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
131
131
|
}
|
|
132
132
|
static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
133
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["
|
|
133
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
134
134
|
}
|
|
135
135
|
static GetImages(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
|
|
136
136
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetImagesRes>(`/apis/sesame.skoala.io/v1alpha1/images?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
137
137
|
}
|
|
138
138
|
static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
|
|
139
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["
|
|
139
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["name"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "name"])}`, {...initReq, method: "GET"})
|
|
140
140
|
}
|
|
141
141
|
static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes> {
|
|
142
142
|
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)})
|