@daocloud-proto/skoala 0.7.2-74 → 0.7.2-76
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.
|
@@ -82,6 +82,11 @@ export enum LogLogLevel {
|
|
|
82
82
|
Off = "Off",
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
export enum ListGatewayPodContainerReqComponentType {
|
|
86
|
+
contour = "contour",
|
|
87
|
+
envoy = "envoy",
|
|
88
|
+
}
|
|
89
|
+
|
|
85
90
|
export type Node = {
|
|
86
91
|
total?: number
|
|
87
92
|
online?: number
|
|
@@ -348,6 +353,23 @@ export type GatewayDiagnosticReq = {
|
|
|
348
353
|
diagnostic?: GatewayDiagnostic
|
|
349
354
|
}
|
|
350
355
|
|
|
356
|
+
export type ListGatewayPodContainerReq = {
|
|
357
|
+
workspaceId?: string
|
|
358
|
+
clusterName?: string
|
|
359
|
+
namespaceName?: string
|
|
360
|
+
gatewayName?: string
|
|
361
|
+
component?: ListGatewayPodContainerReqComponentType
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export type ListGatewayPodContainerRes = {
|
|
365
|
+
items?: PodContainers[]
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export type PodContainers = {
|
|
369
|
+
podName?: string
|
|
370
|
+
containerName?: string[]
|
|
371
|
+
}
|
|
372
|
+
|
|
351
373
|
export type PodSummary = {
|
|
352
374
|
podName?: string
|
|
353
375
|
namespaceName?: string
|
|
@@ -0,0 +1,29 @@
|
|
|
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 GetPodContainerLogReq = {
|
|
7
|
+
workspaceId?: string
|
|
8
|
+
gatewayName?: string
|
|
9
|
+
clusterName?: string
|
|
10
|
+
namespaceName?: string
|
|
11
|
+
podName?: string
|
|
12
|
+
container?: string
|
|
13
|
+
startTime?: string
|
|
14
|
+
endTime?: string
|
|
15
|
+
page?: number
|
|
16
|
+
pageSize?: number
|
|
17
|
+
logSearch?: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type GetPodContainerLogResData = {
|
|
21
|
+
log?: string
|
|
22
|
+
timeStamp?: string
|
|
23
|
+
labels?: {[key: string]: string}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type GetPodContainerLogRes = {
|
|
27
|
+
total?: number
|
|
28
|
+
items?: GetPodContainerLogResData[]
|
|
29
|
+
}
|
|
@@ -16,6 +16,7 @@ import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.p
|
|
|
16
16
|
import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
|
|
17
17
|
import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
|
|
18
18
|
import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
|
|
19
|
+
import * as SkoalaApiHostedV1alpha1Gatewaylog from "../../hosted/v1alpha1/gatewaylog.pb"
|
|
19
20
|
import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
|
|
20
21
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
21
22
|
import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
|
|
@@ -403,6 +404,12 @@ export class Gateway {
|
|
|
403
404
|
static GetGatewayPod(req: SkoalaApiHostedV1alpha1Gateway.GetPodReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetPodRes> {
|
|
404
405
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetPodReq, SkoalaApiHostedV1alpha1Gateway.GetPodRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods/${req["podName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
|
|
405
406
|
}
|
|
407
|
+
static ListGatewayPodsByType(req: SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerRes> {
|
|
408
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/type/${req["component"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "component"])}`, {...initReq, method: "GET"})
|
|
409
|
+
}
|
|
410
|
+
static GetPodContainerLog(req: SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogRes> {
|
|
411
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogReq, SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pod/${req["podName"]}/container/${req["container"]}/logs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName", "container"])}`, {...initReq, method: "GET"})
|
|
412
|
+
}
|
|
406
413
|
static GetGatewayPodAlert(req: SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes> {
|
|
407
414
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/alert/pods/${req["podName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
|
|
408
415
|
}
|