pmcf 6.38.0 → 6.38.2
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 +98 -97
- package/package.json +1 -1
- package/src/content.mjs +4 -16
- package/src/owner.mjs +0 -9
package/README.md
CHANGED
|
@@ -42,217 +42,218 @@ generates config packages for:
|
|
|
42
42
|
### Table of Contents
|
|
43
43
|
|
|
44
44
|
* [Base](#base)
|
|
45
|
-
* [Parameters](#parameters)
|
|
46
|
-
* [mapFromDirections](#mapfromdirections)
|
|
47
|
-
* [Parameters](#parameters-1)
|
|
48
|
-
* [unionFromDirections](#unionfromdirections)
|
|
49
|
-
* [Parameters](#parameters-2)
|
|
50
|
-
* [walkDirections](#walkdirections)
|
|
51
|
-
* [Parameters](#parameters-3)
|
|
52
|
-
* [attribute](#attribute)
|
|
53
|
-
* [Parameters](#parameters-4)
|
|
54
|
-
* [attributeIterator](#attributeiterator)
|
|
55
|
-
* [Parameters](#parameters-5)
|
|
56
|
-
* [getAttributes](#getattributes)
|
|
57
|
-
* [Parameters](#parameters-6)
|
|
58
|
-
* [property](#property)
|
|
59
|
-
* [Parameters](#parameters-7)
|
|
60
45
|
* [enabled](#enabled)
|
|
61
46
|
* [priority](#priority)
|
|
62
|
-
* [expression](#expression)
|
|
63
|
-
* [Parameters](#parameters-8)
|
|
64
47
|
* [templateContentAttributes](#templatecontentattributes)
|
|
65
|
-
* [Parameters](#parameters
|
|
48
|
+
* [Parameters](#parameters)
|
|
66
49
|
* [templateContent](#templatecontent)
|
|
67
|
-
* [Parameters](#parameters-
|
|
50
|
+
* [Parameters](#parameters-1)
|
|
68
51
|
* [isTemplate](#istemplate)
|
|
69
|
-
|
|
70
|
-
* [Parameters](#parameters-11)
|
|
52
|
+
* [access](#access)
|
|
71
53
|
* [serviceEndpoints](#serviceendpoints)
|
|
72
|
-
* [Parameters](#parameters-
|
|
54
|
+
* [Parameters](#parameters-2)
|
|
55
|
+
* [attributeIterator](#attributeiterator)
|
|
56
|
+
* [Parameters](#parameters-3)
|
|
57
|
+
* [getAttributes](#getattributes)
|
|
58
|
+
* [Parameters](#parameters-4)
|
|
59
|
+
* [property](#property)
|
|
60
|
+
* [Parameters](#parameters-5)
|
|
61
|
+
* [attribute](#attribute)
|
|
62
|
+
* [Parameters](#parameters-6)
|
|
63
|
+
* [walkDirections](#walkdirections)
|
|
64
|
+
* [Parameters](#parameters-7)
|
|
65
|
+
* [mapFromDirections](#mapfromdirections)
|
|
66
|
+
* [Parameters](#parameters-8)
|
|
67
|
+
* [unionFromDirections](#unionfromdirections)
|
|
68
|
+
* [Parameters](#parameters-9)
|
|
69
|
+
* [expand](#expand)
|
|
70
|
+
* [Parameters](#parameters-10)
|
|
71
|
+
* [expression](#expression)
|
|
72
|
+
* [Parameters](#parameters-11)
|
|
73
73
|
* [PortEndpoint](#portendpoint)
|
|
74
|
-
* [Parameters](#parameters-
|
|
74
|
+
* [Parameters](#parameters-12)
|
|
75
75
|
* [port](#port)
|
|
76
76
|
* [socketAddress](#socketaddress)
|
|
77
77
|
* [HTTPEndpoint](#httpendpoint)
|
|
78
|
-
* [Parameters](#parameters-
|
|
78
|
+
* [Parameters](#parameters-13)
|
|
79
79
|
* [port](#port-1)
|
|
80
80
|
* [domainNames](#domainnames)
|
|
81
81
|
* [InitializationContext](#initializationcontext)
|
|
82
|
-
* [Parameters](#parameters-
|
|
82
|
+
* [Parameters](#parameters-14)
|
|
83
83
|
* [SkeletonNetworkInterface](#skeletonnetworkinterface)
|
|
84
84
|
* [networkAddresses](#networkaddresses)
|
|
85
|
-
* [Parameters](#parameters-
|
|
85
|
+
* [Parameters](#parameters-15)
|
|
86
86
|
* [zones](#zones)
|
|
87
87
|
* [addressesStatement](#addressesstatement)
|
|
88
|
-
* [Parameters](#parameters-
|
|
88
|
+
* [Parameters](#parameters-16)
|
|
89
89
|
* [SystemdJournalRemoteService](#systemdjournalremoteservice)
|
|
90
90
|
* [Properties](#properties)
|
|
91
91
|
* [systemdConfigs](#systemdconfigs)
|
|
92
|
-
* [Parameters](#parameters-
|
|
92
|
+
* [Parameters](#parameters-17)
|
|
93
93
|
* [SystemdJournalUploadService](#systemdjournaluploadservice)
|
|
94
94
|
* [Properties](#properties-1)
|
|
95
95
|
* [systemdConfigs](#systemdconfigs-1)
|
|
96
|
-
* [Parameters](#parameters-
|
|
96
|
+
* [Parameters](#parameters-18)
|
|
97
97
|
* [NetworkAddress](#networkaddress)
|
|
98
|
-
* [Parameters](#parameters-
|
|
98
|
+
* [Parameters](#parameters-19)
|
|
99
99
|
* [subnet](#subnet)
|
|
100
100
|
* [networkInterface](#networkinterface)
|
|
101
101
|
* [address](#address)
|
|
102
102
|
* [addresses](#addresses)
|
|
103
|
-
* [Parameters](#parameters-
|
|
103
|
+
* [Parameters](#parameters-20)
|
|
104
104
|
* [cidrAddresses](#cidraddresses)
|
|
105
|
-
* [Parameters](#parameters-
|
|
105
|
+
* [Parameters](#parameters-21)
|
|
106
106
|
* [families](#families)
|
|
107
107
|
* [secretName](#secretname)
|
|
108
108
|
* [directHosts](#directhosts)
|
|
109
109
|
* [subnetForAddress](#subnetforaddress)
|
|
110
|
-
* [Parameters](#parameters-
|
|
110
|
+
* [Parameters](#parameters-22)
|
|
111
111
|
* [domainName](#domainname)
|
|
112
|
-
* [Parameters](#parameters-
|
|
112
|
+
* [Parameters](#parameters-23)
|
|
113
113
|
* [domainFromDominName](#domainfromdominname)
|
|
114
|
-
* [Parameters](#parameters-
|
|
114
|
+
* [Parameters](#parameters-24)
|
|
115
115
|
* [sectionLines](#sectionlines)
|
|
116
|
-
* [Parameters](#parameters-
|
|
116
|
+
* [Parameters](#parameters-25)
|
|
117
117
|
|
|
118
118
|
## Base
|
|
119
119
|
|
|
120
|
+
**Extends Core**
|
|
121
|
+
|
|
120
122
|
attributes: as declared in the types
|
|
121
123
|
properties: use defined values to support attribute value definitions
|
|
122
124
|
|
|
123
|
-
###
|
|
125
|
+
### enabled
|
|
124
126
|
|
|
125
|
-
|
|
126
|
-
* `data`  
|
|
127
|
+
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
127
128
|
|
|
128
|
-
###
|
|
129
|
+
### priority
|
|
129
130
|
|
|
130
|
-
|
|
131
|
+
Returns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 
|
|
131
132
|
|
|
132
|
-
|
|
133
|
+
### templateContentAttributes
|
|
133
134
|
|
|
134
|
-
|
|
135
|
-
* `property` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
135
|
+
#### Parameters
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
* `dir` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
### templateContent
|
|
142
142
|
|
|
143
143
|
#### Parameters
|
|
144
144
|
|
|
145
|
-
* `
|
|
146
|
-
* `
|
|
145
|
+
* `entryProperties` **any** 
|
|
146
|
+
* `directoryProperties` **any** 
|
|
147
147
|
|
|
148
|
-
Returns **
|
|
148
|
+
Returns **AsyncIterable\<ContentProvider>** 
|
|
149
149
|
|
|
150
|
-
###
|
|
150
|
+
### isTemplate
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
## access
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
## serviceEndpoints
|
|
159
159
|
|
|
160
|
-
###
|
|
160
|
+
### Parameters
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
* `sources` **any** 
|
|
163
|
+
* `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** (optional, default `{}`)
|
|
163
164
|
|
|
164
|
-
* `
|
|
165
|
+
* `options.services` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** filter for services
|
|
166
|
+
* `options.endpoints` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** filter for endpoints
|
|
167
|
+
* `options.select` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** mapper from Endpoint into result
|
|
168
|
+
* `options.limit` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** upper limit of # result items
|
|
169
|
+
* `options.join` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** join result(s) into a string
|
|
165
170
|
|
|
166
|
-
Returns **any** 
|
|
171
|
+
Returns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | any)** 
|
|
167
172
|
|
|
168
|
-
|
|
173
|
+
## attributeIterator
|
|
169
174
|
|
|
170
175
|
Retrive attribute values from an object.
|
|
171
176
|
|
|
172
|
-
|
|
177
|
+
### Parameters
|
|
173
178
|
|
|
174
179
|
* `filter` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** 
|
|
175
180
|
|
|
176
181
|
Returns **Iterable<\[[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), any]>** values
|
|
177
182
|
|
|
178
|
-
|
|
183
|
+
## getAttributes
|
|
179
184
|
|
|
180
185
|
Retrive attribute values from an object.
|
|
181
186
|
|
|
182
|
-
|
|
187
|
+
### Parameters
|
|
183
188
|
|
|
184
189
|
* `filter` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** (optional, default `filterPublic`)
|
|
185
190
|
|
|
186
191
|
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** values
|
|
187
192
|
|
|
188
|
-
|
|
193
|
+
## property
|
|
189
194
|
|
|
190
|
-
|
|
195
|
+
### Parameters
|
|
191
196
|
|
|
192
197
|
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
193
198
|
|
|
194
199
|
Returns **any** 
|
|
195
200
|
|
|
196
|
-
|
|
201
|
+
## attribute
|
|
197
202
|
|
|
198
|
-
|
|
203
|
+
### Parameters
|
|
199
204
|
|
|
200
|
-
|
|
205
|
+
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
201
206
|
|
|
202
|
-
Returns **
|
|
207
|
+
Returns **any** 
|
|
203
208
|
|
|
204
|
-
|
|
209
|
+
## walkDirections
|
|
205
210
|
|
|
206
|
-
|
|
211
|
+
Walk the object graph in some directions and deliver seen nodes.
|
|
207
212
|
|
|
208
|
-
|
|
209
|
-
* `options` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
213
|
+
### Parameters
|
|
210
214
|
|
|
211
|
-
|
|
215
|
+
* `directions` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** (optional, default `["this","extends","owner"]`)
|
|
212
216
|
|
|
213
|
-
|
|
217
|
+
Returns **Iterable\<Core>** 
|
|
214
218
|
|
|
215
|
-
|
|
219
|
+
## mapFromDirections
|
|
216
220
|
|
|
217
|
-
|
|
221
|
+
Deliver AggregatedMap of all property Maps.
|
|
218
222
|
|
|
219
|
-
|
|
223
|
+
### Parameters
|
|
220
224
|
|
|
221
|
-
|
|
225
|
+
* `directions` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** 
|
|
226
|
+
* `property` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
222
227
|
|
|
223
|
-
|
|
228
|
+
Returns **[Map](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)\<any, any>** 
|
|
224
229
|
|
|
225
|
-
|
|
226
|
-
* `directoryProperties` **any** 
|
|
230
|
+
## unionFromDirections
|
|
227
231
|
|
|
228
|
-
|
|
232
|
+
Deliver union set of all property values.
|
|
229
233
|
|
|
230
|
-
###
|
|
234
|
+
### Parameters
|
|
231
235
|
|
|
232
|
-
|
|
236
|
+
* `directions` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** 
|
|
237
|
+
* `property` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
233
238
|
|
|
234
|
-
|
|
239
|
+
Returns **[Set](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<any>** 
|
|
235
240
|
|
|
236
|
-
|
|
241
|
+
## expand
|
|
242
|
+
|
|
243
|
+
### Parameters
|
|
237
244
|
|
|
238
245
|
* `object` **any** 
|
|
239
246
|
|
|
240
247
|
Returns **any** 
|
|
241
248
|
|
|
242
|
-
##
|
|
249
|
+
## expression
|
|
243
250
|
|
|
244
251
|
### Parameters
|
|
245
252
|
|
|
246
|
-
* `
|
|
247
|
-
* `options` **[
|
|
248
|
-
|
|
249
|
-
* `options.services` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** filter for services
|
|
250
|
-
* `options.endpoints` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** filter for endpoints
|
|
251
|
-
* `options.select` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** mapper from Endpoint into result
|
|
252
|
-
* `options.limit` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)?** upper limit of # result items
|
|
253
|
-
* `options.join` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** join result(s) into a string
|
|
253
|
+
* `expression` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
254
|
+
* `options` **[object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
254
255
|
|
|
255
|
-
Returns **
|
|
256
|
+
Returns **any** 
|
|
256
257
|
|
|
257
258
|
## PortEndpoint
|
|
258
259
|
|
package/package.json
CHANGED
package/src/content.mjs
CHANGED
|
@@ -52,11 +52,11 @@ export class content extends Core {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
_permissions = new Map();
|
|
55
|
+
_packaging = new Set();
|
|
55
56
|
_provides = new Set();
|
|
56
57
|
_replaces = new Set();
|
|
57
58
|
_depends = new Set();
|
|
58
59
|
_optional = new Set();
|
|
59
|
-
_packaging = new Set();
|
|
60
60
|
_groups = new Set();
|
|
61
61
|
|
|
62
62
|
get name() {
|
|
@@ -84,25 +84,13 @@ export class content extends Core {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
get packaging() {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (dp) {
|
|
90
|
-
return this._packaging.union(dp);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return this._packaging;
|
|
87
|
+
return this.unionFromDirections(["this", "extends"], "_packaging")
|
|
94
88
|
}
|
|
95
89
|
|
|
96
90
|
get outputs() {
|
|
97
91
|
return new Set(allOutputs.filter(o => this.packaging.has(o.name)));
|
|
98
92
|
}
|
|
99
93
|
|
|
100
|
-
get derivedPackaging() {
|
|
101
|
-
return this.expand(
|
|
102
|
-
this.unionFromDirections(["this", "extends"], "_packaging")
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
94
|
set provides(value) {
|
|
107
95
|
this._provides = union(value, this._provides);
|
|
108
96
|
}
|
|
@@ -194,9 +182,9 @@ export class content extends Core {
|
|
|
194
182
|
outputs: this.outputs,
|
|
195
183
|
properties: {
|
|
196
184
|
name: nameParts.filter(n => n !== undefined && n.length > 0).join("-"),
|
|
197
|
-
description: `${node.
|
|
185
|
+
description: `${node.typeName} definitions for ${node.fullName}`,
|
|
198
186
|
access: this.access,
|
|
199
|
-
groups: [
|
|
187
|
+
groups: [...this.groups],
|
|
200
188
|
depends: [...this.depends],
|
|
201
189
|
provides: [...this.provides],
|
|
202
190
|
replaces: [...this.replaces],
|
package/src/owner.mjs
CHANGED
|
@@ -163,15 +163,6 @@ export class Owner extends ServiceOwner {
|
|
|
163
163
|
return this.subnets.values().find(subnet => subnet.matchesAddress(address));
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
get derivedPackaging() {
|
|
167
|
-
let all = new Set();
|
|
168
|
-
for (const host of this.hosts.values()) {
|
|
169
|
-
all = all.union(host.packaging);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return all;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
166
|
*networkAddresses(filter) {
|
|
176
167
|
for (const host of this.hosts.values()) {
|
|
177
168
|
yield* host.networkAddresses(filter);
|