@milaboratories/pl-deployments 2.15.16 → 2.15.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.
- package/dist/_virtual/_rolldown/runtime.cjs +29 -0
- package/dist/common/os_and_arch.cjs +22 -28
- package/dist/common/os_and_arch.cjs.map +1 -1
- package/dist/common/os_and_arch.js +23 -26
- package/dist/common/os_and_arch.js.map +1 -1
- package/dist/common/pl_binary.cjs +35 -33
- package/dist/common/pl_binary.cjs.map +1 -1
- package/dist/common/pl_binary.d.ts +13 -18
- package/dist/common/pl_binary.js +33 -31
- package/dist/common/pl_binary.js.map +1 -1
- package/dist/common/pl_binary_download.cjs +143 -155
- package/dist/common/pl_binary_download.cjs.map +1 -1
- package/dist/common/pl_binary_download.d.ts +15 -48
- package/dist/common/pl_binary_download.js +138 -133
- package/dist/common/pl_binary_download.js.map +1 -1
- package/dist/common/pl_version.cjs +5 -6
- package/dist/common/pl_version.cjs.map +1 -1
- package/dist/common/pl_version.d.ts +4 -1
- package/dist/common/pl_version.js +5 -4
- package/dist/common/pl_version.js.map +1 -1
- package/dist/index.cjs +21 -25
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -6
- package/dist/local/pid.cjs +14 -13
- package/dist/local/pid.cjs.map +1 -1
- package/dist/local/pid.js +11 -11
- package/dist/local/pid.js.map +1 -1
- package/dist/local/pl.cjs +194 -223
- package/dist/local/pl.cjs.map +1 -1
- package/dist/local/pl.d.ts +65 -65
- package/dist/local/pl.js +190 -202
- package/dist/local/pl.js.map +1 -1
- package/dist/local/process.cjs +37 -59
- package/dist/local/process.cjs.map +1 -1
- package/dist/local/process.d.ts +10 -10
- package/dist/local/process.js +36 -57
- package/dist/local/process.js.map +1 -1
- package/dist/local/trace.cjs +14 -17
- package/dist/local/trace.cjs.map +1 -1
- package/dist/local/trace.d.ts +6 -7
- package/dist/local/trace.js +15 -15
- package/dist/local/trace.js.map +1 -1
- package/dist/package.cjs +12 -0
- package/dist/package.cjs.map +1 -0
- package/dist/package.js +6 -0
- package/dist/package.js.map +1 -0
- package/dist/ssh/connection_info.cjs +36 -53
- package/dist/ssh/connection_info.cjs.map +1 -1
- package/dist/ssh/connection_info.d.ts +691 -713
- package/dist/ssh/connection_info.js +35 -51
- package/dist/ssh/connection_info.js.map +1 -1
- package/dist/ssh/pl.cjs +551 -638
- package/dist/ssh/pl.cjs.map +1 -1
- package/dist/ssh/pl.d.ts +120 -117
- package/dist/ssh/pl.js +548 -636
- package/dist/ssh/pl.js.map +1 -1
- package/dist/ssh/pl_paths.cjs +22 -24
- package/dist/ssh/pl_paths.cjs.map +1 -1
- package/dist/ssh/pl_paths.js +21 -19
- package/dist/ssh/pl_paths.js.map +1 -1
- package/dist/ssh/ssh.cjs +554 -618
- package/dist/ssh/ssh.cjs.map +1 -1
- package/dist/ssh/ssh.d.ts +139 -136
- package/dist/ssh/ssh.js +548 -616
- package/dist/ssh/ssh.js.map +1 -1
- package/dist/ssh/ssh_errors.cjs +45 -60
- package/dist/ssh/ssh_errors.cjs.map +1 -1
- package/dist/ssh/ssh_errors.js +45 -58
- package/dist/ssh/ssh_errors.js.map +1 -1
- package/dist/ssh/supervisord.cjs +50 -68
- package/dist/ssh/supervisord.cjs.map +1 -1
- package/dist/ssh/supervisord.d.ts +11 -21
- package/dist/ssh/supervisord.js +50 -66
- package/dist/ssh/supervisord.js.map +1 -1
- package/package.json +11 -11
- package/dist/common/os_and_arch.d.ts +0 -9
- package/dist/common/os_and_arch.d.ts.map +0 -1
- package/dist/common/pl_binary.d.ts.map +0 -1
- package/dist/common/pl_binary_download.d.ts.map +0 -1
- package/dist/common/pl_version.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/local/options.d.ts +0 -31
- package/dist/local/options.d.ts.map +0 -1
- package/dist/local/pid.d.ts +0 -4
- package/dist/local/pid.d.ts.map +0 -1
- package/dist/local/pl.d.ts.map +0 -1
- package/dist/local/process.d.ts.map +0 -1
- package/dist/local/trace.d.ts.map +0 -1
- package/dist/package.json.cjs +0 -8
- package/dist/package.json.cjs.map +0 -1
- package/dist/package.json.js +0 -6
- package/dist/package.json.js.map +0 -1
- package/dist/ssh/__tests__/common-utils.d.ts +0 -12
- package/dist/ssh/__tests__/common-utils.d.ts.map +0 -1
- package/dist/ssh/connection_info.d.ts.map +0 -1
- package/dist/ssh/pl.d.ts.map +0 -1
- package/dist/ssh/pl_paths.d.ts +0 -20
- package/dist/ssh/pl_paths.d.ts.map +0 -1
- package/dist/ssh/ssh.d.ts.map +0 -1
- package/dist/ssh/ssh_errors.d.ts +0 -29
- package/dist/ssh/ssh_errors.d.ts.map +0 -1
- package/dist/ssh/supervisord.d.ts.map +0 -1
|
@@ -1,61 +1,45 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
//#region src/ssh/connection_info.ts
|
|
3
4
|
/** We store all info about the connection on the server,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
.passthrough();
|
|
26
|
-
const ConnectionInfo = z
|
|
27
|
-
.object({
|
|
28
|
-
plUser: z.string(),
|
|
29
|
-
plPassword: z.string(),
|
|
30
|
-
ports: SshPlPorts,
|
|
31
|
-
// It's false by default because it was added later,
|
|
32
|
-
// and in some deployments there won't be useGlobalAccess flag in the file.
|
|
33
|
-
useGlobalAccess: z.boolean().default(false),
|
|
34
|
-
// We added the field afterwards, the pl backend was this version.
|
|
35
|
-
plVersion: z.string().default("1.18.3"),
|
|
36
|
-
// It's true by default because it was added later and previous installation use minio.
|
|
37
|
-
minioIsUsed: z.boolean().default(true),
|
|
38
|
-
})
|
|
39
|
-
.passthrough();
|
|
40
|
-
//
|
|
41
|
-
// Funcs
|
|
42
|
-
//
|
|
5
|
+
* so that another client could read the file and connect from another machine. */
|
|
6
|
+
const PortPair = z.object({
|
|
7
|
+
local: z.number(),
|
|
8
|
+
remote: z.number()
|
|
9
|
+
}).passthrough();
|
|
10
|
+
const SshPlPorts = z.object({
|
|
11
|
+
grpc: PortPair,
|
|
12
|
+
http: PortPair.optional(),
|
|
13
|
+
monitoring: PortPair,
|
|
14
|
+
debug: PortPair,
|
|
15
|
+
minioPort: PortPair,
|
|
16
|
+
minioConsolePort: PortPair
|
|
17
|
+
}).passthrough();
|
|
18
|
+
const ConnectionInfo = z.object({
|
|
19
|
+
plUser: z.string(),
|
|
20
|
+
plPassword: z.string(),
|
|
21
|
+
ports: SshPlPorts,
|
|
22
|
+
useGlobalAccess: z.boolean().default(false),
|
|
23
|
+
plVersion: z.string().default("1.18.3"),
|
|
24
|
+
minioIsUsed: z.boolean().default(true)
|
|
25
|
+
}).passthrough();
|
|
43
26
|
function newConnectionInfo(plUser, plPassword, ports, useGlobalAccess, plVersion, minioIsUsed) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
27
|
+
return {
|
|
28
|
+
plUser,
|
|
29
|
+
plPassword,
|
|
30
|
+
ports,
|
|
31
|
+
useGlobalAccess,
|
|
32
|
+
plVersion,
|
|
33
|
+
minioIsUsed
|
|
34
|
+
};
|
|
52
35
|
}
|
|
53
36
|
function parseConnectionInfo(content) {
|
|
54
|
-
|
|
37
|
+
return ConnectionInfo.parse(JSON.parse(content));
|
|
55
38
|
}
|
|
56
39
|
function stringifyConnectionInfo(conn) {
|
|
57
|
-
|
|
40
|
+
return JSON.stringify(conn, void 0, 2);
|
|
58
41
|
}
|
|
59
42
|
|
|
43
|
+
//#endregion
|
|
60
44
|
export { ConnectionInfo, PortPair, SshPlPorts, newConnectionInfo, parseConnectionInfo, stringifyConnectionInfo };
|
|
61
|
-
//# sourceMappingURL=connection_info.js.map
|
|
45
|
+
//# sourceMappingURL=connection_info.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection_info.js","sources":["../../src/ssh/connection_info.ts"],"sourcesContent":["/** We store all info about the connection on the server,\n * so that another client could read the file and connect from another machine. */\nimport { z } from \"zod\";\n\n//\n// Types\n//\n\nexport const PortPair = z\n .object({\n local: z.number(),\n remote: z.number(),\n })\n .passthrough();\n/** The pair of ports for forwarding. */\nexport type PortPair = z.infer<typeof PortPair>;\n\nexport const SshPlPorts = z\n .object({\n grpc: PortPair,\n http: PortPair.optional(),\n monitoring: PortPair,\n debug: PortPair,\n /** @deprecated */\n minioPort: PortPair,\n /** @deprecated */\n minioConsolePort: PortPair,\n })\n .passthrough();\n/** All info about ports that are forwarded. */\nexport type SshPlPorts = z.infer<typeof SshPlPorts>;\n\nexport const ConnectionInfo = z\n .object({\n plUser: z.string(),\n plPassword: z.string(),\n ports: SshPlPorts,\n\n // It's false by default because it was added later,\n // and in some deployments there won't be useGlobalAccess flag in the file.\n useGlobalAccess: z.boolean().default(false),\n\n // We added the field afterwards, the pl backend was this version.\n plVersion: z.string().default(\"1.18.3\"),\n\n // It's true by default because it was added later and previous installation use minio.\n minioIsUsed: z.boolean().default(true),\n })\n .passthrough();\n/** The content of the file that holds all the info about the connection on the remote server. */\nexport type ConnectionInfo = z.infer<typeof ConnectionInfo>;\n\n//\n// Funcs\n//\n\nexport function newConnectionInfo(\n plUser: string,\n plPassword: string,\n ports: SshPlPorts,\n useGlobalAccess: boolean,\n plVersion: string,\n minioIsUsed: boolean,\n): ConnectionInfo {\n return {\n plUser,\n plPassword,\n ports,\n useGlobalAccess,\n plVersion,\n minioIsUsed: minioIsUsed,\n };\n}\n\nexport function parseConnectionInfo(content: string): ConnectionInfo {\n return ConnectionInfo.parse(JSON.parse(content));\n}\n\nexport function stringifyConnectionInfo(conn: ConnectionInfo): string {\n return JSON.stringify(conn, undefined, 2);\n}\n"],"
|
|
1
|
+
{"version":3,"file":"connection_info.js","names":[],"sources":["../../src/ssh/connection_info.ts"],"sourcesContent":["/** We store all info about the connection on the server,\n * so that another client could read the file and connect from another machine. */\nimport { z } from \"zod\";\n\n//\n// Types\n//\n\nexport const PortPair = z\n .object({\n local: z.number(),\n remote: z.number(),\n })\n .passthrough();\n/** The pair of ports for forwarding. */\nexport type PortPair = z.infer<typeof PortPair>;\n\nexport const SshPlPorts = z\n .object({\n grpc: PortPair,\n http: PortPair.optional(),\n monitoring: PortPair,\n debug: PortPair,\n /** @deprecated */\n minioPort: PortPair,\n /** @deprecated */\n minioConsolePort: PortPair,\n })\n .passthrough();\n/** All info about ports that are forwarded. */\nexport type SshPlPorts = z.infer<typeof SshPlPorts>;\n\nexport const ConnectionInfo = z\n .object({\n plUser: z.string(),\n plPassword: z.string(),\n ports: SshPlPorts,\n\n // It's false by default because it was added later,\n // and in some deployments there won't be useGlobalAccess flag in the file.\n useGlobalAccess: z.boolean().default(false),\n\n // We added the field afterwards, the pl backend was this version.\n plVersion: z.string().default(\"1.18.3\"),\n\n // It's true by default because it was added later and previous installation use minio.\n minioIsUsed: z.boolean().default(true),\n })\n .passthrough();\n/** The content of the file that holds all the info about the connection on the remote server. */\nexport type ConnectionInfo = z.infer<typeof ConnectionInfo>;\n\n//\n// Funcs\n//\n\nexport function newConnectionInfo(\n plUser: string,\n plPassword: string,\n ports: SshPlPorts,\n useGlobalAccess: boolean,\n plVersion: string,\n minioIsUsed: boolean,\n): ConnectionInfo {\n return {\n plUser,\n plPassword,\n ports,\n useGlobalAccess,\n plVersion,\n minioIsUsed: minioIsUsed,\n };\n}\n\nexport function parseConnectionInfo(content: string): ConnectionInfo {\n return ConnectionInfo.parse(JSON.parse(content));\n}\n\nexport function stringifyConnectionInfo(conn: ConnectionInfo): string {\n return JSON.stringify(conn, undefined, 2);\n}\n"],"mappings":";;;;;AAQA,MAAa,WAAW,EACrB,OAAO;CACN,OAAO,EAAE,QAAQ;CACjB,QAAQ,EAAE,QAAQ;CACnB,CAAC,CACD,aAAa;AAIhB,MAAa,aAAa,EACvB,OAAO;CACN,MAAM;CACN,MAAM,SAAS,UAAU;CACzB,YAAY;CACZ,OAAO;CAEP,WAAW;CAEX,kBAAkB;CACnB,CAAC,CACD,aAAa;AAIhB,MAAa,iBAAiB,EAC3B,OAAO;CACN,QAAQ,EAAE,QAAQ;CAClB,YAAY,EAAE,QAAQ;CACtB,OAAO;CAIP,iBAAiB,EAAE,SAAS,CAAC,QAAQ,MAAM;CAG3C,WAAW,EAAE,QAAQ,CAAC,QAAQ,SAAS;CAGvC,aAAa,EAAE,SAAS,CAAC,QAAQ,KAAK;CACvC,CAAC,CACD,aAAa;AAQhB,SAAgB,kBACd,QACA,YACA,OACA,iBACA,WACA,aACgB;AAChB,QAAO;EACL;EACA;EACA;EACA;EACA;EACa;EACd;;AAGH,SAAgB,oBAAoB,SAAiC;AACnE,QAAO,eAAe,MAAM,KAAK,MAAM,QAAQ,CAAC;;AAGlD,SAAgB,wBAAwB,MAA8B;AACpE,QAAO,KAAK,UAAU,MAAM,QAAW,EAAE"}
|