pmcf 6.56.0 → 6.57.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.
- package/README.md +21 -21
- package/package.json +1 -1
- package/src/endpoint.mjs +7 -2
package/README.md
CHANGED
|
@@ -81,30 +81,30 @@ generates config packages for:
|
|
|
81
81
|
* [domainNames](#domainnames)
|
|
82
82
|
* [InitializationContext](#initializationcontext)
|
|
83
83
|
* [Parameters](#parameters-14)
|
|
84
|
-
* [SkeletonNetworkInterface](#skeletonnetworkinterface)
|
|
85
|
-
* [networkAddresses](#networkaddresses)
|
|
86
|
-
* [Parameters](#parameters-15)
|
|
87
84
|
* [Interface](#interface)
|
|
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)
|
|
@@ -308,18 +308,6 @@ Keeps track of all in flight object creations and loose ends during config initi
|
|
|
308
308
|
|
|
309
309
|
* `directory` (optional, default `"/"`)
|
|
310
310
|
|
|
311
|
-
## SkeletonNetworkInterface
|
|
312
|
-
|
|
313
|
-
**Extends Interface**
|
|
314
|
-
|
|
315
|
-
### networkAddresses
|
|
316
|
-
|
|
317
|
-
#### Parameters
|
|
318
|
-
|
|
319
|
-
* `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
|
|
320
|
-
|
|
321
|
-
Returns **Iterable<[NetworkAddress](#networkaddress)>** 
|
|
322
|
-
|
|
323
311
|
## Interface
|
|
324
312
|
|
|
325
313
|
**Extends ServiceOwner**
|
|
@@ -413,6 +401,18 @@ Returns **Iterable<[string](https://developer.mozilla.org/docs/Web/JavaScript/Re
|
|
|
413
401
|
|
|
414
402
|
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)>** 
|
|
415
403
|
|
|
404
|
+
## SkeletonNetworkInterface
|
|
405
|
+
|
|
406
|
+
**Extends Interface**
|
|
407
|
+
|
|
408
|
+
### networkAddresses
|
|
409
|
+
|
|
410
|
+
#### Parameters
|
|
411
|
+
|
|
412
|
+
* `filter` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `n=>true`)
|
|
413
|
+
|
|
414
|
+
Returns **Iterable<[NetworkAddress](#networkaddress)>** 
|
|
415
|
+
|
|
416
416
|
## families
|
|
417
417
|
|
|
418
418
|
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/package.json
CHANGED
package/src/endpoint.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { FAMILY_IPV6 } from "ip-utilties";
|
|
|
3
3
|
import { addType } from "./type.mjs";
|
|
4
4
|
import { CoreService } from "./core-service.mjs";
|
|
5
5
|
import { family_attribute, endpointAttributes } from "./common-attributes.mjs";
|
|
6
|
-
import { FAMILY_DNS, FAMILY_UNIX } from "./constants.mjs";
|
|
6
|
+
import { FAMILY_DNS, FAMILY_UNIX, PROTOCOL_TCP } from "./constants.mjs";
|
|
7
7
|
|
|
8
8
|
class BaseEndpoint {
|
|
9
9
|
static name = "base_endpoint";
|
|
@@ -98,7 +98,8 @@ class PortEndpoint extends BaseEndpoint {
|
|
|
98
98
|
export class Endpoint extends PortEndpoint {
|
|
99
99
|
static name = "endpoint";
|
|
100
100
|
static attributes = {
|
|
101
|
-
family: family_attribute
|
|
101
|
+
family: family_attribute,
|
|
102
|
+
addressType: { ...string_attribute, name: "addressType" }
|
|
102
103
|
};
|
|
103
104
|
|
|
104
105
|
static {
|
|
@@ -126,6 +127,10 @@ export class Endpoint extends PortEndpoint {
|
|
|
126
127
|
return this.networkAddress.family;
|
|
127
128
|
}
|
|
128
129
|
|
|
130
|
+
get addressType() {
|
|
131
|
+
return this.networkAddress.type;
|
|
132
|
+
}
|
|
133
|
+
|
|
129
134
|
get networkInterface() {
|
|
130
135
|
return this.networkAddress.networkInterface;
|
|
131
136
|
}
|