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
@@ -1,702 +0,0 @@
1
- export namespace NetworkTypeDefinition {
2
- export let name: string;
3
- export let owners: string[];
4
- let _extends: {
5
- name: string;
6
- owners: string[];
7
- extends: typeof import("./base.mjs").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
- export { _extends as extends };
183
- export let key: string;
184
- export let attributes: {
185
- bridge: {
186
- type: string;
187
- collection: boolean;
188
- isKey: boolean;
189
- writable: boolean;
190
- mandatory: boolean;
191
- constructor?: Function;
192
- private?: boolean;
193
- credential?: boolean;
194
- persistent?: boolean;
195
- depends?: string;
196
- description?: string;
197
- default?: any;
198
- set?: Function;
199
- get?: Function;
200
- toInternal?: Function;
201
- toExternal?: Function;
202
- values?: Set<any>;
203
- externalName?: string;
204
- env?: string[] | string;
205
- additionalValues?: object;
206
- };
207
- gateway: {
208
- type: string;
209
- isKey: boolean;
210
- writable: boolean;
211
- mandatory: boolean;
212
- collection: boolean;
213
- constructor?: Function;
214
- private?: boolean;
215
- credential?: boolean;
216
- persistent?: boolean;
217
- depends?: string;
218
- description?: string;
219
- default?: any;
220
- set?: Function;
221
- get?: Function;
222
- toInternal?: Function;
223
- toExternal?: Function;
224
- values?: Set<any>;
225
- externalName?: string;
226
- env?: string[] | string;
227
- additionalValues?: object;
228
- };
229
- scope: {
230
- values: string[];
231
- type: object;
232
- isKey: boolean;
233
- writable: boolean;
234
- mandatory: boolean;
235
- collection: boolean;
236
- constructor?: Function;
237
- private?: boolean;
238
- credential?: boolean;
239
- persistent?: boolean;
240
- depends?: string;
241
- description?: string;
242
- default?: any;
243
- set?: Function;
244
- get?: Function;
245
- toInternal?: Function;
246
- toExternal?: Function;
247
- externalName?: string;
248
- env?: string[] | string;
249
- additionalValues?: object;
250
- };
251
- class: {
252
- values: string[];
253
- type: object;
254
- isKey: boolean;
255
- writable: boolean;
256
- mandatory: boolean;
257
- collection: boolean;
258
- constructor?: Function;
259
- private?: boolean;
260
- credential?: boolean;
261
- persistent?: boolean;
262
- depends?: string;
263
- description?: string;
264
- default?: any;
265
- set?: Function;
266
- get?: Function;
267
- toInternal?: Function;
268
- toExternal?: Function;
269
- externalName?: string;
270
- env?: string[] | string;
271
- additionalValues?: object;
272
- };
273
- kind: {
274
- values: string[];
275
- type: object;
276
- isKey: boolean;
277
- writable: boolean;
278
- mandatory: boolean;
279
- collection: boolean;
280
- constructor?: Function;
281
- private?: boolean;
282
- credential?: boolean;
283
- persistent?: boolean;
284
- depends?: string;
285
- description?: string;
286
- default?: any;
287
- set?: Function;
288
- get?: Function;
289
- toInternal?: Function;
290
- toExternal?: Function;
291
- externalName?: string;
292
- env?: string[] | string;
293
- additionalValues?: object;
294
- };
295
- ssid: import("pacc").AttributeDefinition;
296
- psk: import("pacc").AttributeDefinition;
297
- secretName: import("pacc").AttributeDefinition;
298
- metric: {
299
- type: object;
300
- isKey: boolean;
301
- writable: boolean;
302
- mandatory: boolean;
303
- collection: boolean;
304
- constructor?: Function;
305
- private?: boolean;
306
- credential?: boolean;
307
- persistent?: boolean;
308
- depends?: string;
309
- description?: string;
310
- default?: any;
311
- set?: Function;
312
- get?: Function;
313
- toInternal?: Function;
314
- toExternal?: Function;
315
- values?: Set<any>;
316
- externalName?: string;
317
- env?: string[] | string;
318
- additionalValues?: object;
319
- };
320
- mtu: {
321
- default: number;
322
- type: object;
323
- isKey: boolean;
324
- writable: boolean;
325
- mandatory: boolean;
326
- collection: boolean;
327
- constructor?: Function;
328
- private?: boolean;
329
- credential?: boolean;
330
- persistent?: boolean;
331
- depends?: string;
332
- description?: string;
333
- set?: Function;
334
- get?: Function;
335
- toInternal?: Function;
336
- toExternal?: Function;
337
- values?: Set<any>;
338
- externalName?: string;
339
- env?: string[] | string;
340
- additionalValues?: object;
341
- };
342
- multicastDNS: import("pacc").AttributeDefinition;
343
- };
344
- }
345
- export class Network extends Owner {
346
- static get typeDefinition(): {
347
- name: string;
348
- owners: string[];
349
- extends: {
350
- name: string;
351
- owners: string[];
352
- extends: typeof import("./base.mjs").Base;
353
- key: string;
354
- attributes: {
355
- networks: {
356
- type: string;
357
- collection: boolean;
358
- isKey: boolean;
359
- writable: boolean;
360
- mandatory: boolean;
361
- constructor?: Function;
362
- private?: boolean;
363
- credential?: boolean;
364
- persistent?: boolean;
365
- depends?: string;
366
- description?: string;
367
- default?: any;
368
- set?: Function;
369
- get?: Function;
370
- toInternal?: Function;
371
- toExternal?: Function;
372
- values?: Set<any>;
373
- externalName?: string;
374
- env?: string[] | string;
375
- additionalValues?: object;
376
- };
377
- hosts: {
378
- type: string;
379
- collection: boolean;
380
- isKey: boolean;
381
- writable: boolean;
382
- mandatory: boolean;
383
- constructor?: Function;
384
- private?: boolean;
385
- credential?: boolean;
386
- persistent?: boolean;
387
- depends?: string;
388
- description?: string;
389
- default?: any;
390
- set?: Function;
391
- get?: Function;
392
- toInternal?: Function;
393
- toExternal?: Function;
394
- values?: Set<any>;
395
- externalName?: string;
396
- env?: string[] | string;
397
- additionalValues?: object;
398
- };
399
- clusters: {
400
- type: string;
401
- collection: boolean;
402
- isKey: boolean;
403
- writable: boolean;
404
- mandatory: boolean;
405
- constructor?: Function;
406
- private?: boolean;
407
- credential?: boolean;
408
- persistent?: boolean;
409
- depends?: string;
410
- description?: string;
411
- default?: any;
412
- set?: Function;
413
- get?: Function;
414
- toInternal?: Function;
415
- toExternal?: Function;
416
- values?: Set<any>;
417
- externalName?: string;
418
- env?: string[] | string;
419
- additionalValues?: object;
420
- };
421
- subnets: {
422
- type: {
423
- name: string;
424
- owners: string[];
425
- constructWithIdentifierOnly: boolean;
426
- key: string;
427
- attributes: {
428
- address: import("pacc").AttributeDefinition;
429
- networks: {
430
- type: string;
431
- collection: boolean;
432
- isKey: boolean;
433
- writable: boolean;
434
- mandatory: boolean;
435
- constructor?: Function;
436
- private?: boolean;
437
- credential?: boolean;
438
- persistent?: boolean;
439
- depends?: string;
440
- description?: string;
441
- default?: any;
442
- set?: Function;
443
- get?: Function;
444
- toInternal?: Function;
445
- toExternal?: Function;
446
- values?: Set<any>;
447
- externalName?: string;
448
- env?: string[] | string;
449
- additionalValues?: object;
450
- };
451
- prefixLength: import("pacc").AttributeDefinition;
452
- family: import("pacc").AttributeDefinition;
453
- };
454
- };
455
- collection: boolean;
456
- isKey: boolean;
457
- writable: boolean;
458
- mandatory: boolean;
459
- constructor?: Function;
460
- private?: boolean;
461
- credential?: boolean;
462
- persistent?: boolean;
463
- depends?: string;
464
- description?: string;
465
- default?: any;
466
- set?: Function;
467
- get?: Function;
468
- toInternal?: Function;
469
- toExternal?: Function;
470
- values?: Set<any>;
471
- externalName?: string;
472
- env?: string[] | string;
473
- additionalValues?: object;
474
- };
475
- country: import("pacc").AttributeDefinition;
476
- domain: import("pacc").AttributeDefinition;
477
- domains: import("pacc").AttributeDefinition;
478
- timezone: import("pacc").AttributeDefinition;
479
- architectures: import("pacc").AttributeDefinition;
480
- locales: import("pacc").AttributeDefinition;
481
- administratorEmail: {
482
- writable: boolean;
483
- type: object;
484
- isKey: boolean;
485
- mandatory: boolean;
486
- collection: boolean;
487
- constructor?: Function;
488
- private?: boolean;
489
- credential?: boolean;
490
- persistent?: boolean;
491
- depends?: string;
492
- description?: string;
493
- default?: any;
494
- set?: Function;
495
- get?: Function;
496
- toInternal?: Function;
497
- toExternal?: Function;
498
- values?: Set<any>;
499
- externalName?: string;
500
- env?: string[] | string;
501
- additionalValues?: object;
502
- };
503
- template: {
504
- private: boolean;
505
- type: object;
506
- isKey: boolean;
507
- writable: boolean;
508
- mandatory: boolean;
509
- collection: boolean;
510
- constructor?: Function;
511
- credential?: boolean;
512
- persistent?: boolean;
513
- depends?: string;
514
- description?: string;
515
- default?: any;
516
- set?: Function;
517
- get?: Function;
518
- toInternal?: Function;
519
- toExternal?: Function;
520
- values?: Set<any>;
521
- externalName?: string;
522
- env?: string[] | string;
523
- additionalValues?: object;
524
- };
525
- };
526
- };
527
- key: string;
528
- attributes: {
529
- bridge: {
530
- type: string;
531
- collection: boolean;
532
- isKey: boolean;
533
- writable: boolean;
534
- mandatory: boolean;
535
- constructor?: Function;
536
- private?: boolean;
537
- credential?: boolean;
538
- persistent?: boolean;
539
- depends?: string;
540
- description?: string;
541
- default?: any;
542
- set?: Function;
543
- get?: Function;
544
- toInternal?: Function;
545
- toExternal?: Function;
546
- values?: Set<any>;
547
- externalName?: string;
548
- env?: string[] | string;
549
- additionalValues?: object;
550
- };
551
- gateway: {
552
- type: string;
553
- isKey: boolean;
554
- writable: boolean;
555
- mandatory: boolean;
556
- collection: boolean;
557
- constructor?: Function;
558
- private?: boolean;
559
- credential?: boolean;
560
- persistent?: boolean;
561
- depends?: string;
562
- description?: string;
563
- default?: any;
564
- set?: Function;
565
- get?: Function;
566
- toInternal?: Function;
567
- toExternal?: Function;
568
- values?: Set<any>;
569
- externalName?: string;
570
- env?: string[] | string;
571
- additionalValues?: object;
572
- };
573
- scope: {
574
- values: string[];
575
- type: object;
576
- isKey: boolean;
577
- writable: boolean;
578
- mandatory: boolean;
579
- collection: boolean;
580
- constructor?: Function;
581
- private?: boolean;
582
- credential?: boolean;
583
- persistent?: boolean;
584
- depends?: string;
585
- description?: string;
586
- default?: any;
587
- set?: Function;
588
- get?: Function;
589
- toInternal?: Function;
590
- toExternal?: Function;
591
- externalName?: string;
592
- env?: string[] | string;
593
- additionalValues?: object;
594
- };
595
- class: {
596
- values: string[];
597
- type: object;
598
- isKey: boolean;
599
- writable: boolean;
600
- mandatory: boolean;
601
- collection: boolean;
602
- constructor?: Function;
603
- private?: boolean;
604
- credential?: boolean;
605
- persistent?: boolean;
606
- depends?: string;
607
- description?: string;
608
- default?: any;
609
- set?: Function;
610
- get?: Function;
611
- toInternal?: Function;
612
- toExternal?: Function;
613
- externalName?: string;
614
- env?: string[] | string;
615
- additionalValues?: object;
616
- };
617
- kind: {
618
- values: string[];
619
- type: object;
620
- isKey: boolean;
621
- writable: boolean;
622
- mandatory: boolean;
623
- collection: boolean;
624
- constructor?: Function;
625
- private?: boolean;
626
- credential?: boolean;
627
- persistent?: boolean;
628
- depends?: string;
629
- description?: string;
630
- default?: any;
631
- set?: Function;
632
- get?: Function;
633
- toInternal?: Function;
634
- toExternal?: Function;
635
- externalName?: string;
636
- env?: string[] | string;
637
- additionalValues?: object;
638
- };
639
- ssid: import("pacc").AttributeDefinition;
640
- psk: import("pacc").AttributeDefinition;
641
- secretName: import("pacc").AttributeDefinition;
642
- metric: {
643
- type: object;
644
- isKey: boolean;
645
- writable: boolean;
646
- mandatory: boolean;
647
- collection: boolean;
648
- constructor?: Function;
649
- private?: boolean;
650
- credential?: boolean;
651
- persistent?: boolean;
652
- depends?: string;
653
- description?: string;
654
- default?: any;
655
- set?: Function;
656
- get?: Function;
657
- toInternal?: Function;
658
- toExternal?: Function;
659
- values?: Set<any>;
660
- externalName?: string;
661
- env?: string[] | string;
662
- additionalValues?: object;
663
- };
664
- mtu: {
665
- default: number;
666
- type: object;
667
- isKey: boolean;
668
- writable: boolean;
669
- mandatory: boolean;
670
- collection: boolean;
671
- constructor?: Function;
672
- private?: boolean;
673
- credential?: boolean;
674
- persistent?: boolean;
675
- depends?: string;
676
- description?: string;
677
- set?: Function;
678
- get?: Function;
679
- toInternal?: Function;
680
- toExternal?: Function;
681
- values?: Set<any>;
682
- externalName?: string;
683
- env?: string[] | string;
684
- additionalValues?: object;
685
- };
686
- multicastDNS: import("pacc").AttributeDefinition;
687
- };
688
- };
689
- kind: any;
690
- scope: any;
691
- metric: any;
692
- gateway: any;
693
- _bridge: any;
694
- get network(): this;
695
- get address(): any;
696
- set bridge(network: any);
697
- get bridge(): any;
698
- set secretName(value: any);
699
- get secretName(): any;
700
- _secretName: any;
701
- }
702
- import { Owner } from "./owner.mjs";