pmcf 4.19.1 → 4.20.0

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.
Files changed (82) hide show
  1. package/README.md +93 -72
  2. package/bin/pmcf-diagram +1 -1
  3. package/package.json +19 -19
  4. package/src/base.mjs +24 -237
  5. package/src/cli.mjs +4 -4
  6. package/src/cluster.mjs +15 -13
  7. package/src/extra-source-service.mjs +7 -10
  8. package/src/host.mjs +30 -44
  9. package/src/initialization-context.mjs +324 -0
  10. package/src/location.mjs +4 -14
  11. package/src/module.mjs +1 -0
  12. package/src/network-interfaces/ethernet.mjs +3 -5
  13. package/src/network-interfaces/loopback.mjs +2 -4
  14. package/src/network-interfaces/network-interface.mjs +3 -5
  15. package/src/network-interfaces/skeleton.mjs +9 -3
  16. package/src/network-interfaces/tun.mjs +2 -4
  17. package/src/network-interfaces/wireguard.mjs +3 -5
  18. package/src/network-interfaces/wlan.mjs +4 -7
  19. package/src/network.mjs +10 -8
  20. package/src/owner.mjs +8 -32
  21. package/src/root.mjs +4 -73
  22. package/src/service-owner.mjs +19 -18
  23. package/src/service.mjs +13 -18
  24. package/src/services/alpm.mjs +4 -9
  25. package/src/services/bind.mjs +424 -388
  26. package/src/services/chrony.mjs +3 -5
  27. package/src/services/headscale.mjs +2 -4
  28. package/src/services/influxdb.mjs +2 -4
  29. package/src/services/kea.mjs +6 -10
  30. package/src/services/mosquitto.mjs +2 -4
  31. package/src/services/openldap.mjs +2 -4
  32. package/src/services/postfix.mjs +2 -4
  33. package/src/services/systemd-journal-remote.mjs +2 -4
  34. package/src/services/systemd-journal-upload.mjs +9 -10
  35. package/src/services/systemd-journald.mjs +2 -4
  36. package/src/services/systemd-resolved.mjs +42 -42
  37. package/src/services/systemd-timesyncd.mjs +9 -13
  38. package/src/services/tailscale.mjs +5 -2
  39. package/src/subnet.mjs +9 -5
  40. package/types/base.d.mts +0 -179
  41. package/types/cli.d.mts +0 -10
  42. package/types/cluster.d.mts +0 -507
  43. package/types/dns-utils.d.mts +0 -14
  44. package/types/endpoint.d.mts +0 -79
  45. package/types/extra-source-service.d.mts +0 -1033
  46. package/types/hooks.d.mts +0 -2
  47. package/types/host-utils.d.mts +0 -1
  48. package/types/host.d.mts +0 -285
  49. package/types/location.d.mts +0 -379
  50. package/types/module.d.mts +0 -36
  51. package/types/network-address.d.mts +0 -41
  52. package/types/network-interfaces/ethernet.d.mts +0 -1189
  53. package/types/network-interfaces/loopback.d.mts +0 -1140
  54. package/types/network-interfaces/network-interface.d.mts +0 -1158
  55. package/types/network-interfaces/skeleton.d.mts +0 -30
  56. package/types/network-interfaces/tun.d.mts +0 -1131
  57. package/types/network-interfaces/wireguard.d.mts +0 -1131
  58. package/types/network-interfaces/wlan.d.mts +0 -1734
  59. package/types/network-support.d.mts +0 -193
  60. package/types/network.d.mts +0 -702
  61. package/types/owner.d.mts +0 -235
  62. package/types/root.d.mts +0 -10
  63. package/types/service-owner.d.mts +0 -14
  64. package/types/service-types.d.mts +0 -246
  65. package/types/service.d.mts +0 -689
  66. package/types/services/alpm.d.mts +0 -805
  67. package/types/services/bind.d.mts +0 -1574
  68. package/types/services/chrony.d.mts +0 -1310
  69. package/types/services/headscale.d.mts +0 -801
  70. package/types/services/influxdb.d.mts +0 -812
  71. package/types/services/kea.d.mts +0 -945
  72. package/types/services/mosquitto.d.mts +0 -876
  73. package/types/services/openldap.d.mts +0 -793
  74. package/types/services/postfix.d.mts +0 -784
  75. package/types/services/systemd-journal-remote.d.mts +0 -1030
  76. package/types/services/systemd-journal-upload.d.mts +0 -932
  77. package/types/services/systemd-journald.d.mts +0 -1317
  78. package/types/services/systemd-resolved.d.mts +0 -1644
  79. package/types/services/systemd-timesyncd.d.mts +0 -1459
  80. package/types/services/tailscale.d.mts +0 -781
  81. package/types/subnet.d.mts +0 -57
  82. package/types/utils.d.mts +0 -37
