@daocloud-proto/skoala 0.7.2-2 → 0.7.2-20
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.
|
@@ -19,6 +19,12 @@ export enum NacosConfigFileType {
|
|
|
19
19
|
properties = "properties",
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export enum NodeType {
|
|
23
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
24
|
+
FOLLOWER = "FOLLOWER",
|
|
25
|
+
LEADER = "LEADER",
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
export enum NacosStatus {
|
|
23
29
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
24
30
|
Running = "Running",
|
|
@@ -27,12 +33,6 @@ export enum NacosStatus {
|
|
|
27
33
|
Scaling = "Scaling",
|
|
28
34
|
}
|
|
29
35
|
|
|
30
|
-
export enum NacosConditionType {
|
|
31
|
-
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
32
|
-
FOLLOWER = "FOLLOWER",
|
|
33
|
-
LEADER = "LEADER",
|
|
34
|
-
}
|
|
35
|
-
|
|
36
36
|
export enum NacosConditionStatus {
|
|
37
37
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
38
38
|
UNKNOWN = "UNKNOWN",
|
|
@@ -46,6 +46,13 @@ export enum NacosConfigType {
|
|
|
46
46
|
cluster = "cluster",
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
export enum NacosConfigHistoryBriefOpType {
|
|
50
|
+
OP_TYPE_UNSPECIFIED = "OP_TYPE_UNSPECIFIED",
|
|
51
|
+
CREATE = "CREATE",
|
|
52
|
+
UPDATE = "UPDATE",
|
|
53
|
+
DELETE = "DELETE",
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
export enum CreateNacosConfigReqPolicy {
|
|
50
57
|
POLICY_TYPE_UNSPECIFIED = "POLICY_TYPE_UNSPECIFIED",
|
|
51
58
|
ABORT = "ABORT",
|
|
@@ -103,7 +110,7 @@ export type NacosDatabase = {
|
|
|
103
110
|
}
|
|
104
111
|
|
|
105
112
|
export type NacosCondition = {
|
|
106
|
-
type?:
|
|
113
|
+
type?: NodeType
|
|
107
114
|
status?: NacosConditionStatus
|
|
108
115
|
reason?: string
|
|
109
116
|
message?: string
|
|
@@ -208,6 +215,7 @@ export type NacosServiceBrief = {
|
|
|
208
215
|
triggerFlag?: boolean
|
|
209
216
|
nacosNamespace?: string
|
|
210
217
|
insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
|
|
218
|
+
governed?: boolean
|
|
211
219
|
}
|
|
212
220
|
|
|
213
221
|
export type NacosInstanceCluster = {
|
|
@@ -605,7 +613,7 @@ export type NacosConfigHistoryBrief = {
|
|
|
605
613
|
lastId?: number
|
|
606
614
|
lastModifyTime?: string
|
|
607
615
|
md5?: string
|
|
608
|
-
opType?:
|
|
616
|
+
opType?: NacosConfigHistoryBriefOpType
|
|
609
617
|
srcIp?: string
|
|
610
618
|
srcUser?: string
|
|
611
619
|
tenant?: string
|
|
@@ -786,6 +794,8 @@ export type NacosNode = {
|
|
|
786
794
|
metadata?: string
|
|
787
795
|
abilities?: string
|
|
788
796
|
failAccessCnt?: number
|
|
797
|
+
type?: NodeType
|
|
798
|
+
modifyTime?: string
|
|
789
799
|
}
|
|
790
800
|
|
|
791
801
|
export type CheckNacosConfigReq = {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
7
8
|
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
8
9
|
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
9
10
|
|
|
@@ -79,7 +80,7 @@ export type UpdatePluginReq = {
|
|
|
79
80
|
|
|
80
81
|
export type UpdateSentinelPluginReq = {
|
|
81
82
|
enabled?: boolean
|
|
82
|
-
|
|
83
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
83
84
|
replicas?: number
|
|
84
85
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
85
86
|
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
@@ -7,8 +7,20 @@
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
8
|
|
|
9
9
|
export enum Grade {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
THREAD = "THREAD",
|
|
11
|
+
QPS = "QPS",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum Strategy {
|
|
15
|
+
Director = "Director",
|
|
16
|
+
ASSOCIATION = "ASSOCIATION",
|
|
17
|
+
LINKER = "LINKER",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum ControlBehavior {
|
|
21
|
+
FAST_FAILED = "FAST_FAILED",
|
|
22
|
+
WARM_UP = "WARM_UP",
|
|
23
|
+
WAITING_IN_QUEUE = "WAITING_IN_QUEUE",
|
|
12
24
|
}
|
|
13
25
|
|
|
14
26
|
export enum DegradeRuleGrade {
|
|
@@ -22,7 +34,7 @@ export enum AuthorityRuleStrategy {
|
|
|
22
34
|
AUTHORITY_BLACK = "AUTHORITY_BLACK",
|
|
23
35
|
}
|
|
24
36
|
|
|
25
|
-
export type
|
|
37
|
+
export type GetInsGovernReq = {
|
|
26
38
|
workspaceId?: string
|
|
27
39
|
clusterName?: string
|
|
28
40
|
namespaceName?: string
|
|
@@ -31,14 +43,24 @@ export type GetAppInstanceReq = {
|
|
|
31
43
|
instanceIp?: string
|
|
32
44
|
}
|
|
33
45
|
|
|
34
|
-
export type
|
|
46
|
+
export type GetInsGovernRes = {
|
|
35
47
|
name?: string
|
|
36
48
|
healthy?: boolean
|
|
37
|
-
|
|
49
|
+
heartbeatPort?: number
|
|
38
50
|
version?: string
|
|
39
51
|
lastHeartbeat?: string
|
|
40
52
|
}
|
|
41
53
|
|
|
54
|
+
export type DeleteInsGovernReq = {
|
|
55
|
+
workspaceId?: string
|
|
56
|
+
clusterName?: string
|
|
57
|
+
namespaceName?: string
|
|
58
|
+
sentinelName?: string
|
|
59
|
+
serviceName?: string
|
|
60
|
+
instanceIp?: string
|
|
61
|
+
heartbeatPort?: number
|
|
62
|
+
}
|
|
63
|
+
|
|
42
64
|
export type FlowRule = {
|
|
43
65
|
id?: number
|
|
44
66
|
app?: string
|
|
@@ -46,11 +68,11 @@ export type FlowRule = {
|
|
|
46
68
|
port?: number
|
|
47
69
|
limitApp?: string
|
|
48
70
|
resource?: string
|
|
49
|
-
grade?:
|
|
71
|
+
grade?: Grade
|
|
50
72
|
count?: number
|
|
51
|
-
strategy?:
|
|
73
|
+
strategy?: Strategy
|
|
52
74
|
refResource?: string
|
|
53
|
-
controlBehavior?:
|
|
75
|
+
controlBehavior?: ControlBehavior
|
|
54
76
|
warmUpPeriodSec?: number
|
|
55
77
|
maxQueueingTimeMs?: number
|
|
56
78
|
clusterMode?: boolean
|
|
@@ -237,8 +237,11 @@ export class Nacos {
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
export class Sentinel {
|
|
240
|
-
static
|
|
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
|
+
}
|
|
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"]}/sentinels/${req["sentinelName"]}/governs`, {...initReq, method: "DELETE"})
|
|
242
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)})
|