@daocloud-proto/skoala 0.6.1-20 → 0.6.1-22
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.
|
@@ -92,6 +92,21 @@ export type GetNacosReq = {
|
|
|
92
92
|
|
|
93
93
|
export type GetNacosRes = {
|
|
94
94
|
nacos?: Nacos
|
|
95
|
+
plugins?: GetPluginsRes
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type GetPluginsRes = {
|
|
99
|
+
mode?: string
|
|
100
|
+
sentinel?: GetSentinelRes
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type GetSentinelRes = {
|
|
104
|
+
nodes?: number
|
|
105
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
106
|
+
port?: number
|
|
107
|
+
nodePort?: number
|
|
108
|
+
phase?: string
|
|
109
|
+
visitAddress?: string
|
|
95
110
|
}
|
|
96
111
|
|
|
97
112
|
export type UpdateNacosReq = {
|
|
@@ -234,6 +249,7 @@ export type NacosServiceInstance = {
|
|
|
234
249
|
port?: number
|
|
235
250
|
serviceName?: string
|
|
236
251
|
weight?: number
|
|
252
|
+
pluginsHealthy?: boolean
|
|
237
253
|
}
|
|
238
254
|
|
|
239
255
|
export type GetNacosServiceReq = {
|
|
@@ -78,4 +78,21 @@ export type DeleteFlowRuleRes = {
|
|
|
78
78
|
success?: boolean
|
|
79
79
|
code?: number
|
|
80
80
|
msg?: string
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type GetAppInstanceReq = {
|
|
84
|
+
workspace?: string
|
|
85
|
+
cluster?: string
|
|
86
|
+
namespace?: string
|
|
87
|
+
sentinelName?: string
|
|
88
|
+
serviceName?: string
|
|
89
|
+
instanceIp?: string
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type GetAppInstanceRes = {
|
|
93
|
+
name?: string
|
|
94
|
+
healthy?: boolean
|
|
95
|
+
port?: number
|
|
96
|
+
version?: string
|
|
97
|
+
lastHeartbeat?: string
|
|
81
98
|
}
|
|
@@ -208,6 +208,9 @@ export class Sentinel {
|
|
|
208
208
|
static DeleteFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleRes> {
|
|
209
209
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinel/${req["sentinelName"]}/flowrules/${req["flowRuleId"]}`, {...initReq, method: "DELETE"})
|
|
210
210
|
}
|
|
211
|
+
static GetAppInstance(req: SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes> {
|
|
212
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinel/${req["sentinelName"]}/appinstance?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "sentinelName"])}`, {...initReq, method: "GET"})
|
|
213
|
+
}
|
|
211
214
|
}
|
|
212
215
|
export class Gateway {
|
|
213
216
|
static ListAll(req: SkoalaApiHostedV1alpha1Gateway.ListAllGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
|