pmcf 2.29.1 → 2.30.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 +0 -1
- package/package.json +3 -3
- package/src/base.mjs +1 -1
- package/src/host-utils.mjs +1 -113
- package/src/host.mjs +13 -9
- package/src/module.mjs +5 -1
- package/src/network-address.mjs +1 -5
- package/src/network-interfaces/ethernet.mjs +37 -0
- package/src/network-interfaces/loopback.mjs +44 -0
- package/src/network-interfaces/network-interface.mjs +245 -0
- package/src/network-interfaces/skeleton.mjs +114 -0
- package/src/network-interfaces/wireguard.mjs +30 -0
- package/src/network-interfaces/wlan.mjs +77 -0
- package/src/service.mjs +1 -1
- package/src/subnet.mjs +10 -2
- package/types/cluster.d.mts +1 -0
- package/types/extra-source-service.d.mts +1 -1
- package/types/host-utils.d.mts +0 -1
- package/types/host.d.mts +1 -0
- package/types/module.d.mts +5 -1
- package/types/network-address.d.mts +1 -5
- package/types/network-interfaces/ethernet.d.mts +338 -0
- package/types/network-interfaces/loopback.d.mts +319 -0
- package/types/network-interfaces/network-interface.d.mts +339 -0
- package/types/network-interfaces/skeleton.d.mts +25 -0
- package/types/network-interfaces/wireguard.d.mts +316 -0
- package/types/network-interfaces/wlan.d.mts +486 -0
- package/types/service.d.mts +2 -2
- package/types/services/dhcp.d.mts +2 -2
- package/types/services/dns.d.mts +2 -2
- package/types/services/ntp.d.mts +2 -2
- package/types/subnet.d.mts +1 -0
- package/src/network-interface.mjs +0 -366
- package/types/network-interface.d.mts +0 -1357
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
|
|
2
|
+
static get typeDefinition(): {
|
|
3
|
+
name: string;
|
|
4
|
+
specializationOf: {
|
|
5
|
+
name: string;
|
|
6
|
+
priority: number;
|
|
7
|
+
owners: string[];
|
|
8
|
+
extends: {
|
|
9
|
+
name: string;
|
|
10
|
+
owners: any[];
|
|
11
|
+
properties: {
|
|
12
|
+
owner: {
|
|
13
|
+
type: string;
|
|
14
|
+
collection: boolean;
|
|
15
|
+
writeable: boolean;
|
|
16
|
+
};
|
|
17
|
+
type: {
|
|
18
|
+
type: string;
|
|
19
|
+
collection: boolean;
|
|
20
|
+
writeable: boolean;
|
|
21
|
+
};
|
|
22
|
+
name: {
|
|
23
|
+
type: string;
|
|
24
|
+
collection: boolean;
|
|
25
|
+
identifier: boolean;
|
|
26
|
+
writeable: boolean;
|
|
27
|
+
};
|
|
28
|
+
description: {
|
|
29
|
+
type: string;
|
|
30
|
+
collection: boolean;
|
|
31
|
+
writeable: boolean;
|
|
32
|
+
};
|
|
33
|
+
priority: {
|
|
34
|
+
type: string;
|
|
35
|
+
collection: boolean;
|
|
36
|
+
writeable: boolean;
|
|
37
|
+
};
|
|
38
|
+
directory: {
|
|
39
|
+
type: string;
|
|
40
|
+
collection: boolean;
|
|
41
|
+
writeable: boolean;
|
|
42
|
+
};
|
|
43
|
+
packaging: {
|
|
44
|
+
type: string;
|
|
45
|
+
collection: boolean;
|
|
46
|
+
writeable: boolean;
|
|
47
|
+
};
|
|
48
|
+
tags: {
|
|
49
|
+
type: string;
|
|
50
|
+
collection: boolean;
|
|
51
|
+
writeable: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
specializations: {};
|
|
56
|
+
factoryFor(owner: any, value: any): any;
|
|
57
|
+
properties: {
|
|
58
|
+
hostName: {
|
|
59
|
+
type: string;
|
|
60
|
+
collection: boolean;
|
|
61
|
+
writeable: boolean;
|
|
62
|
+
};
|
|
63
|
+
ipAddresses: {
|
|
64
|
+
type: string;
|
|
65
|
+
collection: boolean;
|
|
66
|
+
writeable: boolean;
|
|
67
|
+
};
|
|
68
|
+
hwaddr: {
|
|
69
|
+
type: string;
|
|
70
|
+
collection: boolean;
|
|
71
|
+
writeable: boolean;
|
|
72
|
+
};
|
|
73
|
+
network: {
|
|
74
|
+
type: string;
|
|
75
|
+
collection: boolean;
|
|
76
|
+
writeable: boolean;
|
|
77
|
+
};
|
|
78
|
+
destination: {
|
|
79
|
+
type: string;
|
|
80
|
+
collection: boolean;
|
|
81
|
+
writeable: boolean;
|
|
82
|
+
};
|
|
83
|
+
cidrAddresses: {
|
|
84
|
+
type: string;
|
|
85
|
+
collection: boolean;
|
|
86
|
+
writeable: boolean;
|
|
87
|
+
};
|
|
88
|
+
cidrAddress: {
|
|
89
|
+
type: string;
|
|
90
|
+
collection: boolean;
|
|
91
|
+
writeable: boolean;
|
|
92
|
+
};
|
|
93
|
+
addresses: {
|
|
94
|
+
type: string;
|
|
95
|
+
collection: boolean;
|
|
96
|
+
writeable: boolean;
|
|
97
|
+
};
|
|
98
|
+
address: {
|
|
99
|
+
type: string;
|
|
100
|
+
collection: boolean;
|
|
101
|
+
writeable: boolean;
|
|
102
|
+
};
|
|
103
|
+
scope: {
|
|
104
|
+
type: string;
|
|
105
|
+
collection: boolean;
|
|
106
|
+
writeable: boolean;
|
|
107
|
+
values: string[];
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
class: {
|
|
111
|
+
type: string;
|
|
112
|
+
collection: boolean;
|
|
113
|
+
writeable: boolean;
|
|
114
|
+
values: string[];
|
|
115
|
+
};
|
|
116
|
+
kind: {
|
|
117
|
+
type: string;
|
|
118
|
+
collection: boolean;
|
|
119
|
+
writeable: boolean;
|
|
120
|
+
values: string[];
|
|
121
|
+
};
|
|
122
|
+
ssid: {
|
|
123
|
+
type: string;
|
|
124
|
+
collection: boolean;
|
|
125
|
+
writeable: boolean;
|
|
126
|
+
};
|
|
127
|
+
psk: {
|
|
128
|
+
type: string;
|
|
129
|
+
collection: boolean;
|
|
130
|
+
writeable: boolean;
|
|
131
|
+
};
|
|
132
|
+
metric: {
|
|
133
|
+
type: string;
|
|
134
|
+
collection: boolean;
|
|
135
|
+
writeable: boolean;
|
|
136
|
+
default: number;
|
|
137
|
+
};
|
|
138
|
+
MTU: {
|
|
139
|
+
type: string;
|
|
140
|
+
collection: boolean;
|
|
141
|
+
writeable: boolean;
|
|
142
|
+
default: number;
|
|
143
|
+
};
|
|
144
|
+
gateway: {
|
|
145
|
+
type: string;
|
|
146
|
+
collection: boolean;
|
|
147
|
+
writeable: boolean;
|
|
148
|
+
};
|
|
149
|
+
multicastDNS: {
|
|
150
|
+
type: string;
|
|
151
|
+
collection: boolean;
|
|
152
|
+
writeable: boolean;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
owners: string[];
|
|
158
|
+
extends: {
|
|
159
|
+
name: string;
|
|
160
|
+
priority: number;
|
|
161
|
+
owners: string[];
|
|
162
|
+
extends: {
|
|
163
|
+
name: string;
|
|
164
|
+
owners: any[];
|
|
165
|
+
properties: {
|
|
166
|
+
owner: {
|
|
167
|
+
type: string;
|
|
168
|
+
collection: boolean;
|
|
169
|
+
writeable: boolean;
|
|
170
|
+
};
|
|
171
|
+
type: {
|
|
172
|
+
type: string;
|
|
173
|
+
collection: boolean;
|
|
174
|
+
writeable: boolean;
|
|
175
|
+
};
|
|
176
|
+
name: {
|
|
177
|
+
type: string;
|
|
178
|
+
collection: boolean;
|
|
179
|
+
identifier: boolean;
|
|
180
|
+
writeable: boolean;
|
|
181
|
+
};
|
|
182
|
+
description: {
|
|
183
|
+
type: string;
|
|
184
|
+
collection: boolean;
|
|
185
|
+
writeable: boolean;
|
|
186
|
+
};
|
|
187
|
+
priority: {
|
|
188
|
+
type: string;
|
|
189
|
+
collection: boolean;
|
|
190
|
+
writeable: boolean;
|
|
191
|
+
};
|
|
192
|
+
directory: {
|
|
193
|
+
type: string;
|
|
194
|
+
collection: boolean;
|
|
195
|
+
writeable: boolean;
|
|
196
|
+
};
|
|
197
|
+
packaging: {
|
|
198
|
+
type: string;
|
|
199
|
+
collection: boolean;
|
|
200
|
+
writeable: boolean;
|
|
201
|
+
};
|
|
202
|
+
tags: {
|
|
203
|
+
type: string;
|
|
204
|
+
collection: boolean;
|
|
205
|
+
writeable: boolean;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
specializations: {};
|
|
210
|
+
factoryFor(owner: any, value: any): any;
|
|
211
|
+
properties: {
|
|
212
|
+
hostName: {
|
|
213
|
+
type: string;
|
|
214
|
+
collection: boolean;
|
|
215
|
+
writeable: boolean;
|
|
216
|
+
};
|
|
217
|
+
ipAddresses: {
|
|
218
|
+
type: string;
|
|
219
|
+
collection: boolean;
|
|
220
|
+
writeable: boolean;
|
|
221
|
+
};
|
|
222
|
+
hwaddr: {
|
|
223
|
+
type: string;
|
|
224
|
+
collection: boolean;
|
|
225
|
+
writeable: boolean;
|
|
226
|
+
};
|
|
227
|
+
network: {
|
|
228
|
+
type: string;
|
|
229
|
+
collection: boolean;
|
|
230
|
+
writeable: boolean;
|
|
231
|
+
};
|
|
232
|
+
destination: {
|
|
233
|
+
type: string;
|
|
234
|
+
collection: boolean;
|
|
235
|
+
writeable: boolean;
|
|
236
|
+
};
|
|
237
|
+
cidrAddresses: {
|
|
238
|
+
type: string;
|
|
239
|
+
collection: boolean;
|
|
240
|
+
writeable: boolean;
|
|
241
|
+
};
|
|
242
|
+
cidrAddress: {
|
|
243
|
+
type: string;
|
|
244
|
+
collection: boolean;
|
|
245
|
+
writeable: boolean;
|
|
246
|
+
};
|
|
247
|
+
addresses: {
|
|
248
|
+
type: string;
|
|
249
|
+
collection: boolean;
|
|
250
|
+
writeable: boolean;
|
|
251
|
+
};
|
|
252
|
+
address: {
|
|
253
|
+
type: string;
|
|
254
|
+
collection: boolean;
|
|
255
|
+
writeable: boolean;
|
|
256
|
+
};
|
|
257
|
+
scope: {
|
|
258
|
+
type: string;
|
|
259
|
+
collection: boolean;
|
|
260
|
+
writeable: boolean;
|
|
261
|
+
values: string[];
|
|
262
|
+
default: string;
|
|
263
|
+
};
|
|
264
|
+
class: {
|
|
265
|
+
type: string;
|
|
266
|
+
collection: boolean;
|
|
267
|
+
writeable: boolean;
|
|
268
|
+
values: string[];
|
|
269
|
+
};
|
|
270
|
+
kind: {
|
|
271
|
+
type: string;
|
|
272
|
+
collection: boolean;
|
|
273
|
+
writeable: boolean;
|
|
274
|
+
values: string[];
|
|
275
|
+
};
|
|
276
|
+
ssid: {
|
|
277
|
+
type: string;
|
|
278
|
+
collection: boolean;
|
|
279
|
+
writeable: boolean;
|
|
280
|
+
};
|
|
281
|
+
psk: {
|
|
282
|
+
type: string;
|
|
283
|
+
collection: boolean;
|
|
284
|
+
writeable: boolean;
|
|
285
|
+
};
|
|
286
|
+
metric: {
|
|
287
|
+
type: string;
|
|
288
|
+
collection: boolean;
|
|
289
|
+
writeable: boolean;
|
|
290
|
+
default: number;
|
|
291
|
+
};
|
|
292
|
+
MTU: {
|
|
293
|
+
type: string;
|
|
294
|
+
collection: boolean;
|
|
295
|
+
writeable: boolean;
|
|
296
|
+
default: number;
|
|
297
|
+
};
|
|
298
|
+
gateway: {
|
|
299
|
+
type: string;
|
|
300
|
+
collection: boolean;
|
|
301
|
+
writeable: boolean;
|
|
302
|
+
};
|
|
303
|
+
multicastDNS: {
|
|
304
|
+
type: string;
|
|
305
|
+
collection: boolean;
|
|
306
|
+
writeable: boolean;
|
|
307
|
+
default: boolean;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
priority: number;
|
|
312
|
+
properties: {};
|
|
313
|
+
};
|
|
314
|
+
get kind(): string;
|
|
315
|
+
get scope(): string;
|
|
316
|
+
get hostName(): string;
|
|
317
|
+
get ipAddresses(): Map<string, import("pmcf").Subnet>;
|
|
318
|
+
}
|
|
319
|
+
import { SkeletonNetworkInterface } from "./skeleton.mjs";
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
export namespace NetworkInterfaceTypeDefinition {
|
|
2
|
+
export let name: string;
|
|
3
|
+
export let priority: number;
|
|
4
|
+
export let owners: string[];
|
|
5
|
+
let _extends: {
|
|
6
|
+
name: string;
|
|
7
|
+
owners: any[];
|
|
8
|
+
properties: {
|
|
9
|
+
owner: {
|
|
10
|
+
type: string;
|
|
11
|
+
collection: boolean;
|
|
12
|
+
writeable: boolean;
|
|
13
|
+
};
|
|
14
|
+
type: {
|
|
15
|
+
type: string;
|
|
16
|
+
collection: boolean;
|
|
17
|
+
writeable: boolean;
|
|
18
|
+
};
|
|
19
|
+
name: {
|
|
20
|
+
type: string;
|
|
21
|
+
collection: boolean;
|
|
22
|
+
identifier: boolean;
|
|
23
|
+
writeable: boolean;
|
|
24
|
+
};
|
|
25
|
+
description: {
|
|
26
|
+
type: string;
|
|
27
|
+
collection: boolean;
|
|
28
|
+
writeable: boolean;
|
|
29
|
+
};
|
|
30
|
+
priority: {
|
|
31
|
+
type: string;
|
|
32
|
+
collection: boolean;
|
|
33
|
+
writeable: boolean;
|
|
34
|
+
};
|
|
35
|
+
directory: {
|
|
36
|
+
type: string;
|
|
37
|
+
collection: boolean;
|
|
38
|
+
writeable: boolean;
|
|
39
|
+
};
|
|
40
|
+
packaging: {
|
|
41
|
+
type: string;
|
|
42
|
+
collection: boolean;
|
|
43
|
+
writeable: boolean;
|
|
44
|
+
};
|
|
45
|
+
tags: {
|
|
46
|
+
type: string;
|
|
47
|
+
collection: boolean;
|
|
48
|
+
writeable: boolean;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export { _extends as extends };
|
|
53
|
+
export let specializations: {};
|
|
54
|
+
export function factoryFor(owner: any, value: any): any;
|
|
55
|
+
export let properties: {
|
|
56
|
+
hostName: {
|
|
57
|
+
type: string;
|
|
58
|
+
collection: boolean;
|
|
59
|
+
writeable: boolean;
|
|
60
|
+
};
|
|
61
|
+
ipAddresses: {
|
|
62
|
+
type: string;
|
|
63
|
+
collection: boolean;
|
|
64
|
+
writeable: boolean;
|
|
65
|
+
};
|
|
66
|
+
hwaddr: {
|
|
67
|
+
type: string;
|
|
68
|
+
collection: boolean;
|
|
69
|
+
writeable: boolean;
|
|
70
|
+
};
|
|
71
|
+
network: {
|
|
72
|
+
type: string;
|
|
73
|
+
collection: boolean;
|
|
74
|
+
writeable: boolean;
|
|
75
|
+
};
|
|
76
|
+
destination: {
|
|
77
|
+
type: string;
|
|
78
|
+
collection: boolean;
|
|
79
|
+
writeable: boolean;
|
|
80
|
+
};
|
|
81
|
+
cidrAddresses: {
|
|
82
|
+
type: string;
|
|
83
|
+
collection: boolean;
|
|
84
|
+
writeable: boolean;
|
|
85
|
+
};
|
|
86
|
+
cidrAddress: {
|
|
87
|
+
type: string;
|
|
88
|
+
collection: boolean;
|
|
89
|
+
writeable: boolean;
|
|
90
|
+
};
|
|
91
|
+
addresses: {
|
|
92
|
+
type: string;
|
|
93
|
+
collection: boolean;
|
|
94
|
+
writeable: boolean;
|
|
95
|
+
};
|
|
96
|
+
address: {
|
|
97
|
+
type: string;
|
|
98
|
+
collection: boolean;
|
|
99
|
+
writeable: boolean;
|
|
100
|
+
};
|
|
101
|
+
scope: {
|
|
102
|
+
type: string;
|
|
103
|
+
collection: boolean;
|
|
104
|
+
writeable: boolean;
|
|
105
|
+
values: string[];
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
class: {
|
|
109
|
+
type: string;
|
|
110
|
+
collection: boolean;
|
|
111
|
+
writeable: boolean;
|
|
112
|
+
values: string[];
|
|
113
|
+
};
|
|
114
|
+
kind: {
|
|
115
|
+
type: string;
|
|
116
|
+
collection: boolean;
|
|
117
|
+
writeable: boolean;
|
|
118
|
+
values: string[];
|
|
119
|
+
};
|
|
120
|
+
ssid: {
|
|
121
|
+
type: string;
|
|
122
|
+
collection: boolean;
|
|
123
|
+
writeable: boolean;
|
|
124
|
+
};
|
|
125
|
+
psk: {
|
|
126
|
+
type: string;
|
|
127
|
+
collection: boolean;
|
|
128
|
+
writeable: boolean;
|
|
129
|
+
};
|
|
130
|
+
metric: {
|
|
131
|
+
type: string;
|
|
132
|
+
collection: boolean;
|
|
133
|
+
writeable: boolean;
|
|
134
|
+
default: number;
|
|
135
|
+
};
|
|
136
|
+
MTU: {
|
|
137
|
+
type: string;
|
|
138
|
+
collection: boolean;
|
|
139
|
+
writeable: boolean;
|
|
140
|
+
default: number;
|
|
141
|
+
};
|
|
142
|
+
gateway: {
|
|
143
|
+
type: string;
|
|
144
|
+
collection: boolean;
|
|
145
|
+
writeable: boolean;
|
|
146
|
+
};
|
|
147
|
+
multicastDNS: {
|
|
148
|
+
type: string;
|
|
149
|
+
collection: boolean;
|
|
150
|
+
writeable: boolean;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
export class NetworkInterface extends SkeletonNetworkInterface {
|
|
156
|
+
static get typeDefinition(): {
|
|
157
|
+
name: string;
|
|
158
|
+
priority: number;
|
|
159
|
+
owners: string[];
|
|
160
|
+
extends: {
|
|
161
|
+
name: string;
|
|
162
|
+
owners: any[];
|
|
163
|
+
properties: {
|
|
164
|
+
owner: {
|
|
165
|
+
type: string;
|
|
166
|
+
collection: boolean;
|
|
167
|
+
writeable: boolean;
|
|
168
|
+
};
|
|
169
|
+
type: {
|
|
170
|
+
type: string;
|
|
171
|
+
collection: boolean;
|
|
172
|
+
writeable: boolean;
|
|
173
|
+
};
|
|
174
|
+
name: {
|
|
175
|
+
type: string;
|
|
176
|
+
collection: boolean;
|
|
177
|
+
identifier: boolean;
|
|
178
|
+
writeable: boolean;
|
|
179
|
+
};
|
|
180
|
+
description: {
|
|
181
|
+
type: string;
|
|
182
|
+
collection: boolean;
|
|
183
|
+
writeable: boolean;
|
|
184
|
+
};
|
|
185
|
+
priority: {
|
|
186
|
+
type: string;
|
|
187
|
+
collection: boolean;
|
|
188
|
+
writeable: boolean;
|
|
189
|
+
};
|
|
190
|
+
directory: {
|
|
191
|
+
type: string;
|
|
192
|
+
collection: boolean;
|
|
193
|
+
writeable: boolean;
|
|
194
|
+
};
|
|
195
|
+
packaging: {
|
|
196
|
+
type: string;
|
|
197
|
+
collection: boolean;
|
|
198
|
+
writeable: boolean;
|
|
199
|
+
};
|
|
200
|
+
tags: {
|
|
201
|
+
type: string;
|
|
202
|
+
collection: boolean;
|
|
203
|
+
writeable: boolean;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
specializations: {};
|
|
208
|
+
factoryFor(owner: any, value: any): any;
|
|
209
|
+
properties: {
|
|
210
|
+
hostName: {
|
|
211
|
+
type: string;
|
|
212
|
+
collection: boolean;
|
|
213
|
+
writeable: boolean;
|
|
214
|
+
};
|
|
215
|
+
ipAddresses: {
|
|
216
|
+
type: string;
|
|
217
|
+
collection: boolean;
|
|
218
|
+
writeable: boolean;
|
|
219
|
+
};
|
|
220
|
+
hwaddr: {
|
|
221
|
+
type: string;
|
|
222
|
+
collection: boolean;
|
|
223
|
+
writeable: boolean;
|
|
224
|
+
};
|
|
225
|
+
network: {
|
|
226
|
+
type: string;
|
|
227
|
+
collection: boolean;
|
|
228
|
+
writeable: boolean;
|
|
229
|
+
};
|
|
230
|
+
destination: {
|
|
231
|
+
type: string;
|
|
232
|
+
collection: boolean;
|
|
233
|
+
writeable: boolean;
|
|
234
|
+
};
|
|
235
|
+
cidrAddresses: {
|
|
236
|
+
type: string;
|
|
237
|
+
collection: boolean;
|
|
238
|
+
writeable: boolean;
|
|
239
|
+
};
|
|
240
|
+
cidrAddress: {
|
|
241
|
+
type: string;
|
|
242
|
+
collection: boolean;
|
|
243
|
+
writeable: boolean;
|
|
244
|
+
};
|
|
245
|
+
addresses: {
|
|
246
|
+
type: string;
|
|
247
|
+
collection: boolean;
|
|
248
|
+
writeable: boolean;
|
|
249
|
+
};
|
|
250
|
+
address: {
|
|
251
|
+
type: string;
|
|
252
|
+
collection: boolean;
|
|
253
|
+
writeable: boolean;
|
|
254
|
+
};
|
|
255
|
+
scope: {
|
|
256
|
+
type: string;
|
|
257
|
+
collection: boolean;
|
|
258
|
+
writeable: boolean;
|
|
259
|
+
values: string[];
|
|
260
|
+
default: string;
|
|
261
|
+
};
|
|
262
|
+
class: {
|
|
263
|
+
type: string;
|
|
264
|
+
collection: boolean;
|
|
265
|
+
writeable: boolean;
|
|
266
|
+
values: string[];
|
|
267
|
+
};
|
|
268
|
+
kind: {
|
|
269
|
+
type: string;
|
|
270
|
+
collection: boolean;
|
|
271
|
+
writeable: boolean;
|
|
272
|
+
values: string[];
|
|
273
|
+
};
|
|
274
|
+
ssid: {
|
|
275
|
+
type: string;
|
|
276
|
+
collection: boolean;
|
|
277
|
+
writeable: boolean;
|
|
278
|
+
};
|
|
279
|
+
psk: {
|
|
280
|
+
type: string;
|
|
281
|
+
collection: boolean;
|
|
282
|
+
writeable: boolean;
|
|
283
|
+
};
|
|
284
|
+
metric: {
|
|
285
|
+
type: string;
|
|
286
|
+
collection: boolean;
|
|
287
|
+
writeable: boolean;
|
|
288
|
+
default: number;
|
|
289
|
+
};
|
|
290
|
+
MTU: {
|
|
291
|
+
type: string;
|
|
292
|
+
collection: boolean;
|
|
293
|
+
writeable: boolean;
|
|
294
|
+
default: number;
|
|
295
|
+
};
|
|
296
|
+
gateway: {
|
|
297
|
+
type: string;
|
|
298
|
+
collection: boolean;
|
|
299
|
+
writeable: boolean;
|
|
300
|
+
};
|
|
301
|
+
multicastDNS: {
|
|
302
|
+
type: string;
|
|
303
|
+
collection: boolean;
|
|
304
|
+
writeable: boolean;
|
|
305
|
+
default: boolean;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
_ipAddresses: Map<any, any>;
|
|
310
|
+
_scope: any;
|
|
311
|
+
_metric: any;
|
|
312
|
+
_kind: any;
|
|
313
|
+
_hostName: any;
|
|
314
|
+
_hwaddr: any;
|
|
315
|
+
_class: any;
|
|
316
|
+
addSubnet(address: any): any;
|
|
317
|
+
set ipAddresses(value: Map<any, any>);
|
|
318
|
+
get ipAddresses(): Map<any, any>;
|
|
319
|
+
subnetForAddress(address: any): any;
|
|
320
|
+
get gateway(): any;
|
|
321
|
+
get gatewayAddress(): any;
|
|
322
|
+
set hostName(value: any);
|
|
323
|
+
get hostName(): any;
|
|
324
|
+
get domainNames(): any;
|
|
325
|
+
set scope(value: any);
|
|
326
|
+
get scope(): any;
|
|
327
|
+
set hwaddr(value: any);
|
|
328
|
+
get hwaddr(): any;
|
|
329
|
+
set metric(value: any);
|
|
330
|
+
get metric(): any;
|
|
331
|
+
set MTU(value: any);
|
|
332
|
+
get MTU(): any;
|
|
333
|
+
_MTU: any;
|
|
334
|
+
set class(value: any);
|
|
335
|
+
get class(): any;
|
|
336
|
+
set kind(value: any);
|
|
337
|
+
get kind(): any;
|
|
338
|
+
}
|
|
339
|
+
import { SkeletonNetworkInterface } from "./skeleton.mjs";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export class SkeletonNetworkInterface extends Base {
|
|
2
|
+
_extends: any[];
|
|
3
|
+
_network: any;
|
|
4
|
+
get typeName(): string;
|
|
5
|
+
set extends(value: any[]);
|
|
6
|
+
get extends(): any[];
|
|
7
|
+
get network_interface(): this;
|
|
8
|
+
get domainNames(): Set<any>;
|
|
9
|
+
matches(other: any): boolean;
|
|
10
|
+
set network(network: any);
|
|
11
|
+
get network(): any;
|
|
12
|
+
get ipAddresses(): Map<any, any>;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param {object} filter
|
|
16
|
+
* @return {Iterable<NetworkAddress>}
|
|
17
|
+
*/
|
|
18
|
+
networkAddresses(filter?: object): Iterable<NetworkAddress>;
|
|
19
|
+
networkAddress(filter: any): NetworkAddress;
|
|
20
|
+
get address(): any;
|
|
21
|
+
get addresses(): any[];
|
|
22
|
+
systemdDefinitions(packageData: any): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
import { Base } from "pmcf";
|
|
25
|
+
import { NetworkAddress } from "pmcf";
|