pmcf 4.25.11 → 4.25.12
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/package.json
CHANGED
|
@@ -3,14 +3,6 @@ import { SUBNET_LOCALHOST_IPV4, SUBNET_LOCALHOST_IPV6 } from "pmcf";
|
|
|
3
3
|
import { SkeletonNetworkInterface } from "./skeleton.mjs";
|
|
4
4
|
import { NetworkInterfaceTypeDefinition } from "./network-interface.mjs";
|
|
5
5
|
|
|
6
|
-
const LoopbackNetworkInterfaceTypeDefinition = {
|
|
7
|
-
name: "loopback",
|
|
8
|
-
extends: NetworkInterfaceTypeDefinition,
|
|
9
|
-
specializationOf: NetworkInterfaceTypeDefinition,
|
|
10
|
-
owners: NetworkInterfaceTypeDefinition.owners,
|
|
11
|
-
key: "name"
|
|
12
|
-
};
|
|
13
|
-
|
|
14
6
|
const _localAddresses = new Map([
|
|
15
7
|
["127.0.0.1", SUBNET_LOCALHOST_IPV4],
|
|
16
8
|
["::1", SUBNET_LOCALHOST_IPV6]
|
|
@@ -19,7 +11,13 @@ const _localAddresses = new Map([
|
|
|
19
11
|
const _localDomains = new Set(["localhost"]);
|
|
20
12
|
|
|
21
13
|
export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
|
|
22
|
-
static
|
|
14
|
+
static name = "loopback";
|
|
15
|
+
static extends = NetworkInterfaceTypeDefinition;
|
|
16
|
+
static specializationOf = NetworkInterfaceTypeDefinition;
|
|
17
|
+
static owners = NetworkInterfaceTypeDefinition.owners;
|
|
18
|
+
static key = "name";
|
|
19
|
+
|
|
20
|
+
static typeDefinition = this;
|
|
23
21
|
|
|
24
22
|
static {
|
|
25
23
|
addType(this);
|
|
@@ -30,7 +28,7 @@ export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
|
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
get kind() {
|
|
33
|
-
return
|
|
31
|
+
return "loopback";
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
set scope(v) {}
|
|
@@ -2,23 +2,21 @@ import { addType } from "pacc";
|
|
|
2
2
|
import { NetworkInterface } from "./network-interface.mjs";
|
|
3
3
|
import { NetworkInterfaceTypeDefinition } from "./network-interface.mjs";
|
|
4
4
|
|
|
5
|
-
const TUNdNetworkInterfaceTypeDefinition = {
|
|
6
|
-
name: "tun",
|
|
7
|
-
extends: NetworkInterfaceTypeDefinition,
|
|
8
|
-
specializationOf: NetworkInterfaceTypeDefinition,
|
|
9
|
-
owners: NetworkInterfaceTypeDefinition.owners,
|
|
10
|
-
key: "name"
|
|
11
|
-
};
|
|
12
|
-
|
|
13
5
|
export class TUNNetworkInterface extends NetworkInterface {
|
|
14
|
-
static
|
|
6
|
+
static name = "tun";
|
|
7
|
+
static extends = NetworkInterfaceTypeDefinition;
|
|
8
|
+
static specializationOf = NetworkInterfaceTypeDefinition;
|
|
9
|
+
static owners = NetworkInterfaceTypeDefinition.owners;
|
|
10
|
+
static key = "name";
|
|
11
|
+
|
|
12
|
+
static typeDefinition = this;
|
|
15
13
|
|
|
16
14
|
static {
|
|
17
15
|
addType(this);
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
get kind() {
|
|
21
|
-
return
|
|
19
|
+
return "tun";
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
async systemdDefinitions(dir, packageData) {}
|
|
@@ -2,23 +2,21 @@ import { addType } from "pacc";
|
|
|
2
2
|
import { SkeletonNetworkInterface } from "./skeleton.mjs";
|
|
3
3
|
import { NetworkInterfaceTypeDefinition } from "./network-interface.mjs";
|
|
4
4
|
|
|
5
|
-
const WireguardNetworkInterfaceTypeDefinition = {
|
|
6
|
-
name: "wireguard",
|
|
7
|
-
extends: NetworkInterfaceTypeDefinition,
|
|
8
|
-
specializationOf: NetworkInterfaceTypeDefinition,
|
|
9
|
-
owners: NetworkInterfaceTypeDefinition.owners,
|
|
10
|
-
key: "name"
|
|
11
|
-
};
|
|
12
|
-
|
|
13
5
|
export class WireguardNetworkInterface extends SkeletonNetworkInterface {
|
|
14
|
-
static
|
|
6
|
+
static name = "wireguard";
|
|
7
|
+
static extends = NetworkInterfaceTypeDefinition;
|
|
8
|
+
static specializationOf = NetworkInterfaceTypeDefinition;
|
|
9
|
+
static owners = NetworkInterfaceTypeDefinition.owners;
|
|
10
|
+
static key = "name";
|
|
11
|
+
|
|
12
|
+
static typeDefinition = this;
|
|
15
13
|
|
|
16
14
|
static {
|
|
17
15
|
addType(this);
|
|
18
16
|
}
|
|
19
|
-
|
|
17
|
+
|
|
20
18
|
get kind() {
|
|
21
|
-
return
|
|
19
|
+
return "wireguard";
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
get ipAddresses() {
|
|
@@ -12,21 +12,19 @@ import {
|
|
|
12
12
|
EthernetNetworkInterfaceTypeDefinition
|
|
13
13
|
} from "./ethernet.mjs";
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
name
|
|
17
|
-
extends
|
|
18
|
-
specializationOf
|
|
19
|
-
owners
|
|
20
|
-
key
|
|
21
|
-
attributes
|
|
15
|
+
export class WLANNetworkInterface extends EthernetNetworkInterface {
|
|
16
|
+
static name = "wlan";
|
|
17
|
+
static extends = EthernetNetworkInterfaceTypeDefinition;
|
|
18
|
+
static specializationOf = NetworkInterfaceTypeDefinition;
|
|
19
|
+
static owners = EthernetNetworkInterfaceTypeDefinition.owners;
|
|
20
|
+
static key = "name";
|
|
21
|
+
static attributes = {
|
|
22
22
|
ssid: string_attribute_writable,
|
|
23
23
|
psk: secret_attribute_writable,
|
|
24
24
|
secretName: string_attribute_writable
|
|
25
|
-
}
|
|
26
|
-
};
|
|
25
|
+
};
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
static typeDefinition = WLANNetworkInterfaceTypeDefinition;
|
|
27
|
+
static typeDefinition = this;
|
|
30
28
|
|
|
31
29
|
static {
|
|
32
30
|
addType(this);
|
|
@@ -41,7 +39,7 @@ export class WLANNetworkInterface extends EthernetNetworkInterface {
|
|
|
41
39
|
_secretName;
|
|
42
40
|
|
|
43
41
|
get kind() {
|
|
44
|
-
return
|
|
42
|
+
return "wlan";
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
set secretName(value) {
|