pmcf 4.19.2 → 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 (81) hide show
  1. package/README.md +93 -72
  2. package/package.json +19 -19
  3. package/src/base.mjs +23 -241
  4. package/src/cli.mjs +4 -4
  5. package/src/cluster.mjs +13 -11
  6. package/src/extra-source-service.mjs +7 -10
  7. package/src/host.mjs +30 -44
  8. package/src/initialization-context.mjs +324 -0
  9. package/src/location.mjs +4 -14
  10. package/src/module.mjs +1 -0
  11. package/src/network-interfaces/ethernet.mjs +3 -5
  12. package/src/network-interfaces/loopback.mjs +2 -4
  13. package/src/network-interfaces/network-interface.mjs +3 -5
  14. package/src/network-interfaces/skeleton.mjs +9 -3
  15. package/src/network-interfaces/tun.mjs +2 -4
  16. package/src/network-interfaces/wireguard.mjs +3 -5
  17. package/src/network-interfaces/wlan.mjs +4 -7
  18. package/src/network.mjs +10 -8
  19. package/src/owner.mjs +7 -31
  20. package/src/root.mjs +4 -73
  21. package/src/service-owner.mjs +19 -18
  22. package/src/service.mjs +13 -18
  23. package/src/services/alpm.mjs +4 -9
  24. package/src/services/bind.mjs +424 -388
  25. package/src/services/chrony.mjs +3 -5
  26. package/src/services/headscale.mjs +2 -4
  27. package/src/services/influxdb.mjs +2 -4
  28. package/src/services/kea.mjs +6 -10
  29. package/src/services/mosquitto.mjs +2 -4
  30. package/src/services/openldap.mjs +2 -4
  31. package/src/services/postfix.mjs +2 -4
  32. package/src/services/systemd-journal-remote.mjs +2 -4
  33. package/src/services/systemd-journal-upload.mjs +9 -10
  34. package/src/services/systemd-journald.mjs +2 -4
  35. package/src/services/systemd-resolved.mjs +42 -42
  36. package/src/services/systemd-timesyncd.mjs +9 -13
  37. package/src/services/tailscale.mjs +5 -2
  38. package/src/subnet.mjs +9 -5
  39. package/types/base.d.mts +0 -180
  40. package/types/cli.d.mts +0 -10
  41. package/types/cluster.d.mts +0 -507
  42. package/types/dns-utils.d.mts +0 -14
  43. package/types/endpoint.d.mts +0 -79
  44. package/types/extra-source-service.d.mts +0 -1033
  45. package/types/hooks.d.mts +0 -2
  46. package/types/host-utils.d.mts +0 -1
  47. package/types/host.d.mts +0 -285
  48. package/types/location.d.mts +0 -379
  49. package/types/module.d.mts +0 -36
  50. package/types/network-address.d.mts +0 -41
  51. package/types/network-interfaces/ethernet.d.mts +0 -1189
  52. package/types/network-interfaces/loopback.d.mts +0 -1140
  53. package/types/network-interfaces/network-interface.d.mts +0 -1158
  54. package/types/network-interfaces/skeleton.d.mts +0 -30
  55. package/types/network-interfaces/tun.d.mts +0 -1131
  56. package/types/network-interfaces/wireguard.d.mts +0 -1131
  57. package/types/network-interfaces/wlan.d.mts +0 -1734
  58. package/types/network-support.d.mts +0 -193
  59. package/types/network.d.mts +0 -702
  60. package/types/owner.d.mts +0 -235
  61. package/types/root.d.mts +0 -10
  62. package/types/service-owner.d.mts +0 -14
  63. package/types/service-types.d.mts +0 -246
  64. package/types/service.d.mts +0 -689
  65. package/types/services/alpm.d.mts +0 -805
  66. package/types/services/bind.d.mts +0 -1574
  67. package/types/services/chrony.d.mts +0 -1310
  68. package/types/services/headscale.d.mts +0 -801
  69. package/types/services/influxdb.d.mts +0 -812
  70. package/types/services/kea.d.mts +0 -945
  71. package/types/services/mosquitto.d.mts +0 -876
  72. package/types/services/openldap.d.mts +0 -793
  73. package/types/services/postfix.d.mts +0 -784
  74. package/types/services/systemd-journal-remote.d.mts +0 -1030
  75. package/types/services/systemd-journal-upload.d.mts +0 -932
  76. package/types/services/systemd-journald.d.mts +0 -1317
  77. package/types/services/systemd-resolved.d.mts +0 -1644
  78. package/types/services/systemd-timesyncd.d.mts +0 -1459
  79. package/types/services/tailscale.d.mts +0 -781
  80. package/types/subnet.d.mts +0 -57
  81. 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;