@daocloud-proto/skoala 0.29.0 → 0.30.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiHostedV1alpha1Api from "./api.pb"
|
|
9
|
+
import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
|
|
8
10
|
import * as SkoalaApiHostedV1alpha1Mesh from "./mesh.pb"
|
|
9
11
|
|
|
10
12
|
export enum LaneStatusPhase {
|
|
@@ -22,6 +24,13 @@ export enum Action {
|
|
|
22
24
|
INACTIVE = "INACTIVE",
|
|
23
25
|
}
|
|
24
26
|
|
|
27
|
+
export enum DrainageRulePathInfoPathType {
|
|
28
|
+
PATH_TYPE_UNSPECIFIED = "PATH_TYPE_UNSPECIFIED",
|
|
29
|
+
EXACT = "EXACT",
|
|
30
|
+
PREFIX = "PREFIX",
|
|
31
|
+
REGEX = "REGEX",
|
|
32
|
+
}
|
|
33
|
+
|
|
25
34
|
export type ListLaneReq = {
|
|
26
35
|
workspaceId?: string
|
|
27
36
|
meshId?: string
|
|
@@ -100,6 +109,7 @@ export type ListLaneService = {
|
|
|
100
109
|
replicas?: number
|
|
101
110
|
availableReplicas?: number
|
|
102
111
|
failedMessage?: FailedMessage
|
|
112
|
+
ports?: number[]
|
|
103
113
|
}
|
|
104
114
|
|
|
105
115
|
export type ListLaneServiceReq = {
|
|
@@ -160,4 +170,145 @@ export type ListMeshServiceVersionReq = {
|
|
|
160
170
|
|
|
161
171
|
export type ListMeshServiceVersionRes = {
|
|
162
172
|
subsets?: string[]
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type ListMeshServicePortReq = {
|
|
176
|
+
workspaceId?: string
|
|
177
|
+
meshId?: string
|
|
178
|
+
laneName?: string
|
|
179
|
+
namespaceName?: string
|
|
180
|
+
serviceName?: string
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export type ListMeshServicePortRes = {
|
|
184
|
+
ports?: number[]
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type GetLaneServiceGatewayReq = {
|
|
188
|
+
workspaceId?: string
|
|
189
|
+
meshId?: string
|
|
190
|
+
laneName?: string
|
|
191
|
+
serviceNamespaceName?: string
|
|
192
|
+
serviceName?: string
|
|
193
|
+
page?: number
|
|
194
|
+
pageSize?: number
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export type GetLaneServiceGatewayRes = {
|
|
198
|
+
items?: GetLaneServiceGatewayInfo[]
|
|
199
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export type GetLaneServiceGatewayInfo = {
|
|
203
|
+
gatewayCluster?: string
|
|
204
|
+
gatewayNamespace?: string
|
|
205
|
+
gatewayName?: string
|
|
206
|
+
sidecarInject?: boolean
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export type ListLaneGatewayDomainReq = {
|
|
210
|
+
workspaceId?: string
|
|
211
|
+
meshId?: string
|
|
212
|
+
laneName?: string
|
|
213
|
+
gatewayCluster?: string
|
|
214
|
+
gatewayNamespace?: string
|
|
215
|
+
gatewayName?: string
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export type ListLaneGatewayDomainRes = {
|
|
219
|
+
domains?: string[]
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export type CreateLaneDrainageRuleReq = {
|
|
223
|
+
workspaceId?: string
|
|
224
|
+
meshId?: string
|
|
225
|
+
laneName?: string
|
|
226
|
+
gatewayCluster?: string
|
|
227
|
+
gatewayNamespace?: string
|
|
228
|
+
gatewayName?: string
|
|
229
|
+
domain?: string
|
|
230
|
+
serviceNamespace?: string
|
|
231
|
+
serviceName?: string
|
|
232
|
+
port?: number
|
|
233
|
+
matchRule?: SkoalaApiHostedV1alpha1Api.MatchRule
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export type GetLaneDrainageRuleReq = {
|
|
237
|
+
workspaceId?: string
|
|
238
|
+
meshId?: string
|
|
239
|
+
laneName?: string
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export type GetLaneDrainageRuleRes = {
|
|
243
|
+
drainageRule?: DrainageRule
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export type DrainageRule = {
|
|
247
|
+
status?: DrainageRuleStatus
|
|
248
|
+
gatewayInfo?: DrainageRuleGatewayInfo
|
|
249
|
+
domainInfo?: DrainageRuleDomainInfo
|
|
250
|
+
serviceInfo?: DrainageRuleServiceInfo
|
|
251
|
+
routeInfo?: DrainageRuleRouteInfo
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export type DrainageRuleDomainInfo = {
|
|
255
|
+
domain?: string
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export type DrainageRuleStatus = {
|
|
259
|
+
enabled?: boolean
|
|
260
|
+
health?: boolean
|
|
261
|
+
reason?: string
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export type DrainageRuleGatewayInfo = {
|
|
265
|
+
gatewayCluster?: string
|
|
266
|
+
gatewayNamespace?: string
|
|
267
|
+
gatewayName?: string
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export type DrainageRulePathInfo = {
|
|
271
|
+
pathType?: DrainageRulePathInfoPathType
|
|
272
|
+
path?: string
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export type DrainageRuleServiceInfo = {
|
|
276
|
+
sesameId?: string
|
|
277
|
+
namespace?: string
|
|
278
|
+
name?: string
|
|
279
|
+
port?: number
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export type DrainageRuleRouteInfo = {
|
|
283
|
+
apiName?: string
|
|
284
|
+
pathInfo?: DrainageRulePathInfo
|
|
285
|
+
methods?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
286
|
+
headers?: SkoalaApiHostedV1alpha1Http.HeaderRule[]
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export type UpdateLaneDrainageRuleStatusReq = {
|
|
290
|
+
workspaceId?: string
|
|
291
|
+
meshId?: string
|
|
292
|
+
laneName?: string
|
|
293
|
+
enabled?: boolean
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export type DeleteLaneDrainageRuleReq = {
|
|
297
|
+
workspaceId?: string
|
|
298
|
+
meshId?: string
|
|
299
|
+
laneName?: string
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export type UpdateLaneDrainageRuleReq = {
|
|
303
|
+
workspaceId?: string
|
|
304
|
+
meshId?: string
|
|
305
|
+
laneName?: string
|
|
306
|
+
gatewayCluster?: string
|
|
307
|
+
gatewayNamespace?: string
|
|
308
|
+
gatewayName?: string
|
|
309
|
+
domain?: string
|
|
310
|
+
serviceNamespace?: string
|
|
311
|
+
serviceName?: string
|
|
312
|
+
port?: number
|
|
313
|
+
matchRule?: SkoalaApiHostedV1alpha1Api.MatchRule
|
|
163
314
|
}
|
|
@@ -931,4 +931,25 @@ export class Lane {
|
|
|
931
931
|
static ListMeshServiceVersion(req: SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionRes> {
|
|
932
932
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionReq, SkoalaApiHostedV1alpha1Lane.ListMeshServiceVersionRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/versions?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
933
933
|
}
|
|
934
|
+
static ListMeshServicePort(req: SkoalaApiHostedV1alpha1Lane.ListMeshServicePortReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListMeshServicePortRes> {
|
|
935
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.ListMeshServicePortReq, SkoalaApiHostedV1alpha1Lane.ListMeshServicePortRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "laneName", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
936
|
+
}
|
|
937
|
+
static ListLaneServiceGateway(req: SkoalaApiHostedV1alpha1Lane.GetLaneServiceGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.GetLaneServiceGatewayRes> {
|
|
938
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.GetLaneServiceGatewayReq, SkoalaApiHostedV1alpha1Lane.GetLaneServiceGatewayRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services/${req["serviceName"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "laneName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
939
|
+
}
|
|
940
|
+
static CreateLaneDrainageRule(req: SkoalaApiHostedV1alpha1Lane.CreateLaneDrainageRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
941
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.CreateLaneDrainageRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/drainagerule`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
942
|
+
}
|
|
943
|
+
static GetLaneDrainageRule(req: SkoalaApiHostedV1alpha1Lane.GetLaneDrainageRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.GetLaneDrainageRuleRes> {
|
|
944
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.GetLaneDrainageRuleReq, SkoalaApiHostedV1alpha1Lane.GetLaneDrainageRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/drainagerule?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "laneName"])}`, {...initReq, method: "GET"})
|
|
945
|
+
}
|
|
946
|
+
static UpdateLaneDrainageRuleStatus(req: SkoalaApiHostedV1alpha1Lane.UpdateLaneDrainageRuleStatusReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
947
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.UpdateLaneDrainageRuleStatusReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/drainagerule/status/${req["enabled"]}`, {...initReq, method: "PUT"})
|
|
948
|
+
}
|
|
949
|
+
static DeleteLaneDrainageRule(req: SkoalaApiHostedV1alpha1Lane.DeleteLaneDrainageRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
950
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.DeleteLaneDrainageRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/drainagerule`, {...initReq, method: "DELETE"})
|
|
951
|
+
}
|
|
952
|
+
static UpdateLaneDrainageRule(req: SkoalaApiHostedV1alpha1Lane.UpdateLaneDrainageRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
953
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.UpdateLaneDrainageRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/drainagerule`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
954
|
+
}
|
|
934
955
|
}
|