@daocloud-proto/skoala 0.27.2-134 → 0.27.2-140
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.
|
@@ -33,6 +33,13 @@ export enum SesameGatewayResourceType {
|
|
|
33
33
|
SESAME_RESOURCE_API = "SESAME_RESOURCE_API",
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
export enum MemoryUnit {
|
|
37
|
+
MEMORY_UNIT_UNSPECIFIED = "MEMORY_UNIT_UNSPECIFIED",
|
|
38
|
+
Ki = "Ki",
|
|
39
|
+
Mi = "Mi",
|
|
40
|
+
Gi = "Gi",
|
|
41
|
+
}
|
|
42
|
+
|
|
36
43
|
export enum HealthStatus {
|
|
37
44
|
HEALTH_STATUS_UNSPECIFIED = "HEALTH_STATUS_UNSPECIFIED",
|
|
38
45
|
Healthy = "Healthy",
|
|
@@ -345,10 +352,16 @@ export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
|
|
|
345
352
|
|
|
346
353
|
export type AdvancedConfig = {
|
|
347
354
|
log?: Log
|
|
355
|
+
maxHeapSize?: MaxHeapSize
|
|
348
356
|
contour?: ContourAdvancedConfig
|
|
349
357
|
envoy?: EnvoyAdvancedConfig
|
|
350
358
|
}
|
|
351
359
|
|
|
360
|
+
export type MaxHeapSize = {
|
|
361
|
+
unit?: MemoryUnit
|
|
362
|
+
size?: string
|
|
363
|
+
}
|
|
364
|
+
|
|
352
365
|
export type Log = {
|
|
353
366
|
envoyLogLevel?: LogLogLevel
|
|
354
367
|
kubernetesDebug?: number
|
|
@@ -63,6 +63,19 @@ export type GetAPIRes = {
|
|
|
63
63
|
statusDescription?: string
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export type GetAPIDocReq = {
|
|
67
|
+
workspaceId?: string
|
|
68
|
+
gatewayName?: string
|
|
69
|
+
clusterName?: string
|
|
70
|
+
namespaceName?: string
|
|
71
|
+
apiName?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type GetAPIDocRes = {
|
|
75
|
+
apiName?: string
|
|
76
|
+
apiDoc?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
66
79
|
export type APIConfig = {
|
|
67
80
|
apiName?: string
|
|
68
81
|
fqdn?: string
|
|
@@ -475,7 +475,7 @@ export class Mesh {
|
|
|
475
475
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["ports"]}/istioplugin`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
476
476
|
}
|
|
477
477
|
static ListServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRes> {
|
|
478
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
478
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
479
479
|
}
|
|
480
480
|
static GetServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRes> {
|
|
481
481
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginReq, SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/${req["pluginName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "pluginName"])}`, {...initReq, method: "GET"})
|
|
@@ -487,7 +487,7 @@ export class Mesh {
|
|
|
487
487
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/istioplugin/${req["pluginName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
488
488
|
}
|
|
489
489
|
static SortServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.SortServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
490
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.SortServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
490
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.SortServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin/sort`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
491
491
|
}
|
|
492
492
|
static ListServiceIstioPluginRLSPorts(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsRes> {
|
|
493
493
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/rls/ports?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
@@ -496,16 +496,16 @@ export class Mesh {
|
|
|
496
496
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
497
497
|
}
|
|
498
498
|
static GetServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes> {
|
|
499
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
499
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
500
500
|
}
|
|
501
501
|
static CreateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
502
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
502
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
503
503
|
}
|
|
504
504
|
static DeleteServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
505
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
505
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "DELETE"})
|
|
506
506
|
}
|
|
507
507
|
static UpdateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
508
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
508
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
509
509
|
}
|
|
510
510
|
static GetService(req: SkoalaApiHostedV1alpha1Mesh.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceRes> {
|
|
511
511
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceReq, SkoalaApiHostedV1alpha1Mesh.GetServiceRes>(`/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"})
|
|
@@ -20,4 +20,7 @@ export class GatewayAPI {
|
|
|
20
20
|
static GetGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.GetAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.GetAPIRes> {
|
|
21
21
|
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.GetAPIReq, SkoalaApiHostedV1alpha2Gateway_api.GetAPIRes>(`/apis/sesame.skoala.io/v1alpha2/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"})
|
|
22
22
|
}
|
|
23
|
+
static GetGatewayAPIDoc(req: SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocRes> {
|
|
24
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocReq, SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/doc?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
23
26
|
}
|