@daocloud-proto/skoala 0.21.2-6 → 0.21.2-64
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 +1 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +19 -0
- package/api/hosted/v1alpha1/mesh.pb.ts +98 -0
- package/api/hosted/v1alpha1/sentinel.pb.ts +1 -0
- package/api/hosted/v1alpha1/skoala_plugins.pb.ts +10 -0
- package/api/hosted/v1alpha1/virtualhost.pb.ts +0 -11
- package/api/skoala/v1alpha1/skoala.pb.ts +11 -2
- package/package.json +1 -1
|
@@ -89,6 +89,11 @@ export enum GatewayConditionStatus {
|
|
|
89
89
|
Unknown = "Unknown",
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
export enum TracingConfigtagType {
|
|
93
|
+
Literal = "Literal",
|
|
94
|
+
Header = "Header",
|
|
95
|
+
}
|
|
96
|
+
|
|
92
97
|
export enum LogLogLevel {
|
|
93
98
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
94
99
|
Trace = "Trace",
|
|
@@ -287,11 +292,25 @@ export type GlobalRatelimitConfig = {
|
|
|
287
292
|
type BaseContourAdvancedConfig = {
|
|
288
293
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
289
294
|
diagnostic?: GatewayDiagnostic
|
|
295
|
+
tracingConfig?: TracingConfig
|
|
290
296
|
}
|
|
291
297
|
|
|
292
298
|
export type ContourAdvancedConfig = BaseContourAdvancedConfig
|
|
293
299
|
& OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
|
|
294
300
|
|
|
301
|
+
export type TracingConfigcustomTag = {
|
|
302
|
+
tagName?: string
|
|
303
|
+
tagType?: TracingConfigtagType
|
|
304
|
+
tagValue?: string
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
export type TracingConfig = {
|
|
308
|
+
enabled?: boolean
|
|
309
|
+
sampling?: number
|
|
310
|
+
maxPathLength?: number
|
|
311
|
+
customTags?: TracingConfigcustomTag[]
|
|
312
|
+
}
|
|
313
|
+
|
|
295
314
|
|
|
296
315
|
type BaseEnvoyAdvancedConfig = {
|
|
297
316
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
@@ -54,6 +54,17 @@ export enum ServiceType {
|
|
|
54
54
|
DUBBO = "DUBBO",
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
export enum GovernProtocol {
|
|
58
|
+
GOVERN_PROTOCOL_UNSPECIFIED = "GOVERN_PROTOCOL_UNSPECIFIED",
|
|
59
|
+
GOVERN_TCP = "GOVERN_TCP",
|
|
60
|
+
GOVERN_HTTP = "GOVERN_HTTP",
|
|
61
|
+
GOVERN_HTTP2 = "GOVERN_HTTP2",
|
|
62
|
+
GOVERN_HTTPS = "GOVERN_HTTPS",
|
|
63
|
+
GOVERN_TLS = "GOVERN_TLS",
|
|
64
|
+
GOVERN_GRPC = "GOVERN_GRPC",
|
|
65
|
+
GOVERN_UNSUPPORTED = "GOVERN_UNSUPPORTED",
|
|
66
|
+
}
|
|
67
|
+
|
|
57
68
|
export enum LB {
|
|
58
69
|
UNSPECIFIED = "UNSPECIFIED",
|
|
59
70
|
LEAST_CONN = "LEAST_CONN",
|
|
@@ -62,6 +73,18 @@ export enum LB {
|
|
|
62
73
|
ROUND_ROBIN = "ROUND_ROBIN",
|
|
63
74
|
}
|
|
64
75
|
|
|
76
|
+
export enum WasmPluginPhase {
|
|
77
|
+
UNSPECIFIED_PHASE = "UNSPECIFIED_PHASE",
|
|
78
|
+
AUTHN = "AUTHN",
|
|
79
|
+
AUTHZ = "AUTHZ",
|
|
80
|
+
STATS = "STATS",
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export enum ImagePullPolicy {
|
|
84
|
+
Always = "Always",
|
|
85
|
+
IfNotPresent = "IfNotPresent",
|
|
86
|
+
}
|
|
87
|
+
|
|
65
88
|
|
|
66
89
|
type BaseIstioResource = {
|
|
67
90
|
type?: ResourceType
|
|
@@ -223,6 +246,33 @@ export type ListServiceGovern = {
|
|
|
223
246
|
port?: number
|
|
224
247
|
lb?: LB
|
|
225
248
|
updateTime?: number
|
|
249
|
+
protocol?: GovernProtocol
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export type UpdateServiceWasmPluginReq = {
|
|
253
|
+
workspaceId?: string
|
|
254
|
+
meshId?: string
|
|
255
|
+
namespaceName?: string
|
|
256
|
+
serviceName?: string
|
|
257
|
+
port?: number
|
|
258
|
+
wasmPlugin?: WasmPlugin[]
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export type UpdateServiceWasmPluginRes = {
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export type GetServiceWasmPluginReq = {
|
|
265
|
+
workspaceId?: string
|
|
266
|
+
meshId?: string
|
|
267
|
+
namespaceName?: string
|
|
268
|
+
serviceName?: string
|
|
269
|
+
port?: number
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export type GetServiceWasmPluginRes = {
|
|
273
|
+
serviceName?: string
|
|
274
|
+
port?: number
|
|
275
|
+
wasmPlugin?: WasmPlugin[]
|
|
226
276
|
}
|
|
227
277
|
|
|
228
278
|
export type UpdateServiceGovernReq = {
|
|
@@ -231,9 +281,51 @@ export type UpdateServiceGovernReq = {
|
|
|
231
281
|
namespaceName?: string
|
|
232
282
|
serviceName?: string
|
|
233
283
|
port?: number
|
|
284
|
+
protocol?: GovernProtocol
|
|
234
285
|
lb?: LB
|
|
235
286
|
outlierDetection?: OutlierDetection
|
|
236
287
|
connectionPool?: ConnectionPool
|
|
288
|
+
rewrite?: HTTPRewrite
|
|
289
|
+
timeout?: GoogleProtobufDuration.Duration
|
|
290
|
+
fault?: HTTPFaultInjection
|
|
291
|
+
retries?: HTTPRetry
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export type HTTPRewrite = {
|
|
295
|
+
uri?: string
|
|
296
|
+
authority?: string
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export type HTTPFaultInjection = {
|
|
300
|
+
delay?: HTTPFaultInjection_Delay
|
|
301
|
+
abort?: HTTPFaultInjection_Abort
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export type HTTPFaultInjection_Delay = {
|
|
305
|
+
percentage?: number
|
|
306
|
+
fixedDelay?: GoogleProtobufDuration.Duration
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
type BaseHTTPFaultInjection_Abort = {
|
|
311
|
+
percentage?: number
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type HTTPFaultInjection_Abort = BaseHTTPFaultInjection_Abort
|
|
315
|
+
& OneOf<{ httpStatus: number; grpcStatus: string; http2Error: string }>
|
|
316
|
+
|
|
317
|
+
export type HTTPRetry = {
|
|
318
|
+
attempts?: number
|
|
319
|
+
perTryTimeout?: GoogleProtobufDuration.Duration
|
|
320
|
+
retryOn?: string
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
export type WasmPlugin = {
|
|
324
|
+
wasmPluginName?: string
|
|
325
|
+
imagePullPolicy?: ImagePullPolicy
|
|
326
|
+
imagePullSecret?: string
|
|
327
|
+
pluginConfig?: {[key: string]: string}
|
|
328
|
+
phase?: WasmPluginPhase
|
|
237
329
|
}
|
|
238
330
|
|
|
239
331
|
export type OutlierDetection = {
|
|
@@ -260,12 +352,18 @@ export type GetServiceGovernReq = {
|
|
|
260
352
|
namespaceName?: string
|
|
261
353
|
serviceName?: string
|
|
262
354
|
port?: number
|
|
355
|
+
protocol?: GovernProtocol
|
|
263
356
|
}
|
|
264
357
|
|
|
265
358
|
export type GetServiceGovernRes = {
|
|
266
359
|
serviceName?: string
|
|
267
360
|
port?: number
|
|
361
|
+
protocol?: GovernProtocol
|
|
268
362
|
lb?: LB
|
|
269
363
|
outlierDetection?: OutlierDetection
|
|
270
364
|
connectionPool?: ConnectionPool
|
|
365
|
+
rewrite?: HTTPRewrite
|
|
366
|
+
timeout?: GoogleProtobufDuration.Duration
|
|
367
|
+
fault?: HTTPFaultInjection
|
|
368
|
+
retries?: HTTPRetry
|
|
271
369
|
}
|
|
@@ -248,4 +248,14 @@ export type GetRLSRuleReq = {
|
|
|
248
248
|
workspaceId?: string
|
|
249
249
|
pluginName?: string
|
|
250
250
|
domain?: string
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export type SkoalaPluginUpdateReq = {
|
|
254
|
+
workspaceId?: string
|
|
255
|
+
pluginName?: string
|
|
256
|
+
add?: boolean
|
|
257
|
+
pluginUsage?: PluginUsage
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export type SkoalaPluginUpdateRes = {
|
|
251
261
|
}
|
|
@@ -54,22 +54,11 @@ export type AuthorizationPolicy = {
|
|
|
54
54
|
authPluginName?: string
|
|
55
55
|
disabled?: boolean
|
|
56
56
|
context?: {[key: string]: string}
|
|
57
|
-
authServer?: string
|
|
58
|
-
failOpen?: boolean
|
|
59
|
-
responseTimeout?: string
|
|
60
|
-
maxRequestBytes?: number
|
|
61
|
-
allowPartialMessage?: boolean
|
|
62
|
-
packAsBytes?: boolean
|
|
63
57
|
}
|
|
64
58
|
|
|
65
59
|
export type JwtProvider = {
|
|
66
60
|
jwtPluginName?: string
|
|
67
|
-
audiences?: string[]
|
|
68
61
|
default?: boolean
|
|
69
|
-
forwardJWT?: boolean
|
|
70
|
-
issuer?: string
|
|
71
|
-
name?: string
|
|
72
|
-
remoteJwks?: RemoteJWKS
|
|
73
62
|
}
|
|
74
63
|
|
|
75
64
|
export type RemoteJWKS = {
|
|
@@ -446,10 +446,16 @@ export class Mesh {
|
|
|
446
446
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
447
447
|
}
|
|
448
448
|
static UpdateServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes> {
|
|
449
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
449
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/protocols/${req["protocol"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
450
450
|
}
|
|
451
451
|
static GetServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.GetServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceGovernRes> {
|
|
452
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.GetServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
452
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.GetServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/protocols/${req["protocol"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port", "protocol"])}`, {...initReq, method: "GET"})
|
|
453
|
+
}
|
|
454
|
+
static UpdateServiceWasmPlugin(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginRes> {
|
|
455
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginReq, SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/wasmplugin`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
456
|
+
}
|
|
457
|
+
static GetServiceWasmPlugin(req: SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginRes> {
|
|
458
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginReq, SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/wasmplugin?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
453
459
|
}
|
|
454
460
|
}
|
|
455
461
|
export class Plugin {
|
|
@@ -690,4 +696,7 @@ export class SkoalaPlugin {
|
|
|
690
696
|
static GetRLSDomainRules(req: SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes> {
|
|
691
697
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}/domain/${req["domain"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName", "domain"])}`, {...initReq, method: "GET"})
|
|
692
698
|
}
|
|
699
|
+
static SkoalaPluginUsageUpdate(req: SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes> {
|
|
700
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}/usage`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
701
|
+
}
|
|
693
702
|
}
|