@daocloud-proto/skoala 0.7.2-64 → 0.7.2-70
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.
|
@@ -65,6 +65,12 @@ export enum PluginSwitchStatus {
|
|
|
65
65
|
Off = "Off",
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
export enum Prerequisite {
|
|
69
|
+
PREREQUISITE_UNSPECIFIED = "PREREQUISITE_UNSPECIFIED",
|
|
70
|
+
InsightAgent = "InsightAgent",
|
|
71
|
+
SkoalaInit = "SkoalaInit",
|
|
72
|
+
}
|
|
73
|
+
|
|
68
74
|
export type Cluster = {
|
|
69
75
|
id?: string
|
|
70
76
|
name?: string
|
|
@@ -133,4 +133,14 @@ export type ListStorageClassesReq = {
|
|
|
133
133
|
|
|
134
134
|
export type ListStorageClassesRes = {
|
|
135
135
|
items?: string[]
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type GetPrerequisiteReq = {
|
|
139
|
+
workspaceId?: string
|
|
140
|
+
clusterName?: string
|
|
141
|
+
prerequisite?: SkoalaApiGeneralV1alpha1Common.Prerequisite
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type GetPrerequisiteRes = {
|
|
145
|
+
ok?: boolean
|
|
136
146
|
}
|
|
@@ -819,4 +819,16 @@ export type CheckNacosConfigRes = {
|
|
|
819
819
|
tenant?: string
|
|
820
820
|
type?: NacosConfigFileType
|
|
821
821
|
use?: string
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
export type GetNacosGrafanaReq = {
|
|
825
|
+
workspaceId?: string
|
|
826
|
+
clusterName?: string
|
|
827
|
+
namespaceName?: string
|
|
828
|
+
nacosName?: string
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export type GetNacosGrafanaRes = {
|
|
832
|
+
url?: string
|
|
833
|
+
zhUrl?: string
|
|
822
834
|
}
|
|
@@ -65,6 +65,9 @@ export class Skoala {
|
|
|
65
65
|
static ListClusterStorageClasses(req: SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesRes> {
|
|
66
66
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesReq, SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/storage_classes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
67
67
|
}
|
|
68
|
+
static GetPrerequisite(req: SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteRes> {
|
|
69
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteReq, SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/prerequisites/${req["prerequisite"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "prerequisite"])}`, {...initReq, method: "GET"})
|
|
70
|
+
}
|
|
68
71
|
}
|
|
69
72
|
export class Registry {
|
|
70
73
|
static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
|
|
@@ -325,6 +328,9 @@ export class Grafana {
|
|
|
325
328
|
static GetAppsSentinelGrafana(req: SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaRes> {
|
|
326
329
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaReq, SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["app"]}/grafanas/apps-sentinel?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "app"])}`, {...initReq, method: "GET"})
|
|
327
330
|
}
|
|
331
|
+
static GetNacosGrafana(req: SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaRes> {
|
|
332
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaReq, SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
333
|
+
}
|
|
328
334
|
}
|
|
329
335
|
export class Mesh {
|
|
330
336
|
static ListMeshResource(req: SkoalaApiHostedV1alpha1Mesh.ListMeshResourceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListMeshResourceRes> {
|