@daocloud-proto/skoala 0.7.2-10 → 0.7.2-12
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.
|
@@ -51,6 +51,16 @@ export type GetAppInstanceRes = {
|
|
|
51
51
|
lastHeartbeat?: string
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export type DeleteAppInstanceReq = {
|
|
55
|
+
workspaceId?: string
|
|
56
|
+
clusterName?: string
|
|
57
|
+
namespaceName?: string
|
|
58
|
+
sentinelName?: string
|
|
59
|
+
serviceName?: string
|
|
60
|
+
instanceIp?: string
|
|
61
|
+
heartbeatPort?: number
|
|
62
|
+
}
|
|
63
|
+
|
|
54
64
|
export type FlowRule = {
|
|
55
65
|
id?: number
|
|
56
66
|
app?: string
|
|
@@ -240,6 +240,9 @@ export class Sentinel {
|
|
|
240
240
|
static GetAppInstance(req: SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes> {
|
|
241
241
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/appinstance?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
|
|
242
242
|
}
|
|
243
|
+
static DeleteAppInstance(req: SkoalaApiHostedV1alpha1Sentinel.DeleteAppInstanceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
244
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAppInstanceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/appinstance`, {...initReq, method: "DELETE"})
|
|
245
|
+
}
|
|
243
246
|
static CreateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
244
247
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
245
248
|
}
|