@kinotic-ai/system-api 5.0.0-beta.1
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.
- package/README.md +16 -0
- package/dist/index.cjs +413 -0
- package/dist/index.d.cts +622 -0
- package/dist/index.d.ts +622 -0
- package/dist/index.js +374 -0
- package/package.json +51 -0
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @kinotic-ai/system-api
|
|
2
|
+
|
|
3
|
+
Client API for the Kinotic platform's **system plane**: the node and workload orchestration
|
|
4
|
+
services addressed in the `system` zone. Consumed by platform machines (the vm-manager) and
|
|
5
|
+
system tooling — never by customer applications.
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { Kinotic } from '@kinotic-ai/core'
|
|
9
|
+
import { SystemApiPlugin } from '@kinotic-ai/system-api'
|
|
10
|
+
|
|
11
|
+
Kinotic.use(SystemApiPlugin)
|
|
12
|
+
await Kinotic.connect()
|
|
13
|
+
await Kinotic.workloadOrchestration.deployWorkload(workload)
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The management plane's client API lives in `@kinotic-ai/management-api`.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
var import_node_module = require("node:module");
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
function __accessProp(key) {
|
|
7
|
+
return this[key];
|
|
8
|
+
}
|
|
9
|
+
var __toCommonJS = (from) => {
|
|
10
|
+
var entry = (__moduleCache ??= new WeakMap).get(from), desc;
|
|
11
|
+
if (entry)
|
|
12
|
+
return entry;
|
|
13
|
+
entry = __defProp({}, "__esModule", { value: true });
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (var key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(entry, key))
|
|
17
|
+
__defProp(entry, key, {
|
|
18
|
+
get: __accessProp.bind(from, key),
|
|
19
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
__moduleCache.set(from, entry);
|
|
23
|
+
return entry;
|
|
24
|
+
};
|
|
25
|
+
var __moduleCache;
|
|
26
|
+
var __returnValue = (v) => v;
|
|
27
|
+
function __exportSetter(name, newValue) {
|
|
28
|
+
this[name] = __returnValue.bind(null, newValue);
|
|
29
|
+
}
|
|
30
|
+
var __export = (target, all) => {
|
|
31
|
+
for (var name in all)
|
|
32
|
+
__defProp(target, name, {
|
|
33
|
+
get: all[name],
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
set: __exportSetter.bind(all, name)
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
// packages/system-api/src/index.ts
|
|
41
|
+
var exports_src = {};
|
|
42
|
+
__export(exports_src, {
|
|
43
|
+
WorkloadStatus: () => WorkloadStatus,
|
|
44
|
+
WorkloadServiceProxy: () => WorkloadServiceProxy,
|
|
45
|
+
WorkloadOrchestrationService: () => WorkloadOrchestrationService,
|
|
46
|
+
Workload: () => Workload,
|
|
47
|
+
VmProviderType: () => VmProviderType,
|
|
48
|
+
VmNodeStatusType: () => VmNodeStatusType,
|
|
49
|
+
VmNodeStatus: () => VmNodeStatus,
|
|
50
|
+
VmNodeServiceProxy: () => VmNodeServiceProxy,
|
|
51
|
+
VmNodeRegistration: () => VmNodeRegistration,
|
|
52
|
+
VmNodeOrchestrationServiceProxy: () => VmNodeOrchestrationServiceProxy,
|
|
53
|
+
VmNode: () => VmNode,
|
|
54
|
+
SystemOrganizationService: () => SystemOrganizationService,
|
|
55
|
+
SystemApiPlugin: () => SystemApiPlugin,
|
|
56
|
+
SingleLoggerLevelsDescriptor: () => SingleLoggerLevelsDescriptor,
|
|
57
|
+
SYSTEM_API_ZONE: () => import_management_api8.SYSTEM_API_ZONE,
|
|
58
|
+
PortProtocol: () => PortProtocol,
|
|
59
|
+
NetworkPolicy: () => NetworkPolicy,
|
|
60
|
+
NetworkMode: () => NetworkMode,
|
|
61
|
+
LoggersDescriptor: () => LoggersDescriptor,
|
|
62
|
+
LoggerLevelsDescriptor: () => LoggerLevelsDescriptor,
|
|
63
|
+
LogPolicy: () => LogPolicy,
|
|
64
|
+
LogManager: () => LogManager,
|
|
65
|
+
LogLevel: () => LogLevel,
|
|
66
|
+
KinoticNodeInfo: () => KinoticNodeInfo,
|
|
67
|
+
KinoticClusterInfoService: () => KinoticClusterInfoService,
|
|
68
|
+
KinoticClusterInfo: () => KinoticClusterInfo,
|
|
69
|
+
GroupLoggerLevelsDescriptor: () => GroupLoggerLevelsDescriptor
|
|
70
|
+
});
|
|
71
|
+
module.exports = __toCommonJS(exports_src);
|
|
72
|
+
var import_management_api8 = require("@kinotic-ai/management-api");
|
|
73
|
+
|
|
74
|
+
// packages/system-api/src/api/model/workload/LogPolicy.ts
|
|
75
|
+
class LogPolicy {
|
|
76
|
+
maxSizeMb = 10;
|
|
77
|
+
maxFiles = 3;
|
|
78
|
+
}
|
|
79
|
+
// packages/system-api/src/api/model/workload/NetworkMode.ts
|
|
80
|
+
var NetworkMode;
|
|
81
|
+
((NetworkMode2) => {
|
|
82
|
+
NetworkMode2["ENABLED"] = "ENABLED";
|
|
83
|
+
NetworkMode2["DISABLED"] = "DISABLED";
|
|
84
|
+
})(NetworkMode ||= {});
|
|
85
|
+
// packages/system-api/src/api/model/workload/NetworkPolicy.ts
|
|
86
|
+
class NetworkPolicy {
|
|
87
|
+
mode = "ENABLED" /* ENABLED */;
|
|
88
|
+
allowedHosts = [];
|
|
89
|
+
}
|
|
90
|
+
// packages/system-api/src/api/model/workload/PortProtocol.ts
|
|
91
|
+
var PortProtocol;
|
|
92
|
+
((PortProtocol2) => {
|
|
93
|
+
PortProtocol2["TCP"] = "TCP";
|
|
94
|
+
PortProtocol2["UDP"] = "UDP";
|
|
95
|
+
})(PortProtocol ||= {});
|
|
96
|
+
// packages/system-api/src/api/model/workload/VmNodeStatusType.ts
|
|
97
|
+
var VmNodeStatusType;
|
|
98
|
+
((VmNodeStatusType2) => {
|
|
99
|
+
VmNodeStatusType2["ONLINE"] = "ONLINE";
|
|
100
|
+
VmNodeStatusType2["OFFLINE"] = "OFFLINE";
|
|
101
|
+
VmNodeStatusType2["DRAINING"] = "DRAINING";
|
|
102
|
+
})(VmNodeStatusType ||= {});
|
|
103
|
+
|
|
104
|
+
// packages/system-api/src/api/model/workload/VmNodeStatus.ts
|
|
105
|
+
class VmNodeStatus {
|
|
106
|
+
type = "ONLINE" /* ONLINE */;
|
|
107
|
+
healthMessage = null;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// packages/system-api/src/api/model/workload/VmProviderType.ts
|
|
111
|
+
var VmProviderType;
|
|
112
|
+
((VmProviderType2) => {
|
|
113
|
+
VmProviderType2["BOXLITE"] = "BOXLITE";
|
|
114
|
+
VmProviderType2["CLOUD_HYPERVISOR"] = "CLOUD_HYPERVISOR";
|
|
115
|
+
})(VmProviderType ||= {});
|
|
116
|
+
|
|
117
|
+
// packages/system-api/src/api/model/workload/VmNode.ts
|
|
118
|
+
class VmNode {
|
|
119
|
+
id;
|
|
120
|
+
name;
|
|
121
|
+
hostname;
|
|
122
|
+
status = new VmNodeStatus;
|
|
123
|
+
providerType = "BOXLITE" /* BOXLITE */;
|
|
124
|
+
totalCpus = 0;
|
|
125
|
+
totalMemoryMb = 0;
|
|
126
|
+
totalDiskMb = 0;
|
|
127
|
+
allocatedCpus = 0;
|
|
128
|
+
allocatedMemoryMb = 0;
|
|
129
|
+
allocatedDiskMb = 0;
|
|
130
|
+
lastSeen = null;
|
|
131
|
+
workloadDataDir = null;
|
|
132
|
+
constructor(id, name, hostname) {
|
|
133
|
+
this.id = id;
|
|
134
|
+
this.name = name;
|
|
135
|
+
this.hostname = hostname;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
// packages/system-api/src/api/model/workload/WorkloadStatus.ts
|
|
139
|
+
var WorkloadStatus;
|
|
140
|
+
((WorkloadStatus2) => {
|
|
141
|
+
WorkloadStatus2["PENDING"] = "PENDING";
|
|
142
|
+
WorkloadStatus2["STARTING"] = "STARTING";
|
|
143
|
+
WorkloadStatus2["RUNNING"] = "RUNNING";
|
|
144
|
+
WorkloadStatus2["STOPPING"] = "STOPPING";
|
|
145
|
+
WorkloadStatus2["STOPPED"] = "STOPPED";
|
|
146
|
+
WorkloadStatus2["FAILED"] = "FAILED";
|
|
147
|
+
})(WorkloadStatus ||= {});
|
|
148
|
+
|
|
149
|
+
// packages/system-api/src/api/model/workload/Workload.ts
|
|
150
|
+
class Workload {
|
|
151
|
+
id = null;
|
|
152
|
+
name;
|
|
153
|
+
description;
|
|
154
|
+
nodeId = null;
|
|
155
|
+
organizationId = null;
|
|
156
|
+
applicationId = null;
|
|
157
|
+
image;
|
|
158
|
+
vcpus = 1;
|
|
159
|
+
memoryMb = 512;
|
|
160
|
+
diskSizeMb = 1024;
|
|
161
|
+
network = new NetworkPolicy;
|
|
162
|
+
logPolicy = new LogPolicy;
|
|
163
|
+
detached = true;
|
|
164
|
+
autoRemove = false;
|
|
165
|
+
status = "PENDING" /* PENDING */;
|
|
166
|
+
exitCode = null;
|
|
167
|
+
environment = {};
|
|
168
|
+
secrets = {};
|
|
169
|
+
portMappings = [];
|
|
170
|
+
volumeMounts = [];
|
|
171
|
+
entrypoint = [];
|
|
172
|
+
cmd = [];
|
|
173
|
+
created = null;
|
|
174
|
+
updated = null;
|
|
175
|
+
constructor(name, image) {
|
|
176
|
+
this.name = name;
|
|
177
|
+
this.image = image;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
// packages/system-api/src/api/model/VmNodeRegistration.ts
|
|
181
|
+
class VmNodeRegistration {
|
|
182
|
+
id;
|
|
183
|
+
name;
|
|
184
|
+
hostname;
|
|
185
|
+
providerType = "BOXLITE" /* BOXLITE */;
|
|
186
|
+
totalCpus = 0;
|
|
187
|
+
totalMemoryMb = 0;
|
|
188
|
+
totalDiskMb = 0;
|
|
189
|
+
workloadDataDir = null;
|
|
190
|
+
constructor(id, name, hostname) {
|
|
191
|
+
this.id = id;
|
|
192
|
+
this.name = name;
|
|
193
|
+
this.hostname = hostname;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// packages/system-api/src/api/services/IVmNodeService.ts
|
|
197
|
+
var import_management_api = require("@kinotic-ai/management-api");
|
|
198
|
+
var import_core = require("@kinotic-ai/core");
|
|
199
|
+
|
|
200
|
+
class VmNodeServiceProxy extends import_core.CrudServiceProxy {
|
|
201
|
+
constructor(kinotic) {
|
|
202
|
+
super(kinotic.serviceProxy(`${import_management_api.SYSTEM_API_ZONE}~org.kinotic.system.api.services.VmNodeService`));
|
|
203
|
+
}
|
|
204
|
+
findAvailableNode(requiredCpus, requiredMemoryMb, requiredDiskMb) {
|
|
205
|
+
return this.serviceProxy.invoke("findAvailableNode", [requiredCpus, requiredMemoryMb, requiredDiskMb]);
|
|
206
|
+
}
|
|
207
|
+
syncIndex() {
|
|
208
|
+
return this.serviceProxy.invoke("syncIndex", []);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
// packages/system-api/src/api/services/IWorkloadService.ts
|
|
212
|
+
var import_management_api2 = require("@kinotic-ai/management-api");
|
|
213
|
+
var import_core2 = require("@kinotic-ai/core");
|
|
214
|
+
|
|
215
|
+
class WorkloadServiceProxy extends import_core2.CrudServiceProxy {
|
|
216
|
+
constructor(kinotic) {
|
|
217
|
+
super(kinotic.serviceProxy(`${import_management_api2.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WorkloadService`));
|
|
218
|
+
}
|
|
219
|
+
async findAllForNode(nodeId, pageable) {
|
|
220
|
+
const page = await this.findAllForNodeSinglePage(nodeId, pageable);
|
|
221
|
+
return new import_core2.FunctionalIterablePage(pageable, page, (pageable2) => this.findAllForNodeSinglePage(nodeId, pageable2));
|
|
222
|
+
}
|
|
223
|
+
findAllForNodeSinglePage(nodeId, pageable) {
|
|
224
|
+
return this.serviceProxy.invoke("findAllForNode", [nodeId, pageable]);
|
|
225
|
+
}
|
|
226
|
+
countForNode(nodeId) {
|
|
227
|
+
return this.serviceProxy.invoke("countForNode", [nodeId]);
|
|
228
|
+
}
|
|
229
|
+
syncIndex() {
|
|
230
|
+
return this.serviceProxy.invoke("syncIndex", []);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
// packages/system-api/src/api/services/IWorkloadOrchestrationService.ts
|
|
234
|
+
var import_management_api3 = require("@kinotic-ai/management-api");
|
|
235
|
+
|
|
236
|
+
class WorkloadOrchestrationService {
|
|
237
|
+
serviceProxy;
|
|
238
|
+
constructor(kinotic) {
|
|
239
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api3.SYSTEM_API_ZONE}~org.kinotic.system.api.services.WorkloadOrchestrationService`);
|
|
240
|
+
}
|
|
241
|
+
deployWorkload(workload) {
|
|
242
|
+
return this.serviceProxy.invoke("deployWorkload", [workload]);
|
|
243
|
+
}
|
|
244
|
+
restartWorkload(workloadId) {
|
|
245
|
+
return this.serviceProxy.invoke("restartWorkload", [workloadId]);
|
|
246
|
+
}
|
|
247
|
+
stopWorkload(workloadId) {
|
|
248
|
+
return this.serviceProxy.invoke("stopWorkload", [workloadId]);
|
|
249
|
+
}
|
|
250
|
+
destroyWorkload(workloadId) {
|
|
251
|
+
return this.serviceProxy.invoke("destroyWorkload", [workloadId]);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
// packages/system-api/src/api/services/VmNodeOrchestrationServiceProxy.ts
|
|
255
|
+
var import_management_api4 = require("@kinotic-ai/management-api");
|
|
256
|
+
|
|
257
|
+
class VmNodeOrchestrationServiceProxy {
|
|
258
|
+
serviceProxy;
|
|
259
|
+
constructor(kinotic) {
|
|
260
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api4.SYSTEM_API_ZONE}~org.kinotic.system.api.services.VmNodeOrchestrationService`);
|
|
261
|
+
}
|
|
262
|
+
registerNode(registration) {
|
|
263
|
+
return this.serviceProxy.invoke("registerNode", [registration]);
|
|
264
|
+
}
|
|
265
|
+
heartbeat(nodeId, problems) {
|
|
266
|
+
return this.serviceProxy.invoke("heartbeat", [nodeId, problems]);
|
|
267
|
+
}
|
|
268
|
+
reportWorkloadStatus(nodeId, reports) {
|
|
269
|
+
return this.serviceProxy.invoke("reportWorkloadStatus", [nodeId, reports]);
|
|
270
|
+
}
|
|
271
|
+
deregisterNode(nodeId) {
|
|
272
|
+
return this.serviceProxy.invoke("deregisterNode", [nodeId]);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
// packages/system-api/src/api/services/LogManager.ts
|
|
276
|
+
var import_management_api5 = require("@kinotic-ai/management-api");
|
|
277
|
+
|
|
278
|
+
// packages/system-api/src/api/services/ILogManager.ts
|
|
279
|
+
var LogLevel;
|
|
280
|
+
((LogLevel2) => {
|
|
281
|
+
LogLevel2["TRACE"] = "TRACE";
|
|
282
|
+
LogLevel2["DEBUG"] = "DEBUG";
|
|
283
|
+
LogLevel2["INFO"] = "INFO";
|
|
284
|
+
LogLevel2["WARN"] = "WARN";
|
|
285
|
+
LogLevel2["ERROR"] = "ERROR";
|
|
286
|
+
LogLevel2["FATAL"] = "FATAL";
|
|
287
|
+
LogLevel2["OFF"] = "OFF";
|
|
288
|
+
})(LogLevel ||= {});
|
|
289
|
+
|
|
290
|
+
class LoggerLevelsDescriptor {
|
|
291
|
+
configuredLevel;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
class GroupLoggerLevelsDescriptor extends LoggerLevelsDescriptor {
|
|
295
|
+
members = [];
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
class SingleLoggerLevelsDescriptor extends LoggerLevelsDescriptor {
|
|
299
|
+
effectiveLevel;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
class LoggersDescriptor {
|
|
303
|
+
levels = [];
|
|
304
|
+
loggerLevels = new Map;
|
|
305
|
+
groups = new Map;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
// packages/system-api/src/api/services/LogManager.ts
|
|
309
|
+
class LogManager {
|
|
310
|
+
serviceProxy;
|
|
311
|
+
constructor(kinotic) {
|
|
312
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api5.SYSTEM_API_ZONE}~org.kinotic.system.api.services.LogManager`);
|
|
313
|
+
}
|
|
314
|
+
loggers(nodeId) {
|
|
315
|
+
return this.serviceProxy.invoke("loggers", null, nodeId);
|
|
316
|
+
}
|
|
317
|
+
async loggerLevels(nodeId, name) {
|
|
318
|
+
const data = await this.serviceProxy.invoke("loggerLevels", [name], nodeId);
|
|
319
|
+
let ret = null;
|
|
320
|
+
if (data.hasOwnProperty("members")) {
|
|
321
|
+
ret = new GroupLoggerLevelsDescriptor;
|
|
322
|
+
} else if (data.hasOwnProperty("effectiveLevel")) {
|
|
323
|
+
ret = new SingleLoggerLevelsDescriptor;
|
|
324
|
+
} else {
|
|
325
|
+
ret = new LoggerLevelsDescriptor;
|
|
326
|
+
}
|
|
327
|
+
Object.assign(ret, data);
|
|
328
|
+
return ret;
|
|
329
|
+
}
|
|
330
|
+
configureLogLevel(nodeId, name, level) {
|
|
331
|
+
return this.serviceProxy.invoke("configureLogLevel", [name, level], nodeId);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// packages/system-api/src/api/services/IKinoticClusterInfoService.ts
|
|
336
|
+
var import_management_api6 = require("@kinotic-ai/management-api");
|
|
337
|
+
|
|
338
|
+
class KinoticClusterInfoService {
|
|
339
|
+
serviceProxy;
|
|
340
|
+
constructor(kinotic) {
|
|
341
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api6.SYSTEM_API_ZONE}~org.kinotic.system.api.services.KinoticClusterInfoService`);
|
|
342
|
+
}
|
|
343
|
+
getClusterInfo() {
|
|
344
|
+
return this.serviceProxy.invoke("getClusterInfo");
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// packages/system-api/src/api/services/ISystemOrganizationService.ts
|
|
349
|
+
var import_management_api7 = require("@kinotic-ai/management-api");
|
|
350
|
+
|
|
351
|
+
class SystemOrganizationService {
|
|
352
|
+
serviceProxy;
|
|
353
|
+
constructor(kinotic) {
|
|
354
|
+
this.serviceProxy = kinotic.serviceProxy(`${import_management_api7.SYSTEM_API_ZONE}~org.kinotic.system.api.services.SystemOrganizationService`);
|
|
355
|
+
}
|
|
356
|
+
findOrganizations(pageable) {
|
|
357
|
+
return this.serviceProxy.invoke("findOrganizations", [pageable]);
|
|
358
|
+
}
|
|
359
|
+
searchOrganizations(searchText, pageable) {
|
|
360
|
+
return this.serviceProxy.invoke("searchOrganizations", [searchText, pageable]);
|
|
361
|
+
}
|
|
362
|
+
findOrganizationById(organizationId) {
|
|
363
|
+
return this.serviceProxy.invoke("findOrganizationById", [organizationId]);
|
|
364
|
+
}
|
|
365
|
+
countOrganizations() {
|
|
366
|
+
return this.serviceProxy.invoke("countOrganizations", []);
|
|
367
|
+
}
|
|
368
|
+
findApplications(organizationId, pageable) {
|
|
369
|
+
return this.serviceProxy.invoke("findApplications", [organizationId, pageable]);
|
|
370
|
+
}
|
|
371
|
+
findProjects(organizationId, pageable) {
|
|
372
|
+
return this.serviceProxy.invoke("findProjects", [organizationId, pageable]);
|
|
373
|
+
}
|
|
374
|
+
findMembers(organizationId, applicationId, pageable) {
|
|
375
|
+
return this.serviceProxy.invoke("findMembers", [organizationId, applicationId, pageable]);
|
|
376
|
+
}
|
|
377
|
+
searchMembers(searchText, organizationId, applicationId, pageable) {
|
|
378
|
+
return this.serviceProxy.invoke("searchMembers", [searchText, organizationId, applicationId, pageable]);
|
|
379
|
+
}
|
|
380
|
+
findPendingInvites(organizationId, applicationId, pageable) {
|
|
381
|
+
return this.serviceProxy.invoke("findPendingInvites", [organizationId, applicationId, pageable]);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// packages/system-api/src/api/SystemApiPlugin.ts
|
|
386
|
+
var SystemApiPlugin = {
|
|
387
|
+
install(kinotic) {
|
|
388
|
+
return {
|
|
389
|
+
vmNodes: new VmNodeServiceProxy(kinotic),
|
|
390
|
+
workloads: new WorkloadServiceProxy(kinotic),
|
|
391
|
+
workloadOrchestration: new WorkloadOrchestrationService(kinotic),
|
|
392
|
+
logManager: new LogManager(kinotic),
|
|
393
|
+
clusterInfo: new KinoticClusterInfoService(kinotic),
|
|
394
|
+
systemOrganizations: new SystemOrganizationService(kinotic)
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
// packages/system-api/src/api/model/KinoticClusterInfo.ts
|
|
399
|
+
class KinoticClusterInfo {
|
|
400
|
+
localNodeId = "";
|
|
401
|
+
serverNodeCount = 0;
|
|
402
|
+
topologyVersion = 0;
|
|
403
|
+
clusterState = "";
|
|
404
|
+
nodes = [];
|
|
405
|
+
active = false;
|
|
406
|
+
}
|
|
407
|
+
// packages/system-api/src/api/model/KinoticNodeInfo.ts
|
|
408
|
+
class KinoticNodeInfo {
|
|
409
|
+
nodeId = "";
|
|
410
|
+
order = 0;
|
|
411
|
+
local = false;
|
|
412
|
+
version = "";
|
|
413
|
+
}
|