pmcf 2.14.2 → 2.15.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/package.json +1 -1
- package/src/host.mjs +28 -3
- package/src/service.mjs +36 -16
- package/src/services/dhcp.mjs +54 -31
- package/types/extra-source-service.d.mts +10 -10
- package/types/host.d.mts +2 -0
- package/types/service.d.mts +69 -22
- package/types/services/dhcp.d.mts +20 -20
- package/types/services/dns.d.mts +20 -20
- package/types/services/ntp.d.mts +20 -20
package/package.json
CHANGED
package/src/host.mjs
CHANGED
|
@@ -115,7 +115,6 @@ export class Host extends Base {
|
|
|
115
115
|
|
|
116
116
|
_applyExtends(host) {
|
|
117
117
|
for (const service of host.services) {
|
|
118
|
-
|
|
119
118
|
//present.extends.push(service);
|
|
120
119
|
|
|
121
120
|
this.services = service.forOwner(this);
|
|
@@ -402,6 +401,24 @@ export class Host extends Base {
|
|
|
402
401
|
);
|
|
403
402
|
}
|
|
404
403
|
|
|
404
|
+
*findNetworkInterfaces(filter) {
|
|
405
|
+
yield* objectFilter(
|
|
406
|
+
types.network_interface,
|
|
407
|
+
this._networkInterfaces.values(),
|
|
408
|
+
filter
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
findNetworkInterface(filter) {
|
|
413
|
+
for (const ni of objectFilter(
|
|
414
|
+
types.network_interface,
|
|
415
|
+
this._networkInterfaces.values(),
|
|
416
|
+
filter
|
|
417
|
+
)) {
|
|
418
|
+
return ni;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
405
422
|
get networkInterfaces() {
|
|
406
423
|
return this._networkInterfaces;
|
|
407
424
|
}
|
|
@@ -671,7 +688,11 @@ export class NetworkInterface extends Base {
|
|
|
671
688
|
}
|
|
672
689
|
|
|
673
690
|
get scope() {
|
|
674
|
-
return
|
|
691
|
+
return (
|
|
692
|
+
this.extendedProperty("_scope") ??
|
|
693
|
+
this.network?.scope ??
|
|
694
|
+
networkProperties.scope.default
|
|
695
|
+
);
|
|
675
696
|
}
|
|
676
697
|
|
|
677
698
|
set hwaddr(value) {
|
|
@@ -687,7 +708,11 @@ export class NetworkInterface extends Base {
|
|
|
687
708
|
}
|
|
688
709
|
|
|
689
710
|
get metric() {
|
|
690
|
-
return
|
|
711
|
+
return (
|
|
712
|
+
this.extendedProperty("_metric") ??
|
|
713
|
+
this.network?.metric ??
|
|
714
|
+
networkProperties.metric.default
|
|
715
|
+
);
|
|
691
716
|
}
|
|
692
717
|
|
|
693
718
|
set MTU(value) {
|
package/src/service.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Base } from "./base.mjs";
|
|
2
2
|
import { addType } from "./types.mjs";
|
|
3
|
+
import { objectFilter } from "./filter.mjs";
|
|
3
4
|
import { asArray, isLocalhost } from "./utils.mjs";
|
|
4
5
|
import { networkAddressProperties } from "./network-support.mjs";
|
|
5
6
|
import {
|
|
@@ -35,7 +36,7 @@ const ServiceTypes = {
|
|
|
35
36
|
ssh: { endpoints: [{ protocol: "tcp", port: 22, tls: false }] },
|
|
36
37
|
imap: { endpoints: [{ protocol: "tcp", port: 143, tls: false }] },
|
|
37
38
|
imaps: { endpoints: [{ protocol: "tcp", port: 993, tls: true }] },
|
|
38
|
-
dhcp: { endpoints: [{ port: 547, tls: false }] },
|
|
39
|
+
dhcp: { endpoints: [{ port: 547, protocol: "udp", tls: false }] },
|
|
39
40
|
"dhcpv6-client": {
|
|
40
41
|
endpoints: [
|
|
41
42
|
{ protocol: "tcp", port: 546, tls: false },
|
|
@@ -59,6 +60,31 @@ const ServiceTypes = {
|
|
|
59
60
|
}
|
|
60
61
|
};
|
|
61
62
|
|
|
63
|
+
export const endpointProperties = {
|
|
64
|
+
port: { type: "number", collection: false, writeable: true },
|
|
65
|
+
protocol: {
|
|
66
|
+
type: "string",
|
|
67
|
+
collection: false,
|
|
68
|
+
writeable: true,
|
|
69
|
+
values: ["tcp", "udp"]
|
|
70
|
+
},
|
|
71
|
+
type: { type: "string", collection: false, writeable: true },
|
|
72
|
+
tls: {
|
|
73
|
+
type: "boolean",
|
|
74
|
+
collection: false,
|
|
75
|
+
writeable: false,
|
|
76
|
+
default: false
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const EndpointTypeDefinition = {
|
|
81
|
+
name: "endpoint",
|
|
82
|
+
owners: ["service"],
|
|
83
|
+
priority: 0.4,
|
|
84
|
+
specializations: {},
|
|
85
|
+
properties: endpointProperties
|
|
86
|
+
};
|
|
87
|
+
|
|
62
88
|
export const ServiceTypeDefinition = {
|
|
63
89
|
name: "service",
|
|
64
90
|
owners: ["host", "cluster"],
|
|
@@ -78,23 +104,10 @@ export const ServiceTypeDefinition = {
|
|
|
78
104
|
},
|
|
79
105
|
properties: {
|
|
80
106
|
...networkAddressProperties,
|
|
107
|
+
...endpointProperties,
|
|
81
108
|
ipAddresses: { type: "string", collection: true, writeable: true },
|
|
82
|
-
port: { type: "number", collection: false, writeable: true },
|
|
83
|
-
protocol: {
|
|
84
|
-
type: "string",
|
|
85
|
-
collection: false,
|
|
86
|
-
writeable: true,
|
|
87
|
-
values: ["tcp", "udp"]
|
|
88
|
-
},
|
|
89
109
|
alias: { type: "string", collection: false, writeable: true },
|
|
90
|
-
type: { type: "string", collection: false, writeable: true },
|
|
91
110
|
weight: { type: "number", collection: false, writeable: true, default: 1 },
|
|
92
|
-
tls: {
|
|
93
|
-
type: "string",
|
|
94
|
-
collection: false,
|
|
95
|
-
writeable: false,
|
|
96
|
-
default: false
|
|
97
|
-
},
|
|
98
111
|
systemd: { type: "string", collection: true, writeable: true }
|
|
99
112
|
}
|
|
100
113
|
};
|
|
@@ -166,7 +179,10 @@ export class Service extends Base {
|
|
|
166
179
|
}
|
|
167
180
|
|
|
168
181
|
get endpoints() {
|
|
169
|
-
const local =
|
|
182
|
+
const local =
|
|
183
|
+
this._port === undefined
|
|
184
|
+
? { type: this.type }
|
|
185
|
+
: { type: this.type, port: this._port };
|
|
170
186
|
|
|
171
187
|
const data = ServiceTypes[this.type]?.endpoints || [
|
|
172
188
|
{
|
|
@@ -188,6 +204,10 @@ export class Service extends Base {
|
|
|
188
204
|
.flat();
|
|
189
205
|
}
|
|
190
206
|
|
|
207
|
+
*findEndpoints(filter) {
|
|
208
|
+
yield* objectFilter(EndpointTypeDefinition, this.endpoints, filter);
|
|
209
|
+
}
|
|
210
|
+
|
|
191
211
|
set alias(value) {
|
|
192
212
|
this._alias = value;
|
|
193
213
|
}
|
package/src/services/dhcp.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { FileContentProvider } from "npm-pkgbuild";
|
|
|
3
3
|
import {
|
|
4
4
|
Service,
|
|
5
5
|
ServiceTypeDefinition,
|
|
6
|
+
Endpoint,
|
|
6
7
|
serviceEndpoints
|
|
7
8
|
} from "../service.mjs";
|
|
8
9
|
import { addType } from "../types.mjs";
|
|
@@ -17,6 +18,20 @@ const DHCPServiceTypeDefinition = {
|
|
|
17
18
|
properties: {}
|
|
18
19
|
};
|
|
19
20
|
|
|
21
|
+
const controlAgentEndpoint = {
|
|
22
|
+
type: "kea-control-agent",
|
|
23
|
+
port: 8000,
|
|
24
|
+
protocol: "tcp",
|
|
25
|
+
tls: false
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const ddnsEndpoint = {
|
|
29
|
+
type: "kea-ddns",
|
|
30
|
+
port: 53001,
|
|
31
|
+
protocol: "tcp",
|
|
32
|
+
tls: false
|
|
33
|
+
};
|
|
34
|
+
|
|
20
35
|
export class DHCPService extends Service {
|
|
21
36
|
static {
|
|
22
37
|
addType(this);
|
|
@@ -35,6 +50,20 @@ export class DHCPService extends Service {
|
|
|
35
50
|
return DHCPServiceTypeDefinition.name;
|
|
36
51
|
}
|
|
37
52
|
|
|
53
|
+
get endpoints() {
|
|
54
|
+
const l0 = this.server.findNetworkInterface({ scope: "host" });
|
|
55
|
+
|
|
56
|
+
if (l0) {
|
|
57
|
+
return [
|
|
58
|
+
...super.endpoints,
|
|
59
|
+
new Endpoint(this, l0, controlAgentEndpoint),
|
|
60
|
+
new Endpoint(this, l0, ddnsEndpoint)
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return super.endpoints;
|
|
65
|
+
}
|
|
66
|
+
|
|
38
67
|
async *preparePackages(dir) {
|
|
39
68
|
const network = this.network;
|
|
40
69
|
const host = this.server;
|
|
@@ -45,7 +74,7 @@ export class DHCPService extends Service {
|
|
|
45
74
|
const dnsServerEndpoints = serviceEndpoints(network, {
|
|
46
75
|
type: "dns",
|
|
47
76
|
priority: "<10"
|
|
48
|
-
});
|
|
77
|
+
}).filter(endpoint => endpoint.networkInterface.kind !== "loopback");
|
|
49
78
|
|
|
50
79
|
const packageData = {
|
|
51
80
|
dir,
|
|
@@ -115,9 +144,11 @@ export class DHCPService extends Service {
|
|
|
115
144
|
domains.map(domain => {
|
|
116
145
|
return {
|
|
117
146
|
name: domain,
|
|
118
|
-
"dns-servers": dnsServerEndpoints
|
|
119
|
-
|
|
120
|
-
|
|
147
|
+
"dns-servers": dnsServerEndpoints
|
|
148
|
+
.filter(endpoint => isIPv4Address(endpoint.rawAddress))
|
|
149
|
+
.map(endpoint => {
|
|
150
|
+
return { "ip-address": endpoint.rawAddress };
|
|
151
|
+
})
|
|
121
152
|
};
|
|
122
153
|
});
|
|
123
154
|
|
|
@@ -182,20 +213,23 @@ export class DHCPService extends Service {
|
|
|
182
213
|
})
|
|
183
214
|
.sort((a, b) => a.hostname.localeCompare(b.hostname));
|
|
184
215
|
|
|
216
|
+
const listenInterfaces = filter =>
|
|
217
|
+
this.endpoints
|
|
218
|
+
.filter(
|
|
219
|
+
endpoint =>
|
|
220
|
+
endpoint.type === "dhcp" &&
|
|
221
|
+
filter(endpoint.rawAddress) &&
|
|
222
|
+
endpoint.networkInterface.kind !== "loopback"
|
|
223
|
+
)
|
|
224
|
+
.map(
|
|
225
|
+
endpoint => `${endpoint.networkInterface.name}/${endpoint.rawAddress}`
|
|
226
|
+
);
|
|
227
|
+
|
|
185
228
|
const dhcp4 = {
|
|
186
229
|
Dhcp4: {
|
|
187
230
|
...commonConfig,
|
|
188
231
|
"interfaces-config": {
|
|
189
|
-
interfaces:
|
|
190
|
-
.filter(
|
|
191
|
-
endpoint =>
|
|
192
|
-
isIPv4Address(endpoint.rawAddress) &&
|
|
193
|
-
endpoint.networkInterface.kind !== "loopback"
|
|
194
|
-
)
|
|
195
|
-
.map(
|
|
196
|
-
endpoint =>
|
|
197
|
-
`${endpoint.networkInterface.name}/${endpoint.rawAddress}`
|
|
198
|
-
)
|
|
232
|
+
interfaces: listenInterfaces(isIPv4Address)
|
|
199
233
|
},
|
|
200
234
|
"multi-threading": {
|
|
201
235
|
"enable-multi-threading": false
|
|
@@ -208,6 +242,7 @@ export class DHCPService extends Service {
|
|
|
208
242
|
{
|
|
209
243
|
name: "domain-name-servers",
|
|
210
244
|
data: dnsServerEndpoints
|
|
245
|
+
.filter(endpoint => isIPv4Address(endpoint.rawAddress))
|
|
211
246
|
.map(endpoint => endpoint.rawAddress)
|
|
212
247
|
.join(",")
|
|
213
248
|
},
|
|
@@ -240,16 +275,7 @@ export class DHCPService extends Service {
|
|
|
240
275
|
Dhcp6: {
|
|
241
276
|
...commonConfig,
|
|
242
277
|
"interfaces-config": {
|
|
243
|
-
interfaces:
|
|
244
|
-
.filter(
|
|
245
|
-
endpoint =>
|
|
246
|
-
isIPv6Address(endpoint.rawAddress) &&
|
|
247
|
-
endpoint.networkInterface.kind !== "loopback"
|
|
248
|
-
)
|
|
249
|
-
.map(
|
|
250
|
-
endpoint =>
|
|
251
|
-
`${endpoint.networkInterface.name}/${endpoint.rawAddress}`
|
|
252
|
-
)
|
|
278
|
+
interfaces: listenInterfaces(isIPv6Address)
|
|
253
279
|
},
|
|
254
280
|
"control-socket": {
|
|
255
281
|
"socket-type": "unix",
|
|
@@ -259,7 +285,10 @@ export class DHCPService extends Service {
|
|
|
259
285
|
"option-data": [
|
|
260
286
|
{
|
|
261
287
|
name: "dns-servers",
|
|
262
|
-
data:
|
|
288
|
+
data: dnsServerEndpoints
|
|
289
|
+
.filter(endpoint => isIPv6Address(endpoint.rawAddress))
|
|
290
|
+
.map(endpoint => endpoint.rawAddress)
|
|
291
|
+
.join(",")
|
|
263
292
|
}
|
|
264
293
|
],
|
|
265
294
|
subnet6: [
|
|
@@ -278,12 +307,6 @@ export class DHCPService extends Service {
|
|
|
278
307
|
"delegated-len": 64
|
|
279
308
|
}
|
|
280
309
|
],
|
|
281
|
-
"option-data": [
|
|
282
|
-
{
|
|
283
|
-
name: "dns-servers",
|
|
284
|
-
data: "2001:db8:2::dead:beef, 2001:db8:2::cafe:babe"
|
|
285
|
-
}
|
|
286
|
-
],
|
|
287
310
|
reservations: [
|
|
288
311
|
{
|
|
289
312
|
duid: "01:02:03:04:05:0A:0B:0C:0D:0E",
|
|
@@ -74,43 +74,43 @@ export class ExtraSourceService extends Service {
|
|
|
74
74
|
collection: boolean;
|
|
75
75
|
writeable: boolean;
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
alias: {
|
|
78
78
|
type: string;
|
|
79
79
|
collection: boolean;
|
|
80
80
|
writeable: boolean;
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
weight: {
|
|
83
83
|
type: string;
|
|
84
84
|
collection: boolean;
|
|
85
85
|
writeable: boolean;
|
|
86
|
-
|
|
86
|
+
default: number;
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
systemd: {
|
|
89
89
|
type: string;
|
|
90
90
|
collection: boolean;
|
|
91
91
|
writeable: boolean;
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
port: {
|
|
94
94
|
type: string;
|
|
95
95
|
collection: boolean;
|
|
96
96
|
writeable: boolean;
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
protocol: {
|
|
99
99
|
type: string;
|
|
100
100
|
collection: boolean;
|
|
101
101
|
writeable: boolean;
|
|
102
|
-
|
|
102
|
+
values: string[];
|
|
103
103
|
};
|
|
104
|
-
|
|
104
|
+
type: {
|
|
105
105
|
type: string;
|
|
106
106
|
collection: boolean;
|
|
107
107
|
writeable: boolean;
|
|
108
|
-
default: boolean;
|
|
109
108
|
};
|
|
110
|
-
|
|
109
|
+
tls: {
|
|
111
110
|
type: string;
|
|
112
111
|
collection: boolean;
|
|
113
112
|
writeable: boolean;
|
|
113
|
+
default: boolean;
|
|
114
114
|
};
|
|
115
115
|
hostName: {
|
|
116
116
|
type: string;
|
package/types/host.d.mts
CHANGED
|
@@ -228,6 +228,8 @@ export class Host extends Base {
|
|
|
228
228
|
get host(): this;
|
|
229
229
|
named(name: any): any;
|
|
230
230
|
get networks(): Set<any>;
|
|
231
|
+
findNetworkInterfaces(filter: any): Generator<any, void, any>;
|
|
232
|
+
findNetworkInterface(filter: any): any;
|
|
231
233
|
set networkInterfaces(networkInterface: Map<any, any>);
|
|
232
234
|
get networkInterfaces(): Map<any, any>;
|
|
233
235
|
networkAddresses(): Generator<{
|
package/types/service.d.mts
CHANGED
|
@@ -1,9 +1,54 @@
|
|
|
1
1
|
export function serviceAddresses(sources: any, filter: any, addressType?: string, addressFilter?: (a: any) => boolean): any[];
|
|
2
2
|
export function serviceEndpoints(sources: any, filter: any): any[];
|
|
3
|
-
export namespace
|
|
3
|
+
export namespace endpointProperties {
|
|
4
|
+
export namespace port {
|
|
5
|
+
let type: string;
|
|
6
|
+
let collection: boolean;
|
|
7
|
+
let writeable: boolean;
|
|
8
|
+
}
|
|
9
|
+
export namespace protocol {
|
|
10
|
+
let type_1: string;
|
|
11
|
+
export { type_1 as type };
|
|
12
|
+
let collection_1: boolean;
|
|
13
|
+
export { collection_1 as collection };
|
|
14
|
+
let writeable_1: boolean;
|
|
15
|
+
export { writeable_1 as writeable };
|
|
16
|
+
export let values: string[];
|
|
17
|
+
}
|
|
18
|
+
export namespace type_2 {
|
|
19
|
+
let type_3: string;
|
|
20
|
+
export { type_3 as type };
|
|
21
|
+
let collection_2: boolean;
|
|
22
|
+
export { collection_2 as collection };
|
|
23
|
+
let writeable_2: boolean;
|
|
24
|
+
export { writeable_2 as writeable };
|
|
25
|
+
}
|
|
26
|
+
export { type_2 as type };
|
|
27
|
+
export namespace tls {
|
|
28
|
+
let type_4: string;
|
|
29
|
+
export { type_4 as type };
|
|
30
|
+
let collection_3: boolean;
|
|
31
|
+
export { collection_3 as collection };
|
|
32
|
+
let writeable_3: boolean;
|
|
33
|
+
export { writeable_3 as writeable };
|
|
34
|
+
let _default: boolean;
|
|
35
|
+
export { _default as default };
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export namespace EndpointTypeDefinition {
|
|
4
39
|
export let name: string;
|
|
5
40
|
export let owners: string[];
|
|
6
41
|
export let priority: number;
|
|
42
|
+
export let specializations: {};
|
|
43
|
+
export { endpointProperties as properties };
|
|
44
|
+
}
|
|
45
|
+
export namespace ServiceTypeDefinition {
|
|
46
|
+
let name_1: string;
|
|
47
|
+
export { name_1 as name };
|
|
48
|
+
let owners_1: string[];
|
|
49
|
+
export { owners_1 as owners };
|
|
50
|
+
let priority_1: number;
|
|
51
|
+
export { priority_1 as priority };
|
|
7
52
|
let _extends: {
|
|
8
53
|
name: string;
|
|
9
54
|
owners: any[];
|
|
@@ -52,7 +97,8 @@ export namespace ServiceTypeDefinition {
|
|
|
52
97
|
};
|
|
53
98
|
};
|
|
54
99
|
export { _extends as extends };
|
|
55
|
-
|
|
100
|
+
let specializations_1: {};
|
|
101
|
+
export { specializations_1 as specializations };
|
|
56
102
|
export function factoryFor(value: any): any;
|
|
57
103
|
export let properties: {
|
|
58
104
|
ipAddresses: {
|
|
@@ -60,43 +106,43 @@ export namespace ServiceTypeDefinition {
|
|
|
60
106
|
collection: boolean;
|
|
61
107
|
writeable: boolean;
|
|
62
108
|
};
|
|
63
|
-
|
|
109
|
+
alias: {
|
|
64
110
|
type: string;
|
|
65
111
|
collection: boolean;
|
|
66
112
|
writeable: boolean;
|
|
67
113
|
};
|
|
68
|
-
|
|
114
|
+
weight: {
|
|
69
115
|
type: string;
|
|
70
116
|
collection: boolean;
|
|
71
117
|
writeable: boolean;
|
|
72
|
-
|
|
118
|
+
default: number;
|
|
73
119
|
};
|
|
74
|
-
|
|
120
|
+
systemd: {
|
|
75
121
|
type: string;
|
|
76
122
|
collection: boolean;
|
|
77
123
|
writeable: boolean;
|
|
78
124
|
};
|
|
79
|
-
|
|
125
|
+
port: {
|
|
80
126
|
type: string;
|
|
81
127
|
collection: boolean;
|
|
82
128
|
writeable: boolean;
|
|
83
129
|
};
|
|
84
|
-
|
|
130
|
+
protocol: {
|
|
85
131
|
type: string;
|
|
86
132
|
collection: boolean;
|
|
87
133
|
writeable: boolean;
|
|
88
|
-
|
|
134
|
+
values: string[];
|
|
89
135
|
};
|
|
90
|
-
|
|
136
|
+
type: {
|
|
91
137
|
type: string;
|
|
92
138
|
collection: boolean;
|
|
93
139
|
writeable: boolean;
|
|
94
|
-
default: boolean;
|
|
95
140
|
};
|
|
96
|
-
|
|
141
|
+
tls: {
|
|
97
142
|
type: string;
|
|
98
143
|
collection: boolean;
|
|
99
144
|
writeable: boolean;
|
|
145
|
+
default: boolean;
|
|
100
146
|
};
|
|
101
147
|
hostName: {
|
|
102
148
|
type: string;
|
|
@@ -185,43 +231,43 @@ export class Service extends Base {
|
|
|
185
231
|
collection: boolean;
|
|
186
232
|
writeable: boolean;
|
|
187
233
|
};
|
|
188
|
-
|
|
234
|
+
alias: {
|
|
189
235
|
type: string;
|
|
190
236
|
collection: boolean;
|
|
191
237
|
writeable: boolean;
|
|
192
238
|
};
|
|
193
|
-
|
|
239
|
+
weight: {
|
|
194
240
|
type: string;
|
|
195
241
|
collection: boolean;
|
|
196
242
|
writeable: boolean;
|
|
197
|
-
|
|
243
|
+
default: number;
|
|
198
244
|
};
|
|
199
|
-
|
|
245
|
+
systemd: {
|
|
200
246
|
type: string;
|
|
201
247
|
collection: boolean;
|
|
202
248
|
writeable: boolean;
|
|
203
249
|
};
|
|
204
|
-
|
|
250
|
+
port: {
|
|
205
251
|
type: string;
|
|
206
252
|
collection: boolean;
|
|
207
253
|
writeable: boolean;
|
|
208
254
|
};
|
|
209
|
-
|
|
255
|
+
protocol: {
|
|
210
256
|
type: string;
|
|
211
257
|
collection: boolean;
|
|
212
258
|
writeable: boolean;
|
|
213
|
-
|
|
259
|
+
values: string[];
|
|
214
260
|
};
|
|
215
|
-
|
|
261
|
+
type: {
|
|
216
262
|
type: string;
|
|
217
263
|
collection: boolean;
|
|
218
264
|
writeable: boolean;
|
|
219
|
-
default: boolean;
|
|
220
265
|
};
|
|
221
|
-
|
|
266
|
+
tls: {
|
|
222
267
|
type: string;
|
|
223
268
|
collection: boolean;
|
|
224
269
|
writeable: boolean;
|
|
270
|
+
default: boolean;
|
|
225
271
|
};
|
|
226
272
|
hostName: {
|
|
227
273
|
type: string;
|
|
@@ -268,6 +314,7 @@ export class Service extends Base {
|
|
|
268
314
|
get addresses(): any;
|
|
269
315
|
get networks(): any;
|
|
270
316
|
get endpoints(): any[];
|
|
317
|
+
findEndpoints(filter: any): Generator<any, void, any>;
|
|
271
318
|
set alias(value: any);
|
|
272
319
|
get alias(): any;
|
|
273
320
|
set port(value: any);
|
|
@@ -60,43 +60,43 @@ export class DHCPService extends Service {
|
|
|
60
60
|
collection: boolean;
|
|
61
61
|
writeable: boolean;
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
alias: {
|
|
64
64
|
type: string;
|
|
65
65
|
collection: boolean;
|
|
66
66
|
writeable: boolean;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
weight: {
|
|
69
69
|
type: string;
|
|
70
70
|
collection: boolean;
|
|
71
71
|
writeable: boolean;
|
|
72
|
-
|
|
72
|
+
default: number;
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
systemd: {
|
|
75
75
|
type: string;
|
|
76
76
|
collection: boolean;
|
|
77
77
|
writeable: boolean;
|
|
78
78
|
};
|
|
79
|
-
|
|
79
|
+
port: {
|
|
80
80
|
type: string;
|
|
81
81
|
collection: boolean;
|
|
82
82
|
writeable: boolean;
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
protocol: {
|
|
85
85
|
type: string;
|
|
86
86
|
collection: boolean;
|
|
87
87
|
writeable: boolean;
|
|
88
|
-
|
|
88
|
+
values: string[];
|
|
89
89
|
};
|
|
90
|
-
|
|
90
|
+
type: {
|
|
91
91
|
type: string;
|
|
92
92
|
collection: boolean;
|
|
93
93
|
writeable: boolean;
|
|
94
|
-
default: boolean;
|
|
95
94
|
};
|
|
96
|
-
|
|
95
|
+
tls: {
|
|
97
96
|
type: string;
|
|
98
97
|
collection: boolean;
|
|
99
98
|
writeable: boolean;
|
|
99
|
+
default: boolean;
|
|
100
100
|
};
|
|
101
101
|
hostName: {
|
|
102
102
|
type: string;
|
|
@@ -185,43 +185,43 @@ export class DHCPService extends Service {
|
|
|
185
185
|
collection: boolean;
|
|
186
186
|
writeable: boolean;
|
|
187
187
|
};
|
|
188
|
-
|
|
188
|
+
alias: {
|
|
189
189
|
type: string;
|
|
190
190
|
collection: boolean;
|
|
191
191
|
writeable: boolean;
|
|
192
192
|
};
|
|
193
|
-
|
|
193
|
+
weight: {
|
|
194
194
|
type: string;
|
|
195
195
|
collection: boolean;
|
|
196
196
|
writeable: boolean;
|
|
197
|
-
|
|
197
|
+
default: number;
|
|
198
198
|
};
|
|
199
|
-
|
|
199
|
+
systemd: {
|
|
200
200
|
type: string;
|
|
201
201
|
collection: boolean;
|
|
202
202
|
writeable: boolean;
|
|
203
203
|
};
|
|
204
|
-
|
|
204
|
+
port: {
|
|
205
205
|
type: string;
|
|
206
206
|
collection: boolean;
|
|
207
207
|
writeable: boolean;
|
|
208
208
|
};
|
|
209
|
-
|
|
209
|
+
protocol: {
|
|
210
210
|
type: string;
|
|
211
211
|
collection: boolean;
|
|
212
212
|
writeable: boolean;
|
|
213
|
-
|
|
213
|
+
values: string[];
|
|
214
214
|
};
|
|
215
|
-
|
|
215
|
+
type: {
|
|
216
216
|
type: string;
|
|
217
217
|
collection: boolean;
|
|
218
218
|
writeable: boolean;
|
|
219
|
-
default: boolean;
|
|
220
219
|
};
|
|
221
|
-
|
|
220
|
+
tls: {
|
|
222
221
|
type: string;
|
|
223
222
|
collection: boolean;
|
|
224
223
|
writeable: boolean;
|
|
224
|
+
default: boolean;
|
|
225
225
|
};
|
|
226
226
|
hostName: {
|
|
227
227
|
type: string;
|
package/types/services/dns.d.mts
CHANGED
|
@@ -60,43 +60,43 @@ export class DNSService extends ExtraSourceService {
|
|
|
60
60
|
collection: boolean;
|
|
61
61
|
writeable: boolean;
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
alias: {
|
|
64
64
|
type: string;
|
|
65
65
|
collection: boolean;
|
|
66
66
|
writeable: boolean;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
weight: {
|
|
69
69
|
type: string;
|
|
70
70
|
collection: boolean;
|
|
71
71
|
writeable: boolean;
|
|
72
|
-
|
|
72
|
+
default: number;
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
systemd: {
|
|
75
75
|
type: string;
|
|
76
76
|
collection: boolean;
|
|
77
77
|
writeable: boolean;
|
|
78
78
|
};
|
|
79
|
-
|
|
79
|
+
port: {
|
|
80
80
|
type: string;
|
|
81
81
|
collection: boolean;
|
|
82
82
|
writeable: boolean;
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
protocol: {
|
|
85
85
|
type: string;
|
|
86
86
|
collection: boolean;
|
|
87
87
|
writeable: boolean;
|
|
88
|
-
|
|
88
|
+
values: string[];
|
|
89
89
|
};
|
|
90
|
-
|
|
90
|
+
type: {
|
|
91
91
|
type: string;
|
|
92
92
|
collection: boolean;
|
|
93
93
|
writeable: boolean;
|
|
94
|
-
default: boolean;
|
|
95
94
|
};
|
|
96
|
-
|
|
95
|
+
tls: {
|
|
97
96
|
type: string;
|
|
98
97
|
collection: boolean;
|
|
99
98
|
writeable: boolean;
|
|
99
|
+
default: boolean;
|
|
100
100
|
};
|
|
101
101
|
hostName: {
|
|
102
102
|
type: string;
|
|
@@ -188,43 +188,43 @@ export class DNSService extends ExtraSourceService {
|
|
|
188
188
|
collection: boolean;
|
|
189
189
|
writeable: boolean;
|
|
190
190
|
};
|
|
191
|
-
|
|
191
|
+
alias: {
|
|
192
192
|
type: string;
|
|
193
193
|
collection: boolean;
|
|
194
194
|
writeable: boolean;
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
weight: {
|
|
197
197
|
type: string;
|
|
198
198
|
collection: boolean;
|
|
199
199
|
writeable: boolean;
|
|
200
|
-
|
|
200
|
+
default: number;
|
|
201
201
|
};
|
|
202
|
-
|
|
202
|
+
systemd: {
|
|
203
203
|
type: string;
|
|
204
204
|
collection: boolean;
|
|
205
205
|
writeable: boolean;
|
|
206
206
|
};
|
|
207
|
-
|
|
207
|
+
port: {
|
|
208
208
|
type: string;
|
|
209
209
|
collection: boolean;
|
|
210
210
|
writeable: boolean;
|
|
211
211
|
};
|
|
212
|
-
|
|
212
|
+
protocol: {
|
|
213
213
|
type: string;
|
|
214
214
|
collection: boolean;
|
|
215
215
|
writeable: boolean;
|
|
216
|
-
|
|
216
|
+
values: string[];
|
|
217
217
|
};
|
|
218
|
-
|
|
218
|
+
type: {
|
|
219
219
|
type: string;
|
|
220
220
|
collection: boolean;
|
|
221
221
|
writeable: boolean;
|
|
222
|
-
default: boolean;
|
|
223
222
|
};
|
|
224
|
-
|
|
223
|
+
tls: {
|
|
225
224
|
type: string;
|
|
226
225
|
collection: boolean;
|
|
227
226
|
writeable: boolean;
|
|
227
|
+
default: boolean;
|
|
228
228
|
};
|
|
229
229
|
hostName: {
|
|
230
230
|
type: string;
|
package/types/services/ntp.d.mts
CHANGED
|
@@ -60,43 +60,43 @@ export class NTPService extends ExtraSourceService {
|
|
|
60
60
|
collection: boolean;
|
|
61
61
|
writeable: boolean;
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
alias: {
|
|
64
64
|
type: string;
|
|
65
65
|
collection: boolean;
|
|
66
66
|
writeable: boolean;
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
weight: {
|
|
69
69
|
type: string;
|
|
70
70
|
collection: boolean;
|
|
71
71
|
writeable: boolean;
|
|
72
|
-
|
|
72
|
+
default: number;
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
systemd: {
|
|
75
75
|
type: string;
|
|
76
76
|
collection: boolean;
|
|
77
77
|
writeable: boolean;
|
|
78
78
|
};
|
|
79
|
-
|
|
79
|
+
port: {
|
|
80
80
|
type: string;
|
|
81
81
|
collection: boolean;
|
|
82
82
|
writeable: boolean;
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
protocol: {
|
|
85
85
|
type: string;
|
|
86
86
|
collection: boolean;
|
|
87
87
|
writeable: boolean;
|
|
88
|
-
|
|
88
|
+
values: string[];
|
|
89
89
|
};
|
|
90
|
-
|
|
90
|
+
type: {
|
|
91
91
|
type: string;
|
|
92
92
|
collection: boolean;
|
|
93
93
|
writeable: boolean;
|
|
94
|
-
default: boolean;
|
|
95
94
|
};
|
|
96
|
-
|
|
95
|
+
tls: {
|
|
97
96
|
type: string;
|
|
98
97
|
collection: boolean;
|
|
99
98
|
writeable: boolean;
|
|
99
|
+
default: boolean;
|
|
100
100
|
};
|
|
101
101
|
hostName: {
|
|
102
102
|
type: string;
|
|
@@ -188,43 +188,43 @@ export class NTPService extends ExtraSourceService {
|
|
|
188
188
|
collection: boolean;
|
|
189
189
|
writeable: boolean;
|
|
190
190
|
};
|
|
191
|
-
|
|
191
|
+
alias: {
|
|
192
192
|
type: string;
|
|
193
193
|
collection: boolean;
|
|
194
194
|
writeable: boolean;
|
|
195
195
|
};
|
|
196
|
-
|
|
196
|
+
weight: {
|
|
197
197
|
type: string;
|
|
198
198
|
collection: boolean;
|
|
199
199
|
writeable: boolean;
|
|
200
|
-
|
|
200
|
+
default: number;
|
|
201
201
|
};
|
|
202
|
-
|
|
202
|
+
systemd: {
|
|
203
203
|
type: string;
|
|
204
204
|
collection: boolean;
|
|
205
205
|
writeable: boolean;
|
|
206
206
|
};
|
|
207
|
-
|
|
207
|
+
port: {
|
|
208
208
|
type: string;
|
|
209
209
|
collection: boolean;
|
|
210
210
|
writeable: boolean;
|
|
211
211
|
};
|
|
212
|
-
|
|
212
|
+
protocol: {
|
|
213
213
|
type: string;
|
|
214
214
|
collection: boolean;
|
|
215
215
|
writeable: boolean;
|
|
216
|
-
|
|
216
|
+
values: string[];
|
|
217
217
|
};
|
|
218
|
-
|
|
218
|
+
type: {
|
|
219
219
|
type: string;
|
|
220
220
|
collection: boolean;
|
|
221
221
|
writeable: boolean;
|
|
222
|
-
default: boolean;
|
|
223
222
|
};
|
|
224
|
-
|
|
223
|
+
tls: {
|
|
225
224
|
type: string;
|
|
226
225
|
collection: boolean;
|
|
227
226
|
writeable: boolean;
|
|
227
|
+
default: boolean;
|
|
228
228
|
};
|
|
229
229
|
hostName: {
|
|
230
230
|
type: string;
|