@dxos/cli 0.1.48 → 0.1.49-next.7ec9d52
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 +444 -217
- package/bin/dev +5 -4
- package/bin/dev.cmd +1 -1
- package/bin/run +1 -1
- package/config/config-default.yml +9 -11
- package/config/config-dev.yml +10 -10
- package/config/config-local.yml +2 -2
- package/config/config-staging.yml +10 -10
- package/config/config.yml +11 -11
- package/dist/src/base-command.d.ts +49 -13
- package/dist/src/base-command.d.ts.map +1 -1
- package/dist/src/base-command.js +142 -109
- package/dist/src/base-command.js.map +1 -1
- package/dist/src/commands/agent/list.d.ts +8 -0
- package/dist/src/commands/agent/list.d.ts.map +1 -0
- package/dist/src/commands/agent/list.js +37 -0
- package/dist/src/commands/agent/list.js.map +1 -0
- package/dist/src/commands/agent/restart.d.ts +7 -0
- package/dist/src/commands/agent/restart.d.ts.map +1 -0
- package/dist/src/commands/{daemon → agent}/restart.js +2 -3
- package/dist/src/commands/agent/restart.js.map +1 -0
- package/dist/src/commands/agent/run.d.ts +19 -0
- package/dist/src/commands/agent/run.d.ts.map +1 -0
- package/dist/src/commands/agent/run.js +60 -0
- package/dist/src/commands/agent/run.js.map +1 -0
- package/dist/src/commands/{daemon → agent}/start.d.ts +1 -1
- package/dist/src/commands/agent/start.d.ts.map +1 -0
- package/dist/src/commands/{daemon → agent}/start.js +3 -4
- package/dist/src/commands/agent/start.js.map +1 -0
- package/dist/src/commands/{daemon → agent}/stop.d.ts +1 -1
- package/dist/src/commands/agent/stop.d.ts.map +1 -0
- package/dist/src/commands/{daemon → agent}/stop.js +3 -4
- package/dist/src/commands/agent/stop.js.map +1 -0
- package/dist/src/commands/app/app.test.js.map +1 -1
- package/dist/src/commands/app/create.d.ts +4 -2
- package/dist/src/commands/app/create.d.ts.map +1 -1
- package/dist/src/commands/app/create.js +23 -34
- package/dist/src/commands/app/create.js.map +1 -1
- package/dist/src/commands/app/list.d.ts +1 -1
- package/dist/src/commands/app/list.d.ts.map +1 -1
- package/dist/src/commands/app/list.js +5 -12
- package/dist/src/commands/app/list.js.map +1 -1
- package/dist/src/commands/app/open.d.ts +5 -2
- package/dist/src/commands/app/open.d.ts.map +1 -1
- package/dist/src/commands/app/open.js +5 -6
- package/dist/src/commands/app/open.js.map +1 -1
- package/dist/src/commands/app/publish.d.ts +5 -3
- package/dist/src/commands/app/publish.d.ts.map +1 -1
- package/dist/src/commands/app/publish.js +31 -43
- package/dist/src/commands/app/publish.js.map +1 -1
- package/dist/src/commands/config/index.d.ts +1 -1
- package/dist/src/commands/config/index.d.ts.map +1 -1
- package/dist/src/commands/config/index.js +1 -2
- package/dist/src/commands/config/index.js.map +1 -1
- package/dist/src/commands/{daemon/run.d.ts → debug/stats.d.ts} +11 -4
- package/dist/src/commands/debug/stats.d.ts.map +1 -0
- package/dist/src/commands/debug/stats.js +31 -0
- package/dist/src/commands/debug/stats.js.map +1 -0
- package/dist/src/commands/{daemon/restart.d.ts → device/index.d.ts} +2 -2
- package/dist/src/commands/device/index.d.ts.map +1 -0
- package/dist/src/commands/device/index.js +19 -0
- package/dist/src/commands/device/index.js.map +1 -0
- package/dist/src/commands/{daemon → device}/list.d.ts +1 -1
- package/dist/src/commands/device/list.d.ts.map +1 -0
- package/dist/src/commands/device/list.js +20 -0
- package/dist/src/commands/device/list.js.map +1 -0
- package/dist/src/commands/function/exec.d.ts +10 -0
- package/dist/src/commands/function/exec.d.ts.map +1 -0
- package/dist/src/commands/function/exec.js +35 -0
- package/dist/src/commands/function/exec.js.map +1 -0
- package/dist/src/commands/function/list.d.ts +8 -0
- package/dist/src/commands/function/list.d.ts.map +1 -0
- package/dist/src/commands/function/list.js +43 -0
- package/dist/src/commands/function/list.js.map +1 -0
- package/dist/src/commands/function/logs.d.ts +10 -0
- package/dist/src/commands/function/logs.d.ts.map +1 -0
- package/dist/src/commands/function/logs.js +38 -0
- package/dist/src/commands/function/logs.js.map +1 -0
- package/dist/src/commands/halo/create.d.ts +2 -2
- package/dist/src/commands/halo/create.d.ts.map +1 -1
- package/dist/src/commands/halo/create.js +4 -5
- package/dist/src/commands/halo/create.js.map +1 -1
- package/dist/src/commands/halo/credential/add.d.ts +1 -1
- package/dist/src/commands/halo/credential/add.d.ts.map +1 -1
- package/dist/src/commands/halo/credential/add.js +1 -3
- package/dist/src/commands/halo/credential/add.js.map +1 -1
- package/dist/src/commands/halo/credential/list.d.ts +5 -2
- package/dist/src/commands/halo/credential/list.d.ts.map +1 -1
- package/dist/src/commands/halo/credential/list.js +2 -3
- package/dist/src/commands/halo/credential/list.js.map +1 -1
- package/dist/src/commands/halo/index.d.ts +1 -1
- package/dist/src/commands/halo/index.d.ts.map +1 -1
- package/dist/src/commands/halo/index.js +1 -2
- package/dist/src/commands/halo/index.js.map +1 -1
- package/dist/src/commands/halo/join.d.ts +5 -2
- package/dist/src/commands/halo/join.d.ts.map +1 -1
- package/dist/src/commands/halo/join.js +1 -2
- package/dist/src/commands/halo/join.js.map +1 -1
- package/dist/src/commands/halo/share.d.ts +5 -2
- package/dist/src/commands/halo/share.d.ts.map +1 -1
- package/dist/src/commands/halo/share.js +2 -3
- package/dist/src/commands/halo/share.js.map +1 -1
- package/dist/src/commands/kube/auth.d.ts +1 -1
- package/dist/src/commands/kube/auth.d.ts.map +1 -1
- package/dist/src/commands/kube/auth.js +2 -3
- package/dist/src/commands/kube/auth.js.map +1 -1
- package/dist/src/commands/kube/deploy.d.ts +5 -2
- package/dist/src/commands/kube/deploy.d.ts.map +1 -1
- package/dist/src/commands/kube/deploy.js +1 -2
- package/dist/src/commands/kube/deploy.js.map +1 -1
- package/dist/src/commands/reset/index.d.ts +10 -1
- package/dist/src/commands/reset/index.d.ts.map +1 -1
- package/dist/src/commands/reset/index.js +30 -9
- package/dist/src/commands/reset/index.js.map +1 -1
- package/dist/src/commands/shell/index.d.ts +1 -1
- package/dist/src/commands/shell/index.d.ts.map +1 -1
- package/dist/src/commands/shell/index.js.map +1 -1
- package/dist/src/commands/space/create.d.ts +1 -1
- package/dist/src/commands/space/create.d.ts.map +1 -1
- package/dist/src/commands/space/create.js +2 -3
- package/dist/src/commands/space/create.js.map +1 -1
- package/dist/src/commands/space/{new-epoch.d.ts → epoch.d.ts} +6 -3
- package/dist/src/commands/space/epoch.d.ts.map +1 -0
- package/dist/src/commands/space/{new-epoch.js → epoch.js} +8 -9
- package/dist/src/commands/space/epoch.js.map +1 -0
- package/dist/src/commands/space/index.d.ts +1 -1
- package/dist/src/commands/space/index.d.ts.map +1 -1
- package/dist/src/commands/space/index.js +1 -0
- package/dist/src/commands/space/index.js.map +1 -1
- package/dist/src/commands/space/invite.d.ts +1 -1
- package/dist/src/commands/space/invite.d.ts.map +1 -1
- package/dist/src/commands/space/invite.js +1 -2
- package/dist/src/commands/space/invite.js.map +1 -1
- package/dist/src/commands/space/join.d.ts +5 -2
- package/dist/src/commands/space/join.d.ts.map +1 -1
- package/dist/src/commands/space/join.js +1 -2
- package/dist/src/commands/space/join.js.map +1 -1
- package/dist/src/commands/space/list.d.ts +5 -2
- package/dist/src/commands/space/list.d.ts.map +1 -1
- package/dist/src/commands/space/list.js +2 -3
- package/dist/src/commands/space/list.js.map +1 -1
- package/dist/src/commands/space/members.d.ts +5 -2
- package/dist/src/commands/space/members.d.ts.map +1 -1
- package/dist/src/commands/space/members.js +3 -4
- package/dist/src/commands/space/members.js.map +1 -1
- package/dist/src/commands/tunnel/list.d.ts +1 -1
- package/dist/src/commands/tunnel/list.d.ts.map +1 -1
- package/dist/src/commands/tunnel/list.js +7 -16
- package/dist/src/commands/tunnel/list.js.map +1 -1
- package/dist/src/commands/tunnel/set.d.ts +5 -2
- package/dist/src/commands/tunnel/set.d.ts.map +1 -1
- package/dist/src/commands/tunnel/set.js +8 -15
- package/dist/src/commands/tunnel/set.js.map +1 -1
- package/dist/src/util/credential.js.map +1 -1
- package/dist/src/util/exec.d.ts.map +1 -1
- package/dist/src/util/exec.js.map +1 -1
- package/dist/src/util/print.d.ts +6 -0
- package/dist/src/util/print.d.ts.map +1 -1
- package/dist/src/util/print.js +33 -10
- package/dist/src/util/print.js.map +1 -1
- package/dist/src/util/provider/provider.js +2 -2
- package/dist/src/util/publish/common.d.ts +1 -1
- package/dist/src/util/publish/common.d.ts.map +1 -1
- package/dist/src/util/publish/common.js +2 -2
- package/dist/src/util/publish/common.js.map +1 -1
- package/dist/src/util/telemetry.d.ts.map +1 -1
- package/dist/src/util/telemetry.js +1 -0
- package/dist/src/util/telemetry.js.map +1 -1
- package/dist/src/util/telemetryrc.json +2 -2
- package/dist/src/util/tunnel/common.js +3 -3
- package/dist/src/util/util.d.ts +1 -0
- package/dist/src/util/util.d.ts.map +1 -1
- package/dist/src/util/util.js +11 -1
- package/dist/src/util/util.js.map +1 -1
- package/oclif.manifest.json +1433 -407
- package/package.json +24 -23
- package/dist/src/commands/daemon/list.d.ts.map +0 -1
- package/dist/src/commands/daemon/list.js +0 -19
- package/dist/src/commands/daemon/list.js.map +0 -1
- package/dist/src/commands/daemon/restart.d.ts.map +0 -1
- package/dist/src/commands/daemon/restart.js.map +0 -1
- package/dist/src/commands/daemon/run.d.ts.map +0 -1
- package/dist/src/commands/daemon/run.js +0 -33
- package/dist/src/commands/daemon/run.js.map +0 -1
- package/dist/src/commands/daemon/start.d.ts.map +0 -1
- package/dist/src/commands/daemon/start.js.map +0 -1
- package/dist/src/commands/daemon/stop.d.ts.map +0 -1
- package/dist/src/commands/daemon/stop.js.map +0 -1
- package/dist/src/commands/space/new-epoch.d.ts.map +0 -1
- package/dist/src/commands/space/new-epoch.js.map +0 -1
- package/dist/src/daemon/daemon.d.ts +0 -15
- package/dist/src/daemon/daemon.d.ts.map +0 -1
- package/dist/src/daemon/daemon.js +0 -6
- package/dist/src/daemon/daemon.js.map +0 -1
- package/dist/src/daemon/faas/api.d.ts +0 -346
- package/dist/src/daemon/faas/api.d.ts.map +0 -1
- package/dist/src/daemon/faas/api.js +0 -11
- package/dist/src/daemon/faas/api.js.map +0 -1
- package/dist/src/daemon/faas/connector.d.ts +0 -46
- package/dist/src/daemon/faas/connector.d.ts.map +0 -1
- package/dist/src/daemon/faas/connector.js +0 -185
- package/dist/src/daemon/faas/connector.js.map +0 -1
- package/dist/src/daemon/forever/forever-daemon.d.ts +0 -15
- package/dist/src/daemon/forever/forever-daemon.d.ts.map +0 -1
- package/dist/src/daemon/forever/forever-daemon.js +0 -83
- package/dist/src/daemon/forever/forever-daemon.js.map +0 -1
- package/dist/src/daemon/forever/index.d.ts +0 -2
- package/dist/src/daemon/forever/index.d.ts.map +0 -1
- package/dist/src/daemon/forever/index.js +0 -21
- package/dist/src/daemon/forever/index.js.map +0 -1
- package/dist/src/daemon/index.d.ts +0 -5
- package/dist/src/daemon/index.d.ts.map +0 -1
- package/dist/src/daemon/index.js +0 -24
- package/dist/src/daemon/index.js.map +0 -1
- package/dist/src/daemon/pm2/index.d.ts +0 -2
- package/dist/src/daemon/pm2/index.d.ts.map +0 -1
- package/dist/src/daemon/pm2/index.js +0 -21
- package/dist/src/daemon/pm2/index.js.map +0 -1
- package/dist/src/daemon/pm2/pm2-daemon.d.ts +0 -21
- package/dist/src/daemon/pm2/pm2-daemon.d.ts.map +0 -1
- package/dist/src/daemon/pm2/pm2-daemon.js +0 -107
- package/dist/src/daemon/pm2/pm2-daemon.js.map +0 -1
- package/dist/src/daemon/run-services.d.ts +0 -7
- package/dist/src/daemon/run-services.d.ts.map +0 -1
- package/dist/src/daemon/run-services.js +0 -109
- package/dist/src/daemon/run-services.js.map +0 -1
- package/dist/src/daemon/util.d.ts +0 -8
- package/dist/src/daemon/util.d.ts.map +0 -1
- package/dist/src/daemon/util.js +0 -38
- package/dist/src/daemon/util.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.49-next.7ec9d52",
|
|
4
4
|
"description": "DXOS CLI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dxos",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"@octokit/core": "^4.0.4",
|
|
31
31
|
"chalk": "^4.1.0",
|
|
32
32
|
"cli-progress": "^3.11.2",
|
|
33
|
+
"date-fns": "^2.29.3",
|
|
33
34
|
"debug": "^4.3.3",
|
|
34
35
|
"do-wrapper": "^4.5.1",
|
|
35
|
-
"forever": "^4.0.3",
|
|
36
36
|
"fs-extra": "^8.1.0",
|
|
37
37
|
"get-folder-size": "^2.0.1",
|
|
38
38
|
"inquirer": "^8.2.0",
|
|
@@ -43,31 +43,32 @@
|
|
|
43
43
|
"node-fetch": "^2.6.0",
|
|
44
44
|
"oclif": "^3.7.0",
|
|
45
45
|
"pkg-up": "^3.1.0",
|
|
46
|
-
"pm2": "^5.3.0",
|
|
47
46
|
"react": "^18.2.0",
|
|
48
47
|
"tempy": "^1.0.1",
|
|
49
48
|
"uuid": "^8.3.2",
|
|
50
49
|
"ws": "^7.4.4",
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/client
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
50
|
+
"@dxos/agent": "0.1.49-next.7ec9d52",
|
|
51
|
+
"@dxos/async": "0.1.49-next.7ec9d52",
|
|
52
|
+
"@dxos/bare-template": "0.1.49-next.7ec9d52",
|
|
53
|
+
"@dxos/client": "0.1.49-next.7ec9d52",
|
|
54
|
+
"@dxos/client-protocol": "0.1.49-next.7ec9d52",
|
|
55
|
+
"@dxos/client-services": "0.1.49-next.7ec9d52",
|
|
56
|
+
"@dxos/codec-protobuf": "0.1.49-next.7ec9d52",
|
|
57
|
+
"@dxos/config": "0.1.49-next.7ec9d52",
|
|
58
|
+
"@dxos/context": "0.1.49-next.7ec9d52",
|
|
59
|
+
"@dxos/debug": "0.1.49-next.7ec9d52",
|
|
60
|
+
"@dxos/hello-template": "0.1.49-next.7ec9d52",
|
|
61
|
+
"@dxos/keys": "0.1.49-next.7ec9d52",
|
|
62
|
+
"@dxos/log": "0.1.49-next.7ec9d52",
|
|
63
|
+
"@dxos/observable-object": "0.1.49-next.7ec9d52",
|
|
64
|
+
"@dxos/plate": "0.1.49-next.7ec9d52",
|
|
65
|
+
"@dxos/protocols": "0.1.49-next.7ec9d52",
|
|
66
|
+
"@dxos/rpc": "0.1.49-next.7ec9d52",
|
|
67
|
+
"@dxos/sentry": "0.1.49-next.7ec9d52",
|
|
68
|
+
"@dxos/tasks-template": "0.1.49-next.7ec9d52",
|
|
69
|
+
"@dxos/telemetry": "0.1.49-next.7ec9d52",
|
|
70
|
+
"@dxos/util": "0.1.49-next.7ec9d52",
|
|
71
|
+
"@dxos/websocket-rpc": "0.1.49-next.7ec9d52"
|
|
71
72
|
},
|
|
72
73
|
"devDependencies": {
|
|
73
74
|
"@oclif/test": "^2.3.11",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/daemon/list.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW;IAC3C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAqC;IAE1D,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAO1B"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//
|
|
3
|
-
// Copyright 2023 DXOS.org
|
|
4
|
-
//
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const base_command_1 = require("../../base-command");
|
|
7
|
-
class List extends base_command_1.BaseCommand {
|
|
8
|
-
async run() {
|
|
9
|
-
return await this.execWithDaemon(async (daemon) => {
|
|
10
|
-
const result = await daemon.list();
|
|
11
|
-
this.log('Daemons:', result);
|
|
12
|
-
return result;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
List.enableJsonFlag = true;
|
|
17
|
-
List.description = 'List daemons currently running.';
|
|
18
|
-
exports.default = List;
|
|
19
|
-
//# sourceMappingURL=list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/daemon/list.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qDAAiD;AAEjD,MAAqB,IAAK,SAAQ,0BAAW;IAI3C,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;YACnC,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;YAC7B,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC,CAAC;IACL,CAAC;;AATe,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,iCAAiC,CAAC;kBAF7C,IAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restart.d.ts","sourceRoot":"","sources":["../../../../src/commands/daemon/restart.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,WAAW;IAC9C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA6B;IAElD,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAO1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"restart.js","sourceRoot":"","sources":["../../../../src/commands/daemon/restart.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qDAAiD;AAEjD,MAAqB,OAAQ,SAAQ,0BAAW;IAI9C,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACzC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC3D,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;IACL,CAAC;;AATe,sBAAc,GAAG,IAAI,CAAC;AACtB,mBAAW,GAAG,yBAAyB,CAAC;kBAFrC,OAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../src/commands/daemon/run.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,WAAW;IAC1C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAyB;IAEpD,OAAgB,KAAK;;;;;MAOnB;IAEI,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAS1B"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
//
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
//
|
|
8
|
-
// Copyright 2023 DXOS.org
|
|
9
|
-
//
|
|
10
|
-
const core_1 = require("@oclif/core");
|
|
11
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
|
12
|
-
const base_command_1 = require("../../base-command");
|
|
13
|
-
const daemon_1 = require("../../daemon");
|
|
14
|
-
class Run extends base_command_1.BaseCommand {
|
|
15
|
-
async run() {
|
|
16
|
-
const { flags: { listen }, } = await this.parse(Run);
|
|
17
|
-
(0, node_assert_1.default)(this.clientConfig);
|
|
18
|
-
await (0, daemon_1.runServices)({ listen, config: this.clientConfig });
|
|
19
|
-
this.log('daemon started');
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
Run.enableJsonFlag = true;
|
|
23
|
-
Run.description = 'Run daemon process.';
|
|
24
|
-
Run.flags = {
|
|
25
|
-
...base_command_1.BaseCommand.flags,
|
|
26
|
-
listen: core_1.Flags.string({
|
|
27
|
-
description: 'Expose services.',
|
|
28
|
-
required: true,
|
|
29
|
-
multiple: true,
|
|
30
|
-
}),
|
|
31
|
-
};
|
|
32
|
-
exports.default = Run;
|
|
33
|
-
//# sourceMappingURL=run.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../../src/commands/daemon/run.ts"],"names":[],"mappings":";AAAA,EAAE;;;;;AAEF,EAAE;AACF,0BAA0B;AAC1B,EAAE;AAEF,sCAAoC;AACpC,8DAAiC;AAEjC,qDAAiD;AACjD,yCAA2C;AAE3C,MAAqB,GAAI,SAAQ,0BAAW;IAa1C,KAAK,CAAC,GAAG;QACP,MAAM,EACJ,KAAK,EAAE,EAAE,MAAM,EAAE,GAClB,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC1B,IAAA,qBAAM,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,IAAA,oBAAW,EAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;QAEzD,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAC7B,CAAC;;AApBe,kBAAc,GAAG,IAAI,CAAC;AACtB,eAAW,GAAG,qBAAqB,CAAC;AAEpC,SAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,MAAM,EAAE,YAAK,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,kBAAkB;QAC/B,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC;kBAXiB,GAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../../../src/commands/daemon/start.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW;IAC5C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA2B;IAEhD,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAO1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../../../src/commands/daemon/start.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qDAAiD;AAEjD,MAAqB,KAAM,SAAQ,0BAAW;IAI5C,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;YACvC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACzD,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC;;AATe,oBAAc,GAAG,IAAI,CAAC;AACtB,iBAAW,GAAG,uBAAuB,CAAC;kBAFnC,KAAK"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stop.d.ts","sourceRoot":"","sources":["../../../../src/commands/daemon/stop.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW;IAC3C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAA0B;IAE/C,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAQ1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stop.js","sourceRoot":"","sources":["../../../../src/commands/daemon/stop.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;AAEF,qDAAiD;AAEjD,MAAqB,IAAK,SAAQ,0BAAW;IAI3C,KAAK,CAAC,GAAG;QACP,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAChD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACtC,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAExC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC;;AAVe,mBAAc,GAAG,IAAI,CAAC;AACtB,gBAAW,GAAG,sBAAsB,CAAC;kBAFlC,IAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-epoch.d.ts","sourceRoot":"","sources":["../../../../src/commands/space/new-epoch.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,WAAW;IAC/C,OAAgB,cAAc,UAAQ;IACtC,OAAgB,WAAW,SAAuB;IAClD,OAAgB,KAAK;;;;;;;;;;;;MAGnB;IAEF,OAAgB,IAAI;;MAAmE;IAEjF,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC;CAqB1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-epoch.js","sourceRoot":"","sources":["../../../../src/commands/space/new-epoch.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,sCAAuC;AACvC,8DAAiC;AAIjC,qDAAiD;AACjD,qCAAyC;AAEzC,MAAqB,QAAS,SAAQ,0BAAW;IAU/C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC5C,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QAEnB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;YACxD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;YACnC,IAAI,CAAC,GAAG,EAAE;gBACR,GAAG,GAAG,MAAM,IAAA,kBAAW,EAAC,MAAM,CAAC,CAAC;aACjC;YAED,IAAA,qBAAM,EAAC,GAAG,CAAC,CAAC;YAEZ,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,UAAU,CAAC,GAAI,CAAC,CAAC,CAAC;YACzE,IAAI,CAAC,KAAK,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;gBACxB,OAAO;aACR;YAED,MAAM,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC;;AA7Be,uBAAc,GAAG,IAAI,CAAC;AACtB,oBAAW,GAAG,mBAAmB,CAAC;AAClC,cAAK,GAAG;IACtB,GAAG,0BAAW,CAAC,KAAK;IACpB,GAAG,SAAE,CAAC,KAAK,CAAC,KAAK,EAAE;CACpB,CAAC;AAEc,aAAI,GAAG,EAAE,GAAG,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC,EAAE,CAAC;kBARpE,QAAQ"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type ProcessDescription = {
|
|
2
|
-
profile?: string;
|
|
3
|
-
pid?: number;
|
|
4
|
-
isRunning?: boolean;
|
|
5
|
-
};
|
|
6
|
-
export interface Daemon {
|
|
7
|
-
connect: () => Promise<void>;
|
|
8
|
-
disconnect: () => Promise<void>;
|
|
9
|
-
isRunning: (profile: string) => Promise<boolean>;
|
|
10
|
-
start: (profile: string) => Promise<ProcessDescription>;
|
|
11
|
-
stop: (profile: string) => Promise<ProcessDescription>;
|
|
12
|
-
restart: (profile: string) => Promise<ProcessDescription>;
|
|
13
|
-
list: () => Promise<ProcessDescription[]>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=daemon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../../src/daemon/daemon.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzF,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhC,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjD,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACxD,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACvD,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE1D,IAAI,EAAE,MAAM,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;CAC3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"daemon.js","sourceRoot":"","sources":["../../../src/daemon/daemon.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE"}
|
|
@@ -1,346 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @export
|
|
4
|
-
* @interface DeleteFunctionRequest
|
|
5
|
-
*/
|
|
6
|
-
export interface DeleteFunctionRequest {
|
|
7
|
-
/**
|
|
8
|
-
* Name of deployed function
|
|
9
|
-
* @type {string}
|
|
10
|
-
* @memberof DeleteFunctionRequest
|
|
11
|
-
*/
|
|
12
|
-
functionName: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface FunctionDefinition
|
|
18
|
-
*/
|
|
19
|
-
export interface FunctionDefinition {
|
|
20
|
-
/**
|
|
21
|
-
* Name of deployed function
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof FunctionDefinition
|
|
24
|
-
*/
|
|
25
|
-
service: string;
|
|
26
|
-
/**
|
|
27
|
-
* Network, usually func_functions for Swarm (deprecated)
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof FunctionDefinition
|
|
30
|
-
*/
|
|
31
|
-
network?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Docker image in accessible registry
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof FunctionDefinition
|
|
36
|
-
*/
|
|
37
|
-
image: string;
|
|
38
|
-
/**
|
|
39
|
-
* Process for watchdog to fork
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof FunctionDefinition
|
|
42
|
-
*/
|
|
43
|
-
envProcess: string;
|
|
44
|
-
/**
|
|
45
|
-
* Overrides to environmental variables
|
|
46
|
-
* @type {{ [key: string]: string; }}
|
|
47
|
-
* @memberof FunctionDefinition
|
|
48
|
-
*/
|
|
49
|
-
envVars?: {
|
|
50
|
-
[key: string]: string;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {Array<string>}
|
|
55
|
-
* @memberof FunctionDefinition
|
|
56
|
-
*/
|
|
57
|
-
constraints?: Array<string>;
|
|
58
|
-
/**
|
|
59
|
-
* A map of labels for making scheduling or routing decisions
|
|
60
|
-
* @type {{ [key: string]: string; }}
|
|
61
|
-
* @memberof FunctionDefinition
|
|
62
|
-
*/
|
|
63
|
-
labels?: {
|
|
64
|
-
[key: string]: string;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* A map of annotations for management, orchestration, events and build tasks
|
|
68
|
-
* @type {{ [key: string]: string; }}
|
|
69
|
-
* @memberof FunctionDefinition
|
|
70
|
-
*/
|
|
71
|
-
annotations?: {
|
|
72
|
-
[key: string]: string;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {Array<string>}
|
|
77
|
-
* @memberof FunctionDefinition
|
|
78
|
-
*/
|
|
79
|
-
secrets?: Array<string>;
|
|
80
|
-
/**
|
|
81
|
-
* Private registry base64-encoded basic auth (as present in ~/.docker/config.json)
|
|
82
|
-
* @type {string}
|
|
83
|
-
* @memberof FunctionDefinition
|
|
84
|
-
*/
|
|
85
|
-
registryAuth?: string;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {FunctionDefinitionLimits}
|
|
89
|
-
* @memberof FunctionDefinition
|
|
90
|
-
*/
|
|
91
|
-
limits?: FunctionDefinitionLimits;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {FunctionDefinitionLimits}
|
|
95
|
-
* @memberof FunctionDefinition
|
|
96
|
-
*/
|
|
97
|
-
requests?: FunctionDefinitionLimits;
|
|
98
|
-
/**
|
|
99
|
-
* Make the root filesystem of the function read-only
|
|
100
|
-
* @type {boolean}
|
|
101
|
-
* @memberof FunctionDefinition
|
|
102
|
-
*/
|
|
103
|
-
readOnlyRootFilesystem?: boolean;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @export
|
|
108
|
-
* @interface FunctionDefinitionLimits
|
|
109
|
-
*/
|
|
110
|
-
export interface FunctionDefinitionLimits {
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @type {string}
|
|
114
|
-
* @memberof FunctionDefinitionLimits
|
|
115
|
-
*/
|
|
116
|
-
memory?: string;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* @type {string}
|
|
120
|
-
* @memberof FunctionDefinitionLimits
|
|
121
|
-
*/
|
|
122
|
-
cpu?: string;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @export
|
|
127
|
-
* @interface FunctionListEntry
|
|
128
|
-
*/
|
|
129
|
-
export interface FunctionListEntry {
|
|
130
|
-
/**
|
|
131
|
-
* The name of the function
|
|
132
|
-
* @type {string}
|
|
133
|
-
* @memberof FunctionListEntry
|
|
134
|
-
*/
|
|
135
|
-
name: string;
|
|
136
|
-
/**
|
|
137
|
-
* The fully qualified docker image name of the function
|
|
138
|
-
* @type {string}
|
|
139
|
-
* @memberof FunctionListEntry
|
|
140
|
-
*/
|
|
141
|
-
image: string;
|
|
142
|
-
/**
|
|
143
|
-
* The amount of invocations for the specified function
|
|
144
|
-
* @type {number}
|
|
145
|
-
* @memberof FunctionListEntry
|
|
146
|
-
*/
|
|
147
|
-
invocationCount: number;
|
|
148
|
-
/**
|
|
149
|
-
* The current minimal ammount of replicas
|
|
150
|
-
* @type {number}
|
|
151
|
-
* @memberof FunctionListEntry
|
|
152
|
-
*/
|
|
153
|
-
replicas: number;
|
|
154
|
-
/**
|
|
155
|
-
* The current available amount of replicas
|
|
156
|
-
* @type {number}
|
|
157
|
-
* @memberof FunctionListEntry
|
|
158
|
-
*/
|
|
159
|
-
availableReplicas: number;
|
|
160
|
-
/**
|
|
161
|
-
* Process for watchdog to fork
|
|
162
|
-
* @type {string}
|
|
163
|
-
* @memberof FunctionListEntry
|
|
164
|
-
*/
|
|
165
|
-
envProcess: string;
|
|
166
|
-
/**
|
|
167
|
-
* A map of labels for making scheduling or routing decisions
|
|
168
|
-
* @type {{ [key: string]: string; }}
|
|
169
|
-
* @memberof FunctionListEntry
|
|
170
|
-
*/
|
|
171
|
-
labels: {
|
|
172
|
-
[key: string]: string;
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* A map of annotations for management, orchestration, events and build tasks
|
|
176
|
-
* @type {{ [key: string]: string; }}
|
|
177
|
-
* @memberof FunctionListEntry
|
|
178
|
-
*/
|
|
179
|
-
annotations?: {
|
|
180
|
-
[key: string]: string;
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
*
|
|
185
|
-
* @export
|
|
186
|
-
* @interface Info
|
|
187
|
-
*/
|
|
188
|
-
export interface Info {
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @type {InfoProvider}
|
|
192
|
-
* @memberof Info
|
|
193
|
-
*/
|
|
194
|
-
provider: InfoProvider;
|
|
195
|
-
/**
|
|
196
|
-
*
|
|
197
|
-
* @type {InfoVersion}
|
|
198
|
-
* @memberof Info
|
|
199
|
-
*/
|
|
200
|
-
version: InfoVersion;
|
|
201
|
-
/**
|
|
202
|
-
* Platform architecture
|
|
203
|
-
* @type {string}
|
|
204
|
-
* @memberof Info
|
|
205
|
-
*/
|
|
206
|
-
arch?: string;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* The OpenFaaS Provider
|
|
210
|
-
* @export
|
|
211
|
-
* @interface InfoProvider
|
|
212
|
-
*/
|
|
213
|
-
export interface InfoProvider {
|
|
214
|
-
/**
|
|
215
|
-
*
|
|
216
|
-
* @type {string}
|
|
217
|
-
* @memberof InfoProvider
|
|
218
|
-
*/
|
|
219
|
-
provider?: string;
|
|
220
|
-
/**
|
|
221
|
-
*
|
|
222
|
-
* @type {string}
|
|
223
|
-
* @memberof InfoProvider
|
|
224
|
-
*/
|
|
225
|
-
orchestration?: string;
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* @type {InfoProviderVersion}
|
|
229
|
-
* @memberof InfoProvider
|
|
230
|
-
*/
|
|
231
|
-
version?: InfoProviderVersion;
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Version of the OpenFaaS Provider
|
|
235
|
-
* @export
|
|
236
|
-
* @interface InfoProviderVersion
|
|
237
|
-
*/
|
|
238
|
-
export interface InfoProviderVersion {
|
|
239
|
-
/**
|
|
240
|
-
*
|
|
241
|
-
* @type {string}
|
|
242
|
-
* @memberof InfoProviderVersion
|
|
243
|
-
*/
|
|
244
|
-
commitMessage?: string;
|
|
245
|
-
/**
|
|
246
|
-
*
|
|
247
|
-
* @type {string}
|
|
248
|
-
* @memberof InfoProviderVersion
|
|
249
|
-
*/
|
|
250
|
-
sha?: string;
|
|
251
|
-
/**
|
|
252
|
-
*
|
|
253
|
-
* @type {string}
|
|
254
|
-
* @memberof InfoProviderVersion
|
|
255
|
-
*/
|
|
256
|
-
release?: string;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Version of the Gateway
|
|
260
|
-
* @export
|
|
261
|
-
* @interface InfoVersion
|
|
262
|
-
*/
|
|
263
|
-
export interface InfoVersion {
|
|
264
|
-
/**
|
|
265
|
-
*
|
|
266
|
-
* @type {string}
|
|
267
|
-
* @memberof InfoVersion
|
|
268
|
-
*/
|
|
269
|
-
commitMessage?: string;
|
|
270
|
-
/**
|
|
271
|
-
*
|
|
272
|
-
* @type {string}
|
|
273
|
-
* @memberof InfoVersion
|
|
274
|
-
*/
|
|
275
|
-
sha?: string;
|
|
276
|
-
/**
|
|
277
|
-
*
|
|
278
|
-
* @type {string}
|
|
279
|
-
* @memberof InfoVersion
|
|
280
|
-
*/
|
|
281
|
-
release?: string;
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
*
|
|
285
|
-
* @export
|
|
286
|
-
* @interface LogEntry
|
|
287
|
-
*/
|
|
288
|
-
export interface LogEntry {
|
|
289
|
-
/**
|
|
290
|
-
* the function name
|
|
291
|
-
* @type {string}
|
|
292
|
-
* @memberof LogEntry
|
|
293
|
-
*/
|
|
294
|
-
name?: string;
|
|
295
|
-
/**
|
|
296
|
-
* the name/id of the specific function instance
|
|
297
|
-
* @type {string}
|
|
298
|
-
* @memberof LogEntry
|
|
299
|
-
*/
|
|
300
|
-
instance?: string;
|
|
301
|
-
/**
|
|
302
|
-
* the timestamp of when the log message was recorded
|
|
303
|
-
* @type {Date}
|
|
304
|
-
* @memberof LogEntry
|
|
305
|
-
*/
|
|
306
|
-
timestamp?: Date;
|
|
307
|
-
/**
|
|
308
|
-
* raw log message content
|
|
309
|
-
* @type {string}
|
|
310
|
-
* @memberof LogEntry
|
|
311
|
-
*/
|
|
312
|
-
text?: string;
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
*
|
|
316
|
-
* @export
|
|
317
|
-
* @interface Secret
|
|
318
|
-
*/
|
|
319
|
-
export interface Secret {
|
|
320
|
-
/**
|
|
321
|
-
* Name of secret
|
|
322
|
-
* @type {string}
|
|
323
|
-
* @memberof Secret
|
|
324
|
-
*/
|
|
325
|
-
name: string;
|
|
326
|
-
/**
|
|
327
|
-
* Value of secret in plain-text
|
|
328
|
-
* @type {string}
|
|
329
|
-
* @memberof Secret
|
|
330
|
-
*/
|
|
331
|
-
value?: string;
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
*
|
|
335
|
-
* @export
|
|
336
|
-
* @interface SecretName
|
|
337
|
-
*/
|
|
338
|
-
export interface SecretName {
|
|
339
|
-
/**
|
|
340
|
-
* Name of secret
|
|
341
|
-
* @type {string}
|
|
342
|
-
* @memberof SecretName
|
|
343
|
-
*/
|
|
344
|
-
name?: string;
|
|
345
|
-
}
|
|
346
|
-
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/daemon/faas/api.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/daemon/faas/api.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,EAAE;AACF,0BAA0B;AAC1B,EAAE"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ClientServicesProvider } from '@dxos/client';
|
|
2
|
-
import { Runtime } from '@dxos/protocols/proto/dxos/config';
|
|
3
|
-
export type Trigger = {
|
|
4
|
-
id: string;
|
|
5
|
-
spaceKey: string;
|
|
6
|
-
function: {
|
|
7
|
-
/**
|
|
8
|
-
* Name of deployed function to invoke.
|
|
9
|
-
*/
|
|
10
|
-
name: string;
|
|
11
|
-
};
|
|
12
|
-
subscription: {
|
|
13
|
-
/**
|
|
14
|
-
* Object types.
|
|
15
|
-
*/
|
|
16
|
-
type?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Properties to match.
|
|
19
|
-
*/
|
|
20
|
-
props?: Record<string, any>;
|
|
21
|
-
/**
|
|
22
|
-
* List of paths for referenced objects to include.
|
|
23
|
-
*/
|
|
24
|
-
nested?: string[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export declare class FaasConnector {
|
|
28
|
-
private readonly _faasConfig;
|
|
29
|
-
private readonly _clientServices;
|
|
30
|
-
private readonly _ctx;
|
|
31
|
-
private readonly _remountTask;
|
|
32
|
-
private readonly _mountedTriggers;
|
|
33
|
-
private readonly _client;
|
|
34
|
-
constructor(_faasConfig: Runtime.Services.Faasd, _clientServices: ClientServicesProvider);
|
|
35
|
-
open(): Promise<void>;
|
|
36
|
-
close(): Promise<void>;
|
|
37
|
-
private _watchTriggers;
|
|
38
|
-
private _getTriggers;
|
|
39
|
-
private _unmountTriggers;
|
|
40
|
-
private _remountTriggers;
|
|
41
|
-
private _mountTrigger;
|
|
42
|
-
private _dispatch;
|
|
43
|
-
private _invokeFunction;
|
|
44
|
-
private _getFunctions;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=connector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../../src/daemon/faas/connector.ts"],"names":[],"mappings":"AAKA,OAAO,EAAU,sBAAsB,EAAqB,MAAM,cAAc,CAAC;AAKjF,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAI5D,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE;QACR;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IAEF,YAAY,EAAE;QACZ;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAE5B;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;CACH,CAAC;AAiBF,qBAAa,aAAa;IAYtB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAZlC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAiB;IAEtC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAE1B;IAEH,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwB;IAEzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;gBAGd,WAAW,EAAE,OAAO,CAAC,QAAQ,CAAC,KAAK,EACnC,eAAe,EAAE,sBAAsB;IAKpD,IAAI;IAOJ,KAAK;YAMG,cAAc;YA4Cd,YAAY;YAgBZ,gBAAgB;YAShB,gBAAgB;YAchB,aAAa;YA0Db,SAAS;YAsBT,eAAe;YAiBf,aAAa;CAa5B"}
|