package/types/hooks.d.mts DELETED
@@ -1,2 +0,0 @@
1
- export function loadHooks(packageData: any, file: any): Promise<void>;
2
- export function addHook(packageData: any, name: any, content: any): any;
@@ -1 +0,0 @@
1
- export function generateKnownHosts(hosts: any, dir: any): Promise<void>;
package/types/host.d.mts DELETED
@@ -1,285 +0,0 @@
1
- export class Host extends ServiceOwner {
2
- static get typeDefinition(): {
3
- name: string;
4
- owners: string[];
5
- extends: typeof Base;
6
- key: string;
7
- attributes: {
8
- networkInterfaces: {
9
- type: string;
10
- collection: boolean;
11
- isKey: boolean;
12
- writable: boolean;
13
- mandatory: boolean;
14
- constructor?: Function;
15
- private?: boolean;
16
- credential?: boolean;
17
- persistent?: boolean;
18
- depends?: string;
19
- description?: string;
20
- default?: any;
21
- set?: Function;
22
- get?: Function;
23
- toInternal?: Function;
24
- toExternal?: Function;
25
- values?: Set<any>;
26
- externalName?: string;
27
- env?: string[] | string;
28
- additionalValues?: object;
29
- };
30
- services: {
31
- type: string;
32
- collection: boolean;
33
- isKey: boolean;
34
- writable: boolean;
35
- mandatory: boolean;
36
- constructor?: Function;
37
- private?: boolean;
38
- credential?: boolean;
39
- persistent?: boolean;
40
- depends?: string;
41
- description?: string;
42
- default?: any;
43
- set?: Function;
44
- get?: Function;
45
- toInternal?: Function;
46
- toExternal?: Function;
47
- values?: Set<any>;
48
- externalName?: string;
49
- env?: string[] | string;
50
- additionalValues?: object;
51
- };
52
- aliases: import("pacc").AttributeDefinition;
53
- os: {
54
- values: string[];
55
- type: object;
56
- isKey: boolean;
57
- writable: boolean;
58
- mandatory: boolean;
59
- collection: boolean;
60
- constructor?: Function;
61
- private?: boolean;
62
- credential?: boolean;
63
- persistent?: boolean;
64
- depends?: string;
65
- description?: string;
66
- default?: any;
67
- set?: Function;
68
- get?: Function;
69
- toInternal?: Function;
70
- toExternal?: Function;
71
- externalName?: string;
72
- env?: string[] | string;
73
- additionalValues?: object;
74
- };
75
- "machine-id": import("pacc").AttributeDefinition;
76
- distribution: import("pacc").AttributeDefinition;
77
- deployment: {
78
- values: string[];
79
- type: object;
80
- isKey: boolean;
81
- writable: boolean;
82
- mandatory: boolean;
83
- collection: boolean;
84
- constructor?: Function;
85
- private?: boolean;
86
- credential?: boolean;
87
- persistent?: boolean;
88
- depends?: string;
89
- description?: string;
90
- default?: any;
91
- set?: Function;
92
- get?: Function;
93
- toInternal?: Function;
94
- toExternal?: Function;
95
- externalName?: string;
96
- env?: string[] | string;
97
- additionalValues?: object;
98
- };
99
- weight: import("pacc").AttributeDefinition;
100
- serial: import("pacc").AttributeDefinition;
101
- vendor: import("pacc").AttributeDefinition;
102
- keymap: import("pacc").AttributeDefinition;
103
- chassis: {
104
- values: string[];
105
- type: object;
106
- isKey: boolean;
107
- writable: boolean;
108
- mandatory: boolean;
109
- collection: boolean;
110
- constructor?: Function;
111
- private?: boolean;
112
- credential?: boolean;
113
- persistent?: boolean;
114
- depends?: string;
115
- description?: string;
116
- default?: any;
117
- set?: Function;
118
- get?: Function;
119
- toInternal?: Function;
120
- toExternal?: Function;
121
- externalName?: string;
122
- env?: string[] | string;
123
- additionalValues?: object;
124
- };
125
- architecture: {
126
- values: string[];
127
- type: object;
128
- isKey: boolean;
129
- writable: boolean;
130
- mandatory: boolean;
131
- collection: boolean;
132
- constructor?: Function;
133
- private?: boolean;
134
- credential?: boolean;
135
- persistent?: boolean;
136
- depends?: string;
137
- description?: string;
138
- default?: any;
139
- set?: Function;
140
- get?: Function;
141
- toInternal?: Function;
142
- toExternal?: Function;
143
- externalName?: string;
144
- env?: string[] | string;
145
- additionalValues?: object;
146
- };
147
- replaces: import("pacc").AttributeDefinition;
148
- depends: import("pacc").AttributeDefinition;
149
- provides: import("pacc").AttributeDefinition;
150
- extends: {
151
- type: string;
152
- collection: boolean;
153
- isKey: boolean;
154
- writable: boolean;
155
- mandatory: boolean;
156
- constructor?: Function;
157
- private?: boolean;
158
- credential?: boolean;
159
- persistent?: boolean;
160
- depends?: string;
161
- description?: string;
162
- default?: any;
163
- set?: Function;
164
- get?: Function;
165
- toInternal?: Function;
166
- toExternal?: Function;
167
- values?: Set<any>;
168
- externalName?: string;
169
- env?: string[] | string;
170
- additionalValues?: object;
171
- };
172
- model: import("pacc").AttributeDefinition;
173
- isModel: import("pacc").AttributeDefinition;
174
- hostName: {
175
- writable: boolean;
176
- type: object;
177
- isKey: boolean;
178
- mandatory: boolean;
179
- collection: boolean;
180
- constructor?: Function;
181
- private?: boolean;
182
- credential?: boolean;
183
- persistent?: boolean;
184
- depends?: string;
185
- description?: string;
186
- default?: any;
187
- set?: Function;
188
- get?: Function;
189
- toInternal?: Function;
190
- toExternal?: Function;
191
- values?: Set<any>;
192
- externalName?: string;
193
- env?: string[] | string;
194
- additionalValues?: object;
195
- };
196
- cidrAddresses: import("pacc").AttributeDefinition;
197
- cidrAddress: import("pacc").AttributeDefinition;
198
- addresses: import("pacc").AttributeDefinition;
199
- address: import("pacc").AttributeDefinition;
200
- };
201
- };
202
- _aliases: Set<any>;
203
- _networkInterfaces: Map<any, any>;
204
- _provides: Set<any>;
205
- _replaces: Set<any>;
206
- _depends: Set<any>;
207
- _os: any;
208
- _distribution: any;
209
- _deployment: any;
210
- _chassis: any;
211
- _vendor: any;
212
- _architecture: any;
213
- _serial: any;
214
- _keymap: any;
215
- extra: any;
216
- set serial(value: any);
217
- get serial(): any;
218
- set deployment(value: any);
219
- get deployment(): any;
220
- set chassis(value: any);
221
- get chassis(): any;
222
- set vendor(value: any);
223
- get vendor(): any;
224
- set keymap(value: any);
225
- get keymap(): any;
226
- set architecture(value: any);
227
- get architecture(): any;
228
- get isModel(): boolean;
229
- get model(): any;
230
- set aliases(value: any);
231
- get aliases(): any;
232
- set provides(value: any);
233
- get provides(): any;
234
- set replaces(value: any);
235
- get replaces(): any;
236
- set depends(value: any);
237
- get depends(): any;
238
- set os(value: any);
239
- get os(): any;
240
- set distribution(value: any);
241
- get distribution(): any;
242
- get modelName(): any;
243
- get hostName(): string;
244
- get foreignDomainNames(): any[];
245
- get foreignDomains(): Set<string>;
246
- get domains(): Set<any>;
247
- get directDomainNames(): Set<string>;
248
- get domainNames(): Set<string>;
249
- get domainName(): string;
250
- domainNamesIn(domain: any): Generator<string, void, unknown>;
251
- get clusters(): Set<any>;
252
- get host(): this;
253
- get hosts(): this[];
254
- named(name: any): any;
255
- get networks(): Set<any>;
256
- set networkInterfaces(networkInterface: Map<any, any>);
257
- get networkInterfaces(): Map<any, any>;
258
- networkAddresses(filter: any): Generator<any, void, any>;
259
- get address(): any;
260
- get addresses(): Iterable<string>;
261
- get subnets(): Set<any>;
262
- publicKey(type?: string): Promise<string>;
263
- preparePackages(dir: any): AsyncGenerator<{
264
- sources: any[];
265
- outputs: Set<typeof import("npm-pkgbuild").DEBIAN | typeof import("npm-pkgbuild").ARCH | typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>;
266
- properties: {
267
- name: string;
268
- access: string;
269
- dependencies: any;
270
- groups: any[];
271
- };
272
- } | {
273
- sources: FileContentProvider[];
274
- outputs: Set<typeof import("npm-pkgbuild").DEBIAN | typeof import("npm-pkgbuild").ARCH | typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>;
275
- properties: {
276
- name: string;
277
- description: string;
278
- access: string;
279
- dependencies: string[];
280
- };
281
- }, void, unknown>;
282
- }
283
- import { ServiceOwner } from "pmcf";
284
- import { FileContentProvider } from "npm-pkgbuild";
285
- import { Base } from "pmcf";
@@ -1,379 +0,0 @@
1
- export class Location extends Owner {
2
- static get typeDefinition(): {
3
- name: string;
4
- owners: (string | {
5
- name: string;
6
- owners: string[];
7
- extends: typeof import("pmcf").Base;
8
- key: string;
9
- attributes: {
10
- networks: {
11
- type: string;
12
- collection: boolean;
13
- isKey: boolean;
14
- writable: boolean;
15
- mandatory: boolean;
16
- constructor?: Function;
17
- private?: boolean;
18
- credential?: boolean;
19
- persistent?: boolean;
20
- depends?: string;
21
- description?: string;
22
- default?: any;
23
- set?: Function;
24
- get?: Function;
25
- toInternal?: Function;
26
- toExternal?: Function;
27
- values?: Set<any>;
28
- externalName?: string;
29
- env?: string[] | string;
30
- additionalValues?: object;
31
- };
32
- hosts: {
33
- type: string;
34
- collection: boolean;
35
- isKey: boolean;
36
- writable: boolean;
37
- mandatory: boolean;
38
- constructor?: Function;
39
- private?: boolean;
40
- credential?: boolean;
41
- persistent?: boolean;
42
- depends?: string;
43
- description?: string;
44
- default?: any;
45
- set?: Function;
46
- get?: Function;
47
- toInternal?: Function;
48
- toExternal?: Function;
49
- values?: Set<any>;
50
- externalName?: string;
51
- env?: string[] | string;
52
- additionalValues?: object;
53
- };
54
- clusters: {
55
- type: string;
56
- collection: boolean;
57
- isKey: boolean;
58
- writable: boolean;
59
- mandatory: boolean;
60
- constructor?: Function;
61
- private?: boolean;
62
- credential?: boolean;
63
- persistent?: boolean;
64
- depends?: string;
65
- description?: string;
66
- default?: any;
67
- set?: Function;
68
- get?: Function;
69
- toInternal?: Function;
70
- toExternal?: Function;
71
- values?: Set<any>;
72
- externalName?: string;
73
- env?: string[] | string;
74
- additionalValues?: object;
75
- };
76
- subnets: {
77
- type: {
78
- name: string;
79
- owners: string[];
80
- constructWithIdentifierOnly: boolean;
81
- key: string;
82
- attributes: {
83
- address: import("pacc").AttributeDefinition;
84
- networks: {
85
- type: string;
86
- collection: boolean;
87
- isKey: boolean;
88
- writable: boolean;
89
- mandatory: boolean;
90
- constructor?: Function;
91
- private?: boolean;
92
- credential?: boolean;
93
- persistent?: boolean;
94
- depends?: string;
95
- description?: string;
96
- default?: any;
97
- set?: Function;
98
- get?: Function;
99
- toInternal?: Function;
100
- toExternal?: Function;
101
- values?: Set<any>;
102
- externalName?: string;
103
- env?: string[] | string;
104
- additionalValues?: object;
105
- };
106
- prefixLength: import("pacc").AttributeDefinition;
107
- family: import("pacc").AttributeDefinition;
108
- };
109
- };
110
- collection: boolean;
111
- isKey: boolean;
112
- writable: boolean;
113
- mandatory: boolean;
114
- constructor?: Function;
115
- private?: boolean;
116
- credential?: boolean;
117
- persistent?: boolean;
118
- depends?: string;
119
- description?: string;
120
- default?: any;
121
- set?: Function;
122
- get?: Function;
123
- toInternal?: Function;
124
- toExternal?: Function;
125
- values?: Set<any>;
126
- externalName?: string;
127
- env?: string[] | string;
128
- additionalValues?: object;
129
- };
130
- country: import("pacc").AttributeDefinition;
131
- domain: import("pacc").AttributeDefinition;
132
- domains: import("pacc").AttributeDefinition;
133
- timezone: import("pacc").AttributeDefinition;
134
- architectures: import("pacc").AttributeDefinition;
135
- locales: import("pacc").AttributeDefinition;
136
- administratorEmail: {
137
- writable: boolean;
138
- type: object;
139
- isKey: boolean;
140
- mandatory: boolean;
141
- collection: boolean;
142
- constructor?: Function;
143
- private?: boolean;
144
- credential?: boolean;
145
- persistent?: boolean;
146
- depends?: string;
147
- description?: string;
148
- default?: any;
149
- set?: Function;
150
- get?: Function;
151
- toInternal?: Function;
152
- toExternal?: Function;
153
- values?: Set<any>;
154
- externalName?: string;
155
- env?: string[] | string;
156
- additionalValues?: object;
157
- };
158
- template: {
159
- private: boolean;
160
- type: object;
161
- isKey: boolean;
162
- writable: boolean;
163
- mandatory: boolean;
164
- collection: boolean;
165
- constructor?: Function;
166
- credential?: boolean;
167
- persistent?: boolean;
168
- depends?: string;
169
- description?: string;
170
- default?: any;
171
- set?: Function;
172
- get?: Function;
173
- toInternal?: Function;
174
- toExternal?: Function;
175
- values?: Set<any>;
176
- externalName?: string;
177
- env?: string[] | string;
178
- additionalValues?: object;
179
- };
180
- };
181
- })[];
182
- extends: {
183
- name: string;
184
- owners: string[];
185
- extends: typeof import("pmcf").Base;
186
- key: string;
187
- attributes: {
188
- networks: {
189
- type: string;
190
- collection: boolean;
191
- isKey: boolean;
192
- writable: boolean;
193
- mandatory: boolean;
194
- constructor?: Function;
195
- private?: boolean;
196
- credential?: boolean;
197
- persistent?: boolean;
198
- depends?: string;
199
- description?: string;
200
- default?: any;
201
- set?: Function;
202
- get?: Function;
203
- toInternal?: Function;
204
- toExternal?: Function;
205
- values?: Set<any>;
206
- externalName?: string;
207
- env?: string[] | string;
208
- additionalValues?: object;
209
- };
210
- hosts: {
211
- type: string;
212
- collection: boolean;
213
- isKey: boolean;
214
- writable: boolean;
215
- mandatory: boolean;
216
- constructor?: Function;
217
- private?: boolean;
218
- credential?: boolean;
219
- persistent?: boolean;
220
- depends?: string;
221
- description?: string;
222
- default?: any;
223
- set?: Function;
224
- get?: Function;
225
- toInternal?: Function;
226
- toExternal?: Function;
227
- values?: Set<any>;
228
- externalName?: string;
229
- env?: string[] | string;
230
- additionalValues?: object;
231
- };
232
- clusters: {
233
- type: string;
234
- collection: boolean;
235
- isKey: boolean;
236
- writable: boolean;
237
- mandatory: boolean;
238
- constructor?: Function;
239
- private?: boolean;
240
- credential?: boolean;
241
- persistent?: boolean;
242
- depends?: string;
243
- description?: string;
244
- default?: any;
245
- set?: Function;
246
- get?: Function;
247
- toInternal?: Function;
248
- toExternal?: Function;
249
- values?: Set<any>;
250
- externalName?: string;
251
- env?: string[] | string;
252
- additionalValues?: object;
253
- };
254
- subnets: {
255
- type: {
256
- name: string;
257
- owners: string[];
258
- constructWithIdentifierOnly: boolean;
259
- key: string;
260
- attributes: {
261
- address: import("pacc").AttributeDefinition;
262
- networks: {
263
- type: string;
264
- collection: boolean;
265
- isKey: boolean;
266
- writable: boolean;
267
- mandatory: boolean;
268
- constructor?: Function;
269
- private?: boolean;
270
- credential?: boolean;
271
- persistent?: boolean;
272
- depends?: string;
273
- description?: string;
274
- default?: any;
275
- set?: Function;
276
- get?: Function;
277
- toInternal?: Function;
278
- toExternal?: Function;
279
- values?: Set<any>;
280
- externalName?: string;
281
- env?: string[] | string;
282
- additionalValues?: object;
283
- };
284
- prefixLength: import("pacc").AttributeDefinition;
285
- family: import("pacc").AttributeDefinition;
286
- };
287
- };
288
- collection: boolean;
289
- isKey: boolean;
290
- writable: boolean;
291
- mandatory: boolean;
292
- constructor?: Function;
293
- private?: boolean;
294
- credential?: boolean;
295
- persistent?: boolean;
296
- depends?: string;
297
- description?: string;
298
- default?: any;
299
- set?: Function;
300
- get?: Function;
301
- toInternal?: Function;
302
- toExternal?: Function;
303
- values?: Set<any>;
304
- externalName?: string;
305
- env?: string[] | string;
306
- additionalValues?: object;
307
- };
308
- country: import("pacc").AttributeDefinition;
309
- domain: import("pacc").AttributeDefinition;
310
- domains: import("pacc").AttributeDefinition;
311
- timezone: import("pacc").AttributeDefinition;
312
- architectures: import("pacc").AttributeDefinition;
313
- locales: import("pacc").AttributeDefinition;
314
- administratorEmail: {
315
- writable: boolean;
316
- type: object;
317
- isKey: boolean;
318
- mandatory: boolean;
319
- collection: boolean;
320
- constructor?: Function;
321
- private?: boolean;
322
- credential?: boolean;
323
- persistent?: boolean;
324
- depends?: string;
325
- description?: string;
326
- default?: any;
327
- set?: Function;
328
- get?: Function;
329
- toInternal?: Function;
330
- toExternal?: Function;
331
- values?: Set<any>;
332
- externalName?: string;
333
- env?: string[] | string;
334
- additionalValues?: object;
335
- };
336
- template: {
337
- private: boolean;
338
- type: object;
339
- isKey: boolean;
340
- writable: boolean;
341
- mandatory: boolean;
342
- collection: boolean;
343
- constructor?: Function;
344
- credential?: boolean;
345
- persistent?: boolean;
346
- depends?: string;
347
- description?: string;
348
- default?: any;
349
- set?: Function;
350
- get?: Function;
351
- toInternal?: Function;
352
- toExternal?: Function;
353
- values?: Set<any>;
354
- externalName?: string;
355
- env?: string[] | string;
356
- additionalValues?: object;
357
- };
358
- };
359
- };
360
- key: string;
361
- attributes: {};
362
- };
363
- get location(): this;
364
- preparePackages(dir: any): AsyncGenerator<{
365
- sources: FileContentProvider[];
366
- outputs: Set<typeof import("npm-pkgbuild").DEBIAN | typeof import("npm-pkgbuild").ARCH | typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>;
367
- properties: {
368
- name: string;
369
- description: string;
370
- access: string;
371
- dependencies: {
372
- jq: string;
373
- };
374
- provides: string[];
375
- };
376
- }, void, unknown>;
377
- }
378
- import { Owner } from "pmcf";
379
- import { FileContentProvider } from "npm-pkgbuild";