@daocloud-proto/skoala 0.7.2 → 0.8.0-6

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.
@@ -59,6 +59,18 @@ export enum TimeUnit {
59
59
  Second = "Second",
60
60
  }
61
61
 
62
+ export enum PluginSwitchStatus {
63
+ PLUGIN_SWITCH_STATUS_UNSPECIFIED = "PLUGIN_SWITCH_STATUS_UNSPECIFIED",
64
+ On = "On",
65
+ Off = "Off",
66
+ }
67
+
68
+ export enum Prerequisite {
69
+ PREREQUISITE_UNSPECIFIED = "PREREQUISITE_UNSPECIFIED",
70
+ InsightAgent = "InsightAgent",
71
+ SkoalaInit = "SkoalaInit",
72
+ }
73
+
62
74
  export type Cluster = {
63
75
  id?: string
64
76
  name?: string
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum DashboardType {
8
+ DASHBOARD_TYPE_UNSPECIFIED = "DASHBOARD_TYPE_UNSPECIFIED",
9
+ AppsSentinel = "AppsSentinel",
10
+ SesameContour = "SesameContour",
11
+ SesameEnvoy = "SesameEnvoy",
12
+ Nacos = "Nacos",
13
+ }
@@ -71,6 +71,7 @@ export type ListMeshServiceReq = {
71
71
  workspaceId?: string
72
72
  meshId?: string
73
73
  namespaceName?: string[]
74
+ serviceName?: string
74
75
  page?: number
75
76
  pageSize?: number
76
77
  }
@@ -132,4 +133,14 @@ export type ListStorageClassesReq = {
132
133
 
133
134
  export type ListStorageClassesRes = {
134
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
135
146
  }
@@ -3,6 +3,8 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
+
7
+ import * as SkoalaApiGeneralV1alpha1Common from "./common.pb"
6
8
  export type Version = {
7
9
  version?: string
8
10
  gitCommit?: string
@@ -12,4 +14,8 @@ export type Version = {
12
14
 
13
15
  export type GetVersionRes = {
14
16
  version?: Version
17
+ }
18
+
19
+ export type GetHiveChartsRes = {
20
+ nacos?: SkoalaApiGeneralV1alpha1Common.Chart
15
21
  }
@@ -44,6 +44,10 @@ export type SearchLogRes = {
44
44
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
45
45
  }
46
46
 
47
+ export type ExportLogURLRes = {
48
+ url?: string
49
+ }
50
+
47
51
  export type LogResult = {
48
52
  authority?: string
49
53
  method?: string
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
8
8
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
9
+ import * as SkoalaApiGeneralV1alpha1Grafana from "../../general/v1alpha1/grafana.pb"
9
10
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
10
11
  import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
11
12
 
@@ -81,6 +82,11 @@ export enum LogLogLevel {
81
82
  Off = "Off",
82
83
  }
83
84
 
85
+ export enum ListGatewayPodContainerReqComponentType {
86
+ contour = "contour",
87
+ envoy = "envoy",
88
+ }
89
+
84
90
  export type Node = {
85
91
  total?: number
86
92
  online?: number
@@ -135,6 +141,12 @@ export type GetGatewayReq = {
135
141
  gatewayName?: string
136
142
  }
137
143
 
144
+ export type GetGatewayChartsRes = {
145
+ sesame?: SkoalaApiGeneralV1alpha1Common.Chart
146
+ rls?: SkoalaApiGeneralV1alpha1Common.Chart
147
+ authz?: SkoalaApiGeneralV1alpha1Common.Chart
148
+ }
149
+
138
150
  export type GetGatewayRes = {
139
151
  gateways?: Gateway
140
152
  }
@@ -223,6 +235,7 @@ export type NormalConfig = {
223
235
  }
224
236
 
225
237
  export type GatewayConfig = {
238
+ chart?: SkoalaApiGeneralV1alpha1Common.Chart
226
239
  normal?: NormalConfig
227
240
  advanced?: AdvancedConfig
228
241
  }
@@ -340,6 +353,23 @@ export type GatewayDiagnosticReq = {
340
353
  diagnostic?: GatewayDiagnostic
341
354
  }
342
355
 
356
+ export type ListGatewayPodContainerReq = {
357
+ workspaceId?: string
358
+ clusterName?: string
359
+ namespaceName?: string
360
+ gatewayName?: string
361
+ component?: ListGatewayPodContainerReqComponentType
362
+ }
363
+
364
+ export type ListGatewayPodContainerRes = {
365
+ items?: PodContainers[]
366
+ }
367
+
368
+ export type PodContainers = {
369
+ podName?: string
370
+ containerName?: string[]
371
+ }
372
+
343
373
  export type PodSummary = {
344
374
  podName?: string
345
375
  namespaceName?: string
@@ -455,4 +485,17 @@ export type Alert = {
455
485
  startTime?: number
456
486
  endTime?: number
457
487
  stats?: {[key: string]: string}
488
+ }
489
+
490
+ export type GetGatewayMetricDashboardReq = {
491
+ workspaceId?: string
492
+ clusterName?: string
493
+ namespaceName?: string
494
+ gatewayName?: string
495
+ dashboardType?: SkoalaApiGeneralV1alpha1Grafana.DashboardType
496
+ }
497
+
498
+ export type GetGatewayMetricDashboardRes = {
499
+ url?: string
500
+ zhUrl?: string
458
501
  }
@@ -0,0 +1,113 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
+ export type GatewayRLSRule = {
10
+ unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
11
+ requestsPerUnit?: number
12
+ }
13
+
14
+ export type SwitchGatewayRLSReq = {
15
+ workspaceId?: string
16
+ clusterName?: string
17
+ namespaceName?: string
18
+ gatewayName?: string
19
+ switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
20
+ }
21
+
22
+ export type GetGatewayRLSReq = {
23
+ workspaceId?: string
24
+ clusterName?: string
25
+ namespaceName?: string
26
+ gatewayName?: string
27
+ }
28
+
29
+ export type GetGatewayRLSRes = {
30
+ switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
31
+ }
32
+
33
+ export type SetGatewayRLSConfigReq = {
34
+ workspaceId?: string
35
+ clusterName?: string
36
+ namespaceName?: string
37
+ gatewayName?: string
38
+ config?: GatewayPluginConfig
39
+ }
40
+
41
+ export type GetGatewayRLSConfigReq = {
42
+ workspaceId?: string
43
+ clusterName?: string
44
+ namespaceName?: string
45
+ gatewayName?: string
46
+ }
47
+
48
+ export type GetGatewayRLSConfigRes = {
49
+ config?: GatewayPluginConfig
50
+ }
51
+
52
+ export type SetGatewayRLSRuleReq = {
53
+ workspaceId?: string
54
+ clusterName?: string
55
+ namespaceName?: string
56
+ gatewayName?: string
57
+ rule?: GatewayRLSRule
58
+ }
59
+
60
+ export type GetGatewayRLSRuleReq = {
61
+ workspaceId?: string
62
+ clusterName?: string
63
+ namespaceName?: string
64
+ gatewayName?: string
65
+ }
66
+
67
+ export type GetGatewayRLSRuleRes = {
68
+ rule?: GatewayRLSRule
69
+ }
70
+
71
+ export type GatewayPluginConfig = {
72
+ chart?: SkoalaApiGeneralV1alpha1Common.Chart
73
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
74
+ replicas?: number
75
+ }
76
+
77
+ export type SwitchGatewayAuthzReq = {
78
+ workspaceId?: string
79
+ clusterName?: string
80
+ namespaceName?: string
81
+ gatewayName?: string
82
+ switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
83
+ }
84
+
85
+ export type GetGatewayAuthzReq = {
86
+ workspaceId?: string
87
+ clusterName?: string
88
+ namespaceName?: string
89
+ gatewayName?: string
90
+ }
91
+
92
+ export type GetGatewayAuthzRes = {
93
+ switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
94
+ }
95
+
96
+ export type SetGatewayAuthzConfigReq = {
97
+ workspaceId?: string
98
+ clusterName?: string
99
+ namespaceName?: string
100
+ gatewayName?: string
101
+ config?: GatewayPluginConfig
102
+ }
103
+
104
+ export type GetGatewayAuthzConfigReq = {
105
+ workspaceId?: string
106
+ clusterName?: string
107
+ namespaceName?: string
108
+ gatewayName?: string
109
+ }
110
+
111
+ export type GetGatewayAuthzConfigRes = {
112
+ config?: GatewayPluginConfig
113
+ }
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+ export type GetPodContainerLogReq = {
7
+ workspaceId?: string
8
+ gatewayName?: string
9
+ clusterName?: string
10
+ namespaceName?: string
11
+ podName?: string
12
+ container?: string
13
+ startTime?: string
14
+ endTime?: string
15
+ page?: number
16
+ pageSize?: number
17
+ logSearch?: string
18
+ }
19
+
20
+ export type GetPodContainerLogResData = {
21
+ log?: string
22
+ timeStamp?: string
23
+ labels?: {[key: string]: string}
24
+ }
25
+
26
+ export type GetPodContainerLogRes = {
27
+ total?: number
28
+ items?: GetPodContainerLogResData[]
29
+ }
@@ -37,11 +37,6 @@ export enum RouteType {
37
37
  UNKNOW = "UNKNOW",
38
38
  }
39
39
 
40
- export enum APIStatus {
41
- UP = "UP",
42
- DOWN = "DOWN",
43
- }
44
-
45
40
  export type Header = {
46
41
  name?: string
47
42
  value?: string
@@ -55,6 +50,29 @@ type BaseHeaderRule = {
55
50
  export type HeaderRule = BaseHeaderRule
56
51
  & OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean }>
57
52
 
53
+ export type APIStatus = {
54
+ currentStatus?: string
55
+ description?: string
56
+ conditions?: Conditions[]
57
+ }
58
+
59
+ export type Conditions = {
60
+ errors?: Status[]
61
+ lastTransitionTime?: string
62
+ message?: string
63
+ reason?: string
64
+ status?: string
65
+ type?: string
66
+ warnings?: Status[]
67
+ }
68
+
69
+ export type Status = {
70
+ message?: string
71
+ reason?: string
72
+ status?: string
73
+ type?: string
74
+ }
75
+
58
76
  export type APIInfo = {
59
77
  apiName?: string
60
78
  apiGroup?: string
@@ -64,5 +82,7 @@ export type APIInfo = {
64
82
  routeType?: RouteType
65
83
  enabled?: boolean
66
84
  apiStatus?: APIStatus
85
+ status?: string
86
+ statusDescription?: string
67
87
  updatedAt?: string
68
88
  }
@@ -0,0 +1,112 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
9
+
10
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
11
+ type OneOf<T> =
12
+ | { [k in keyof T]?: undefined }
13
+ | (
14
+ keyof T extends infer K ?
15
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
16
+ : never)
17
+ : never);
18
+
19
+ export enum ResourceType {
20
+ RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
21
+ VIRTUAL_SERVICE = "VIRTUAL_SERVICE",
22
+ DESTINATION_RULE = "DESTINATION_RULE",
23
+ GATEWAY = "GATEWAY",
24
+ SERVICE_ENTRY = "SERVICE_ENTRY",
25
+ ENVOY_FILTER = "ENVOY_FILTER",
26
+ PROXY_CONFIG = "PROXY_CONFIG",
27
+ SIDECAR = "SIDECAR",
28
+ WORKLOAD_GROUP = "WORKLOAD_GROUP",
29
+ WORKLOAD_ENTRY = "WORKLOAD_ENTRY",
30
+ AUTHORIZATION_POLICY = "AUTHORIZATION_POLICY",
31
+ PEER_AUTHENTICATION = "PEER_AUTHENTICATION",
32
+ REQUEST_AUTHENTICATION = "REQUEST_AUTHENTICATION",
33
+ WASM_PLUGIN = "WASM_PLUGIN",
34
+ TELEMETRY = "TELEMETRY",
35
+ }
36
+
37
+ export enum OutputFormat {
38
+ OUTPUT_FORMAT_UNSPECIFIED = "OUTPUT_FORMAT_UNSPECIFIED",
39
+ YAML = "YAML",
40
+ SPEC = "SPEC",
41
+ }
42
+
43
+
44
+ type BaseIstioResource = {
45
+ type?: ResourceType
46
+ meshId?: string
47
+ namespace?: string
48
+ name?: string
49
+ createTime?: number
50
+ }
51
+
52
+ export type IstioResource = BaseIstioResource
53
+ & OneOf<{ yaml: string; spec: GoogleProtobufAny.Any }>
54
+
55
+ export type ListMeshResourceReq = {
56
+ workspaceId?: string
57
+ clusterName?: string
58
+ namespaceName?: string
59
+ meshId?: string
60
+ type?: ResourceType
61
+ output?: OutputFormat
62
+ page?: number
63
+ pageSize?: number
64
+ pageSearch?: string
65
+ }
66
+
67
+ export type ListMeshResourceRes = {
68
+ items?: IstioResource[]
69
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
70
+ }
71
+
72
+ export type GetMeshResourceReq = {
73
+ workspaceId?: string
74
+ clusterName?: string
75
+ namespaceName?: string
76
+ meshId?: string
77
+ type?: ResourceType
78
+ output?: OutputFormat
79
+ name?: string
80
+ }
81
+
82
+ export type GetMeshResourceRes = {
83
+ item?: IstioResource
84
+ }
85
+
86
+
87
+ type BaseCreateMeshResourceReq = {
88
+ workspaceId?: string
89
+ clusterName?: string
90
+ namespaceName?: string
91
+ meshId?: string
92
+ type?: ResourceType
93
+ name?: string
94
+ }
95
+
96
+ export type CreateMeshResourceReq = BaseCreateMeshResourceReq
97
+ & OneOf<{ yaml: string; spec: GoogleProtobufAny.Any }>
98
+
99
+ export type DeleteMeshResourceReq = {
100
+ workspaceId?: string
101
+ clusterName?: string
102
+ namespaceName?: string
103
+ meshId?: string
104
+ type?: ResourceType
105
+ name?: string
106
+ meshNamespace?: string
107
+ output?: OutputFormat
108
+ }
109
+
110
+ export type GetAnyType = {
111
+ type?: ResourceType
112
+ }
@@ -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,19 @@ export enum NacosConfigType {
46
46
  cluster = "cluster",
47
47
  }
48
48
 
49
+ export enum NacosServiceInstancePluginsHealthy {
50
+ UNKNOWN = "UNKNOWN",
51
+ HEALTHY = "HEALTHY",
52
+ UNHEALTHY = "UNHEALTHY",
53
+ }
54
+
55
+ export enum NacosConfigHistoryBriefOpType {
56
+ OP_TYPE_UNSPECIFIED = "OP_TYPE_UNSPECIFIED",
57
+ CREATE = "CREATE",
58
+ UPDATE = "UPDATE",
59
+ DELETE = "DELETE",
60
+ }
61
+
49
62
  export enum CreateNacosConfigReqPolicy {
50
63
  POLICY_TYPE_UNSPECIFIED = "POLICY_TYPE_UNSPECIFIED",
51
64
  ABORT = "ABORT",
@@ -80,7 +93,7 @@ export type Nacos = {
80
93
  namespaceName?: string
81
94
  type?: NacosConfigType
82
95
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
83
- nodePort?: string
96
+ ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
84
97
  status?: NacosStatus
85
98
  replicas?: number
86
99
  image?: string
@@ -103,7 +116,7 @@ export type NacosDatabase = {
103
116
  }
104
117
 
105
118
  export type NacosCondition = {
106
- type?: NacosConditionType
119
+ type?: NodeType
107
120
  status?: NacosConditionStatus
108
121
  reason?: string
109
122
  message?: string
@@ -161,10 +174,11 @@ export type NacosConfig = {
161
174
  replicas?: number
162
175
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
163
176
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
164
- nodePort?: string
177
+ ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
165
178
  databaseEnabled?: boolean
166
179
  databaseParam?: DatabaseParam
167
180
  volume?: Volume
181
+ insightEnabled?: boolean
168
182
  }
169
183
 
170
184
  export type Volume = {
@@ -208,6 +222,7 @@ export type NacosServiceBrief = {
208
222
  triggerFlag?: boolean
209
223
  nacosNamespace?: string
210
224
  insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
225
+ governed?: boolean
211
226
  }
212
227
 
213
228
  export type NacosInstanceCluster = {
@@ -245,7 +260,7 @@ export type NacosServiceInstance = {
245
260
  port?: number
246
261
  serviceName?: string
247
262
  weight?: number
248
- pluginsHealthy?: boolean
263
+ pluginsHealthy?: NacosServiceInstancePluginsHealthy
249
264
  nacosNamespace?: string
250
265
  insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
251
266
  }
@@ -398,12 +413,11 @@ export type GetNacosServiceInstanceInsightReq = {
398
413
  namespaceName?: string
399
414
  nacosNamespace?: string
400
415
  nacosGroupName?: string
401
- nacosClusterName?: string
402
416
  nacosService?: string
403
- ip?: string
404
- port?: number
405
- ephemeral?: boolean
406
417
  nacosInstanceId?: string
418
+ metadata?: {[key: string]: string}
419
+ start?: string
420
+ end?: string
407
421
  }
408
422
 
409
423
  export type GetNacosServiceInstanceInsightRes = {
@@ -605,7 +619,7 @@ export type NacosConfigHistoryBrief = {
605
619
  lastId?: number
606
620
  lastModifyTime?: string
607
621
  md5?: string
608
- opType?: string
622
+ opType?: NacosConfigHistoryBriefOpType
609
623
  srcIp?: string
610
624
  srcUser?: string
611
625
  tenant?: string
@@ -729,6 +743,7 @@ export type RollbackNacosConfigReq = {
729
743
  group?: string
730
744
  content?: string
731
745
  appName?: string
746
+ type?: NacosConfigFileType
732
747
  }
733
748
 
734
749
  export type DeleteNacosConfigReq = {
@@ -739,16 +754,7 @@ export type DeleteNacosConfigReq = {
739
754
  nacosNamespace?: string
740
755
  dataId?: string
741
756
  group?: string
742
- }
743
-
744
- export type DeleteNacosConfigBatchReq = {
745
- workspaceId?: string
746
- clusterName?: string
747
- namespaceName?: string
748
- nacosName?: string
749
- nacosNamespace?: string
750
- dataId?: string
751
- group?: string
757
+ delType?: string
752
758
  ids?: string
753
759
  }
754
760
 
@@ -768,6 +774,7 @@ export type LeaveNodeReq = {
768
774
  clusterName?: string
769
775
  namespaceName?: string
770
776
  nacosName?: string
777
+ nodeAddresses?: string[]
771
778
  }
772
779
 
773
780
  export type ReportNodeReq = {
@@ -786,6 +793,8 @@ export type NacosNode = {
786
793
  metadata?: string
787
794
  abilities?: string
788
795
  failAccessCnt?: number
796
+ type?: NodeType
797
+ modifyTime?: string
789
798
  }
790
799
 
791
800
  export type CheckNacosConfigReq = {
@@ -816,4 +825,16 @@ export type CheckNacosConfigRes = {
816
825
  tenant?: string
817
826
  type?: NacosConfigFileType
818
827
  use?: string
828
+ }
829
+
830
+ export type GetNacosGrafanaReq = {
831
+ workspaceId?: string
832
+ clusterName?: string
833
+ namespaceName?: string
834
+ nacosName?: string
835
+ }
836
+
837
+ export type GetNacosGrafanaRes = {
838
+ url?: string
839
+ zhUrl?: string
819
840
  }
@@ -4,9 +4,17 @@
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
 
11
+ export enum GetMeshPluginResMeshMode {
12
+ MESH_MODE_UNSPECIFIED = "MESH_MODE_UNSPECIFIED",
13
+ HOSTED = "HOSTED",
14
+ DEDICATED = "DEDICATED",
15
+ EXTERNAL = "EXTERNAL",
16
+ }
17
+
10
18
  export enum GetGovernResMode {
11
19
  Unknown = "Unknown",
12
20
  Sentinel = "Sentinel",
@@ -66,6 +74,11 @@ export type GetMeshPluginReq = {
66
74
 
67
75
  export type GetMeshPluginRes = {
68
76
  name?: string
77
+ enabled?: boolean
78
+ mode?: GetMeshPluginResMeshMode
79
+ ownerCluster?: string
80
+ version?: string
81
+ capacity?: string
69
82
  }
70
83
 
71
84
  export type UpdatePluginReq = {
@@ -79,7 +92,7 @@ export type UpdatePluginReq = {
79
92
 
80
93
  export type UpdateSentinelPluginReq = {
81
94
  enabled?: boolean
82
- image?: string
95
+ chart?: SkoalaApiGeneralV1alpha1Common.Chart
83
96
  replicas?: number
84
97
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
85
98
  type?: SkoalaApiGeneralV1alpha1Service.ServiceType
@@ -115,4 +128,5 @@ export type GetSentinelRes = {
115
128
 
116
129
  export type GetMeshRes = {
117
130
  name?: string
131
+ enabled?: boolean
118
132
  }