pmcf 6.41.3 → 6.41.5
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/README.md +21 -21
- package/bin/pmcf-info +11 -2
- package/package.json +1 -1
- package/src/common-attributes.mjs +1 -1
- package/src/core-service.mjs +2 -0
package/README.md
CHANGED
|
@@ -82,29 +82,29 @@ generates config packages for:
|
|
|
82
82
|
* [domainNames](#domainnames)
|
|
83
83
|
* [InitializationContext](#initializationcontext)
|
|
84
84
|
* [Parameters](#parameters-14)
|
|
85
|
-
* [SkeletonNetworkInterface](#skeletonnetworkinterface)
|
|
86
|
-
* [networkAddresses](#networkaddresses)
|
|
87
|
-
* [Parameters](#parameters-15)
|
|
88
85
|
* [zones](#zones)
|
|
89
86
|
* [addressesStatement](#addressesstatement)
|
|
90
|
-
* [Parameters](#parameters-
|
|
87
|
+
* [Parameters](#parameters-15)
|
|
91
88
|
* [SystemdJournalRemoteService](#systemdjournalremoteservice)
|
|
92
89
|
* [Properties](#properties)
|
|
93
90
|
* [systemdConfigs](#systemdconfigs)
|
|
94
|
-
* [Parameters](#parameters-
|
|
91
|
+
* [Parameters](#parameters-16)
|
|
95
92
|
* [SystemdJournalUploadService](#systemdjournaluploadservice)
|
|
96
93
|
* [Properties](#properties-1)
|
|
97
94
|
* [systemdConfigs](#systemdconfigs-1)
|
|
98
|
-
* [Parameters](#parameters-
|
|
95
|
+
* [Parameters](#parameters-17)
|
|
99
96
|
* [NetworkAddress](#networkaddress)
|
|
100
|
-
* [Parameters](#parameters-
|
|
97
|
+
* [Parameters](#parameters-18)
|
|
101
98
|
* [subnet](#subnet)
|
|
102
99
|
* [networkInterface](#networkinterface)
|
|
103
100
|
* [address](#address)
|
|
104
101
|
* [addresses](#addresses)
|
|
105
|
-
* [Parameters](#parameters-
|
|
102
|
+
* [Parameters](#parameters-19)
|
|
106
103
|
* [cidrAddresses](#cidraddresses)
|
|
107
|
-
* [Parameters](#parameters-
|
|
104
|
+
* [Parameters](#parameters-20)
|
|
105
|
+
* [SkeletonNetworkInterface](#skeletonnetworkinterface)
|
|
106
|
+
* [networkAddresses](#networkaddresses)
|
|
107
|
+
* [Parameters](#parameters-21)
|
|
108
108
|
* [families](#families)
|
|
109
109
|
* [secretName](#secretname)
|
|
110
110
|
* [directHosts](#directhosts)
|
|
@@ -309,18 +309,6 @@ Keeps track of all in flight object creations and loose ends during config initi
|
|
|
309
309
|
|
|
310
310
|
* `directory` (optional, default `"/"`)
|
|
311
311
|
|
|
312
|
-
## SkeletonNetworkInterface
|
|
313
|
-
|
|
314
|
-
**Extends ServiceOwner**
|
|
315
|
-
|
|
316
|
-
### networkAddresses
|
|
317
|
-
|
|
318
|
-
#### Parameters
|
|
319
|
-
|
|
320
|
-
* `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
|
|
321
|
-
|
|
322
|
-
Returns **Iterable<[NetworkAddress](#networkaddress)>** 
|
|
323
|
-
|
|
324
312
|
## zones
|
|
325
313
|
|
|
326
314
|
Type: [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<bind\_zone>
|
|
@@ -411,6 +399,18 @@ Returns **Iterable<[string](https://developer.mozilla.org/docs/Web/JavaScript/Re
|
|
|
411
399
|
|
|
412
400
|
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** 
|
|
413
401
|
|
|
402
|
+
## SkeletonNetworkInterface
|
|
403
|
+
|
|
404
|
+
**Extends ServiceOwner**
|
|
405
|
+
|
|
406
|
+
### networkAddresses
|
|
407
|
+
|
|
408
|
+
#### Parameters
|
|
409
|
+
|
|
410
|
+
* `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
|
|
411
|
+
|
|
412
|
+
Returns **Iterable<[NetworkAddress](#networkaddress)>** 
|
|
413
|
+
|
|
414
414
|
## families
|
|
415
415
|
|
|
416
416
|
Returns **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** 
|
package/bin/pmcf-info
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { extendingAttributeIterator } from "pacc";
|
|
3
|
+
import { AggregatedMap } from "aggregated-map";
|
|
4
|
+
|
|
3
5
|
import { prepare } from "../src/cli.mjs";
|
|
4
6
|
|
|
5
7
|
const { root, args, options } = await prepare({
|
|
@@ -34,6 +36,13 @@ function show(value, indent, options) {
|
|
|
34
36
|
return;
|
|
35
37
|
}
|
|
36
38
|
|
|
39
|
+
if (value instanceof AggregatedMap || value instanceof Map) {
|
|
40
|
+
for (const v of value.values()) {
|
|
41
|
+
show(v, indent + 1, options);
|
|
42
|
+
}
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
|
|
37
46
|
if (value instanceof Iterator || Array.isArray(value)) {
|
|
38
47
|
for (const v of value) {
|
|
39
48
|
show(v, indent + 1, options);
|
|
@@ -114,8 +123,8 @@ function show(value, indent, options) {
|
|
|
114
123
|
} else {
|
|
115
124
|
if (typeof v.get === "function") {
|
|
116
125
|
console.log(name(attribute));
|
|
117
|
-
for(const [k,o] of v) {
|
|
118
|
-
show(o,indent + 2, options);
|
|
126
|
+
for (const [k, o] of v) {
|
|
127
|
+
show(o, indent + 2, options);
|
|
119
128
|
}
|
|
120
129
|
} else {
|
|
121
130
|
try {
|
package/package.json
CHANGED
|
@@ -158,7 +158,7 @@ export const endpointAttributes = {
|
|
|
158
158
|
name: "protocol",
|
|
159
159
|
values: new Set(["tcp", "udp", "quic"])
|
|
160
160
|
},
|
|
161
|
-
|
|
161
|
+
type: { ...string_attribute, name: "type" },
|
|
162
162
|
tls: { ...boolean_attribute_false, name: "tls" },
|
|
163
163
|
address: { ...string_attribute, name: "address" }
|
|
164
164
|
};
|
package/src/core-service.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
} from "ip-utilties";
|
|
7
7
|
import {
|
|
8
8
|
string_attribute_writable,
|
|
9
|
+
string_set_attribute_writable,
|
|
9
10
|
number_attribute_writable,
|
|
10
11
|
priority_attribute,
|
|
11
12
|
asArray
|
|
@@ -65,6 +66,7 @@ export class CoreService extends base {
|
|
|
65
66
|
},
|
|
66
67
|
priority: priority_attribute,
|
|
67
68
|
weight: { ...number_attribute_writable, name: "weight" /*default: 1*/ },
|
|
69
|
+
types: { ...string_set_attribute_writable, name: "types"},
|
|
68
70
|
systemdService: { ...string_attribute_writable, name: "systemdService" },
|
|
69
71
|
systemUserName: { ...string_attribute_writable, name: "systemUserName" },
|
|
70
72
|
systemGroupName: { ...string_attribute_writable, name: "systemGroupName" }
|