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,57 +0,0 @@
1
- export function subnets(sources: any): Set<any>;
2
- export class Subnet extends Base {
3
- static get typeDefinition(): {
4
- name: string;
5
- owners: string[];
6
- constructWithIdentifierOnly: boolean;
7
- key: string;
8
- attributes: {
9
- address: import("pacc").AttributeDefinition;
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
- prefixLength: import("pacc").AttributeDefinition;
33
- family: import("pacc").AttributeDefinition;
34
- };
35
- };
36
- constructor(owner: any, address: any);
37
- networks: Set<any>;
38
- prefix: any;
39
- prefixLength: any;
40
- longPrefix: any;
41
- family: any;
42
- get cidr(): string;
43
- get fullName(): string;
44
- matchesAddress(address: any): any;
45
- get isLinkLocal(): any;
46
- get addressRange(): any;
47
- get dhcpPools(): any[];
48
- get address(): string;
49
- get longAddress(): string;
50
- _traverse(...args: any[]): boolean;
51
- }
52
- export const SUBNET_GLOBAL_IPV4: Subnet;
53
- export const SUBNET_GLOBAL_IPV6: Subnet;
54
- export const SUBNET_LOCALHOST_IPV4: Subnet;
55
- export const SUBNET_LOCALHOST_IPV6: Subnet;
56
- export const SUBNET_LINK_LOCAL_IPV6: Subnet;
57
- import { Base } from "./base.mjs";
package/types/utils.d.mts DELETED
@@ -1,37 +0,0 @@
1
- export function yesno(flag: any): "no" | "yes";
2
- /**
3
- * Appends default domain if name does not already have a domain.
4
- * @param {string} name
5
- * @param {string} [defaultDomain]
6
- * @returns {string|undefined}
7
- */
8
- export function domainName(name: string, defaultDomain?: string): string | undefined;
9
- /**
10
- * Extracts domain name from a name.
11
- * @param {string} domainName
12
- * @param {string} [defaultDomain]
13
- * @returns {string|undefined}
14
- */
15
- export function domainFromDominName(domainName: string, defaultDomain?: string): string | undefined;
16
- export function writeLines(dir: any, name: any, lines: any): Promise<void>;
17
- /**
18
- *
19
- * @param {string} sectionName
20
- * @param {Object} values
21
- * @returns {Array<string>}
22
- */
23
- export function sectionLines(sectionName: string, values: any): Array<string>;
24
- export function setionLinesFromPropertyIterator(properties: any): Generator<string, void, unknown>;
25
- export function bridgeToJSON(bridge: any): any[];
26
- /**
27
- * @param {any} value
28
- * @returns {Array<any>}
29
- */
30
- export function asArray(value: any): Array<any>;
31
- /**
32
- * @param {any} value
33
- * @returns {Iterable<any>}
34
- */
35
- export function asIterator(value: any): Iterable<any>;
36
- export function union(value: any, present?: Set<any>): Set<any>;
37
- export function filterConfigurable(name: any, attribute: any): number;