pmcf 3.16.0 → 3.16.1
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 +108 -45
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -18,54 +18,61 @@ Generates system packages from config blueprint.
|
|
|
18
18
|
|
|
19
19
|
supported linux derivates:
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* arch linux
|
|
22
|
+
* debian
|
|
23
|
+
* rpm based systems
|
|
24
24
|
|
|
25
25
|
generates config packages for:
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
* systemd
|
|
28
|
+
* networkd
|
|
29
|
+
* timesyncd
|
|
30
|
+
* resolverd
|
|
31
|
+
* kea
|
|
32
|
+
* bind
|
|
33
|
+
* mosquitto
|
|
34
|
+
* influxdb
|
|
35
|
+
* iwd
|
|
36
|
+
* chrony
|
|
37
|
+
|
|
38
38
|
# API
|
|
39
39
|
|
|
40
40
|
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
|
|
41
41
|
|
|
42
42
|
### Table of Contents
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
44
|
+
* [Base](#base)
|
|
45
|
+
* [Parameters](#parameters)
|
|
46
|
+
* [extends](#extends)
|
|
47
|
+
* [findService](#findservice)
|
|
48
|
+
* [Parameters](#parameters-1)
|
|
49
|
+
* [PortEndpoint](#portendpoint)
|
|
50
|
+
* [Parameters](#parameters-2)
|
|
51
|
+
* [port](#port)
|
|
52
|
+
* [socketAddress](#socketaddress)
|
|
53
|
+
* [HTTPEndpoint](#httpendpoint)
|
|
54
|
+
* [Parameters](#parameters-3)
|
|
55
|
+
* [port](#port-1)
|
|
56
|
+
* [SkeletonNetworkInterface](#skeletonnetworkinterface)
|
|
57
|
+
* [networkAddresses](#networkaddresses)
|
|
58
|
+
* [Parameters](#parameters-4)
|
|
59
|
+
* [NetworkAddress](#networkaddress)
|
|
60
|
+
* [Parameters](#parameters-5)
|
|
61
|
+
* [subnet](#subnet)
|
|
62
|
+
* [networkInterface](#networkinterface)
|
|
63
|
+
* [address](#address)
|
|
64
|
+
* [addresses](#addresses)
|
|
65
|
+
* [Parameters](#parameters-6)
|
|
66
|
+
* [cidrAddresses](#cidraddresses)
|
|
67
|
+
* [Parameters](#parameters-7)
|
|
68
|
+
* [serviceEndpoints](#serviceendpoints)
|
|
69
|
+
* [Parameters](#parameters-8)
|
|
70
|
+
* [sectionLines](#sectionlines)
|
|
71
|
+
* [Parameters](#parameters-9)
|
|
72
|
+
* [asArray](#asarray)
|
|
73
|
+
* [Parameters](#parameters-10)
|
|
74
|
+
* [asIterator](#asiterator)
|
|
75
|
+
* [Parameters](#parameters-11)
|
|
69
76
|
|
|
70
77
|
## Base
|
|
71
78
|
|
|
@@ -86,15 +93,38 @@ Returns **Iterable<[Base](#base)>** 
|
|
|
86
93
|
|
|
87
94
|
Returns **any** service with the highest priority
|
|
88
95
|
|
|
89
|
-
##
|
|
96
|
+
## PortEndpoint
|
|
97
|
+
|
|
98
|
+
**Extends BaseEndpoint**
|
|
99
|
+
|
|
100
|
+
Endpoint with an ip port
|
|
101
|
+
|
|
102
|
+
### Parameters
|
|
103
|
+
|
|
104
|
+
* `service`  
|
|
105
|
+
* `data`  
|
|
106
|
+
|
|
107
|
+
### port
|
|
90
108
|
|
|
91
109
|
Returns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 
|
|
92
110
|
|
|
93
|
-
|
|
111
|
+
### socketAddress
|
|
94
112
|
|
|
95
113
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
96
114
|
|
|
97
|
-
##
|
|
115
|
+
## HTTPEndpoint
|
|
116
|
+
|
|
117
|
+
**Extends BaseEndpoint**
|
|
118
|
+
|
|
119
|
+
Endpoint based on http
|
|
120
|
+
|
|
121
|
+
### Parameters
|
|
122
|
+
|
|
123
|
+
* `service`  
|
|
124
|
+
* `address`  
|
|
125
|
+
* `data`  
|
|
126
|
+
|
|
127
|
+
### port
|
|
98
128
|
|
|
99
129
|
Returns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 
|
|
100
130
|
|
|
@@ -114,9 +144,9 @@ Returns **Iterable<[NetworkAddress](#networkaddress)>** 
|
|
|
114
144
|
|
|
115
145
|
### Parameters
|
|
116
146
|
|
|
117
|
-
* `networkInterface`
|
|
118
|
-
* `address`
|
|
119
|
-
* `subnet`
|
|
147
|
+
* `networkInterface` **NetworkInterface** 
|
|
148
|
+
* `address` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Uint8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) | [Uint16Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array))** 
|
|
149
|
+
* `subnet` **Subnet** 
|
|
120
150
|
|
|
121
151
|
### subnet
|
|
122
152
|
|
|
@@ -142,6 +172,14 @@ Type: ([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Glob
|
|
|
142
172
|
|
|
143
173
|
Returns **Iterable<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** addresses
|
|
144
174
|
|
|
175
|
+
## cidrAddresses
|
|
176
|
+
|
|
177
|
+
### Parameters
|
|
178
|
+
|
|
179
|
+
* `networkAddresses` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[NetworkAddress](#networkaddress)>** 
|
|
180
|
+
|
|
181
|
+
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)>** 
|
|
182
|
+
|
|
145
183
|
## serviceEndpoints
|
|
146
184
|
|
|
147
185
|
### Parameters
|
|
@@ -157,6 +195,31 @@ Returns **Iterable<[string](https://developer.mozilla.org/docs/Web/JavaScript/Re
|
|
|
157
195
|
|
|
158
196
|
Returns **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | any)** 
|
|
159
197
|
|
|
198
|
+
## sectionLines
|
|
199
|
+
|
|
200
|
+
### Parameters
|
|
201
|
+
|
|
202
|
+
* `sectionName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
203
|
+
* `values` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
204
|
+
|
|
205
|
+
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)>** 
|
|
206
|
+
|
|
207
|
+
## asArray
|
|
208
|
+
|
|
209
|
+
### Parameters
|
|
210
|
+
|
|
211
|
+
* `value` **any** 
|
|
212
|
+
|
|
213
|
+
Returns **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<any>** 
|
|
214
|
+
|
|
215
|
+
## asIterator
|
|
216
|
+
|
|
217
|
+
### Parameters
|
|
218
|
+
|
|
219
|
+
* `value` **any** 
|
|
220
|
+
|
|
221
|
+
Returns **Iterable\<any>** 
|
|
222
|
+
|
|
160
223
|
# install
|
|
161
224
|
|
|
162
225
|
With [npm](http://npmjs.org) do:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"ip-utilties": "^
|
|
56
|
+
"ip-utilties": "^2.0.0",
|
|
57
57
|
"npm-pkgbuild": "^19.0.6",
|
|
58
|
-
"pacc": "^4.
|
|
58
|
+
"pacc": "^4.42.0",
|
|
59
59
|
"package-directory": "^8.1.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|