@daocloud-proto/skoala 0.7.2-14 → 0.7.2-18
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.
|
@@ -34,7 +34,7 @@ export enum AuthorityRuleStrategy {
|
|
|
34
34
|
AUTHORITY_BLACK = "AUTHORITY_BLACK",
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export type
|
|
37
|
+
export type GetInsGovernReq = {
|
|
38
38
|
workspaceId?: string
|
|
39
39
|
clusterName?: string
|
|
40
40
|
namespaceName?: string
|
|
@@ -43,10 +43,10 @@ export type GetAppInstanceReq = {
|
|
|
43
43
|
instanceIp?: string
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export type
|
|
46
|
+
export type GetInsGovernRes = {
|
|
47
47
|
name?: string
|
|
48
48
|
healthy?: boolean
|
|
49
|
-
|
|
49
|
+
heartbeatPort?: number
|
|
50
50
|
version?: string
|
|
51
51
|
lastHeartbeat?: string
|
|
52
52
|
}
|
|
@@ -237,11 +237,11 @@ export class Nacos {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
export class Sentinel {
|
|
240
|
-
static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.
|
|
241
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.
|
|
240
|
+
static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes> {
|
|
241
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/governs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
|
|
242
242
|
}
|
|
243
243
|
static DeleteInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.DeleteInsGovernReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
244
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteInsGovernReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
244
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteInsGovernReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/governs`, {...initReq, method: "DELETE"})
|
|
245
245
|
}
|
|
246
246
|
static CreateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
247
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)})
|