pmcf 3.8.14 → 3.8.15

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "3.8.14",
3
+ "version": "3.8.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -51,7 +51,7 @@
51
51
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
52
52
  },
53
53
  "dependencies": {
54
- "ip-utilties": "^1.4.8",
54
+ "ip-utilties": "^1.4.9",
55
55
  "npm-pkgbuild": "^18.2.29",
56
56
  "pacc": "^4.14.1",
57
57
  "package-directory": "^8.1.0"
package/src/base.mjs CHANGED
@@ -72,10 +72,6 @@ export class Base {
72
72
  case "object":
73
73
  this.read(data, BaseTypeDefinition);
74
74
  }
75
-
76
- if (this.name === undefined) {
77
- this.error("Missing name", this.owner?.toString(), data);
78
- }
79
75
  }
80
76
 
81
77
  ownerFor(property, data) {
@@ -94,7 +90,11 @@ export class Base {
94
90
  return this;
95
91
  }
96
92
 
97
- read(data, type) {
93
+ read(data, type=this.constructor.typeDefinition) {
94
+ if(type.extends) {
95
+ this.read(data, type.extends);
96
+ }
97
+
98
98
  const assign = (name, property, value) => {
99
99
  if (value === undefined && property.default !== undefined) {
100
100
  value = property.default;
@@ -178,6 +178,7 @@ export class Base {
178
178
  this.ownerFor(property, value),
179
179
  value
180
180
  );
181
+ object.read(value);
181
182
  this.addObject(object);
182
183
  } else {
183
184
  this.finalize(() => {
package/src/cluster.mjs CHANGED
@@ -35,10 +35,6 @@ export class Cluster extends Host {
35
35
  return ClusterTypeDefinition;
36
36
  }
37
37
 
38
- constructor(owner, data) {
39
- super(owner, data);
40
- this.read(data, ClusterTypeDefinition);
41
- }
42
38
 
43
39
  set masters(value) {
44
40
  this._masters.push(value);
@@ -22,11 +22,6 @@ export class ExtraSourceService extends Service {
22
22
  return ExtraSourceServiceTypeDefinition;
23
23
  }
24
24
 
25
- constructor(owner, data) {
26
- super(owner, data);
27
- this.read(data, ExtraSourceServiceTypeDefinition);
28
- }
29
-
30
25
  get type() {
31
26
  return ExtraSourceServiceTypeDefinition.name;
32
27
  }
package/src/host.mjs CHANGED
@@ -109,12 +109,13 @@ export class Host extends ServiceOwner {
109
109
 
110
110
  constructor(owner, data) {
111
111
  super(owner, data);
112
-
113
- this.read(data, HostTypeDefinition);
114
-
115
112
  owner.addObject(this);
113
+ }
116
114
 
117
- if (data.extends) {
115
+ read(data, type) {
116
+ super.read(data, type);
117
+
118
+ if (data?.extends) {
118
119
  this.finalize(() => {
119
120
  for (const host of this.extends) {
120
121
  host.execFinalize();
@@ -122,7 +123,6 @@ export class Host extends ServiceOwner {
122
123
  }
123
124
  });
124
125
  }
125
-
126
126
  this.extra = data.extra;
127
127
  }
128
128
 
package/src/location.mjs CHANGED
@@ -23,11 +23,6 @@ export class Location extends Owner {
23
23
  return LocationTypeDefinition;
24
24
  }
25
25
 
26
- constructor(owner, data) {
27
- super(owner, data);
28
- this.read(data, LocationTypeDefinition);
29
- }
30
-
31
26
  get location() {
32
27
  return this;
33
28
  }
@@ -30,11 +30,6 @@ export class EthernetNetworkInterface extends NetworkInterface {
30
30
  return name.match(/eth\d+$/);
31
31
  }
32
32
 
33
- constructor(owner, data) {
34
- super(owner, data);
35
- this.read(data, EthernetNetworkInterfaceTypeDefinition);
36
- }
37
-
38
33
  get kind() {
39
34
  return EthernetNetworkInterfaceTypeDefinition.name;
40
35
  }
@@ -33,11 +33,6 @@ export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
33
33
  return name.match(/lo\d+$/);
34
34
  }
35
35
 
36
- constructor(owner, data) {
37
- super(owner, data);
38
- this.read(data, NetworkInterfaceTypeDefinition);
39
- }
40
-
41
36
  get kind() {
42
37
  return LoopbackNetworkInterfaceTypeDefinition.name;
43
38
  }
@@ -69,11 +69,6 @@ export class NetworkInterface extends SkeletonNetworkInterface {
69
69
  _hwaddr;
70
70
  _class;
71
71
 
72
- constructor(owner, data) {
73
- super(owner, data);
74
- this.read(data, NetworkInterfaceTypeDefinition);
75
- }
76
-
77
72
  addSubnet(address) {
78
73
  if (!this.network) {
79
74
  if (!hasWellKnownSubnet(address)) {
@@ -1,8 +1,8 @@
1
- import { SkeletonNetworkInterface } from "./skeleton.mjs";
1
+ import { NetworkInterface } from "./network-interface.mjs";
2
2
  import { NetworkInterfaceTypeDefinition } from "./network-interface.mjs";
3
3
  import { addType } from "../types.mjs";
4
4
 
5
- const WireguardNetworkInterfaceTypeDefinition = {
5
+ const TUNdNetworkInterfaceTypeDefinition = {
6
6
  name: "tun",
7
7
  specializationOf: NetworkInterfaceTypeDefinition,
8
8
  owners: NetworkInterfaceTypeDefinition.owners,
@@ -11,20 +11,16 @@ const WireguardNetworkInterfaceTypeDefinition = {
11
11
  properties: {}
12
12
  };
13
13
 
14
- export class TUNNetworkInterface extends SkeletonNetworkInterface {
14
+ export class TUNNetworkInterface extends NetworkInterface {
15
15
  static {
16
16
  addType(this);
17
17
  }
18
18
 
19
19
  static get typeDefinition() {
20
- return WireguardNetworkInterfaceTypeDefinition;
20
+ return TUNdNetworkInterfaceTypeDefinition;
21
21
  }
22
22
 
23
23
  get kind() {
24
- return WireguardNetworkInterfaceTypeDefinition.name;
25
- }
26
-
27
- get ipAddresses() {
28
- return new Map();
24
+ return TUNdNetworkInterfaceTypeDefinition.name;
29
25
  }
30
26
  }
package/src/network.mjs CHANGED
@@ -35,11 +35,6 @@ export class Network extends Owner {
35
35
  return NetworkTypeDefinition;
36
36
  }
37
37
 
38
- constructor(owner, data) {
39
- super(owner, data);
40
- this.read(data, NetworkTypeDefinition);
41
- }
42
-
43
38
  get network() {
44
39
  return this;
45
40
  }
package/src/owner.mjs CHANGED
@@ -44,11 +44,6 @@ export class Owner extends Base {
44
44
  return OwnerTypeDefinition;
45
45
  }
46
46
 
47
- constructor(owner, data) {
48
- super(owner, data);
49
- this.read(data, OwnerTypeDefinition);
50
- }
51
-
52
47
  _traverse(...args) {
53
48
  if (super._traverse(...args)) {
54
49
  for (const typeSlot of this._membersByType.values()) {
package/src/service.mjs CHANGED
@@ -86,11 +86,6 @@ export class Service extends Base {
86
86
  return ServiceTypeDefinition;
87
87
  }
88
88
 
89
- constructor(owner, data) {
90
- super(owner, data);
91
- this.read(data, ServiceTypeDefinition);
92
- }
93
-
94
89
  toString() {
95
90
  return `${super.toString()}[${this.type}]`;
96
91
  }
@@ -120,7 +120,6 @@ export class BindService extends ExtraSourceService {
120
120
  retry = 72000;
121
121
  expire = 600000;
122
122
  minimum = 60000;
123
-
124
123
  static {
125
124
  addType(this);
126
125
  }
@@ -133,7 +132,13 @@ export class BindService extends ExtraSourceService {
133
132
  super(owner, data);
134
133
 
135
134
  this._systemd = "bind.service";
136
- this._extends.push(new Service(owner, { name: this.name, type: "dns" }));
135
+
136
+ // TODO
137
+ const dns = new Service(owner);
138
+ dns.name = "dns";
139
+ dns.type = "dns";
140
+
141
+ this._extends.push(dns);
137
142
  this.views = {};
138
143
 
139
144
  for (const name of ["internal", "protected"]) {
@@ -145,8 +150,6 @@ export class BindService extends ExtraSourceService {
145
150
 
146
151
  this.views.protected.inView = this.views.internal;
147
152
  this.views.protected.access = ["!internal"];
148
-
149
- this.read(data, BindServiceTypeDefinition);
150
153
  }
151
154
 
152
155
  get type() {
@@ -58,11 +58,7 @@ export class ChronyService extends ExtraSourceService {
58
58
 
59
59
  constructor(owner, data) {
60
60
  super(owner, data);
61
-
62
61
  this._extends.push(new Service(owner, { name: this.name, type: "ntp" }));
63
-
64
- this.read(data, ChronyServiceTypeDefinition);
65
-
66
62
  this._systemd = "chronyd.service";
67
63
  }
68
64
 
@@ -44,11 +44,6 @@ export class InfluxdbService extends Service {
44
44
  return InfluxdbServiceTypeDefinition;
45
45
  }
46
46
 
47
- constructor(owner, data) {
48
- super(owner, data);
49
- this.read(data, InfluxdbServiceTypeDefinition);
50
- }
51
-
52
47
  get type() {
53
48
  return InfluxdbServiceTypeDefinition.name;
54
49
  }
@@ -136,11 +136,6 @@ export class KeaService extends Service {
136
136
  return KeaServiceTypeDefinition;
137
137
  }
138
138
 
139
- constructor(owner, data) {
140
- super(owner, data);
141
- this.read(data, KeaServiceTypeDefinition);
142
- }
143
-
144
139
  get type() {
145
140
  return KeaServiceTypeDefinition.name;
146
141
  }
@@ -35,11 +35,6 @@ export class MosquittoService extends Service {
35
35
  return MosquittoServiceTypeDefinition;
36
36
  }
37
37
 
38
- constructor(owner, data) {
39
- super(owner, data);
40
- this.read(data, MosquittoServiceTypeDefinition);
41
- }
42
-
43
38
  get type() {
44
39
  return MosquittoServiceTypeDefinition.name;
45
40
  }
@@ -55,8 +55,6 @@ export class OpenLDAPService extends Service {
55
55
 
56
56
  constructor(owner, data) {
57
57
  super(owner, data);
58
- this.read(data, OpenLDAPServiceTypeDefinition);
59
-
60
58
  this._systemd = "slapd.service";
61
59
  }
62
60
 
@@ -35,11 +35,6 @@ export class SystemdJournalRemoteService extends Service {
35
35
  return SystemdJournalRemoteServiceTypeDefinition;
36
36
  }
37
37
 
38
- constructor(owner, data) {
39
- super(owner, data);
40
- this.read(data, SystemdJournalRemoteServiceTypeDefinition);
41
- }
42
-
43
38
  get type() {
44
39
  return SystemdJournalRemoteServiceTypeDefinition.name;
45
40
  }
@@ -23,11 +23,6 @@ export class SystemdJournalUploadService extends Service {
23
23
  return SystemdJournalUploadServiceTypeDefinition;
24
24
  }
25
25
 
26
- constructor(owner, data) {
27
- super(owner, data);
28
- this.read(data, SystemdJournalUploadServiceTypeDefinition);
29
- }
30
-
31
26
  get type() {
32
27
  return SystemdJournalUploadServiceTypeDefinition.name;
33
28
  }
@@ -20,11 +20,6 @@ export class SystemdJournalService extends Service {
20
20
  return SystemdJournalServiceTypeDefinition;
21
21
  }
22
22
 
23
- constructor(owner, data) {
24
- super(owner, data);
25
- this.read(data, SystemdJournalServiceTypeDefinition);
26
- }
27
-
28
23
  get type() {
29
24
  return SystemdJournalServiceTypeDefinition.name;
30
25
  }
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  ExtraSourceService,
3
+ ExtraSourceServiceTypeDefinition,
3
4
  ServiceTypeDefinition,
4
5
  serviceEndpoints
5
6
  } from "pmcf";
@@ -9,7 +10,7 @@ const SystemdResolvedServiceTypeDefinition = {
9
10
  name: "systemd-resolved",
10
11
  specializationOf: ServiceTypeDefinition,
11
12
  owners: ServiceTypeDefinition.owners,
12
- extends: ServiceTypeDefinition,
13
+ extends: ExtraSourceServiceTypeDefinition,
13
14
  priority: 0.1,
14
15
  properties: {},
15
16
  service: {}
@@ -24,11 +25,6 @@ export class SystemdResolvedService extends ExtraSourceService {
24
25
  return SystemdResolvedServiceTypeDefinition;
25
26
  }
26
27
 
27
- constructor(owner, data) {
28
- super(owner, data);
29
- this.read(data, SystemdResolvedServiceTypeDefinition);
30
- }
31
-
32
28
  get type() {
33
29
  return SystemdResolvedServiceTypeDefinition.name;
34
30
  }
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  ExtraSourceService,
3
+ ExtraSourceServiceTypeDefinition,
3
4
  ServiceTypeDefinition,
4
5
  serviceEndpoints
5
6
  } from "pmcf";
@@ -9,7 +10,7 @@ const SystemdTimesyncdServiceTypeDefinition = {
9
10
  name: "systemd-timesyncd",
10
11
  specializationOf: ServiceTypeDefinition,
11
12
  owners: ServiceTypeDefinition.owners,
12
- extends: ServiceTypeDefinition,
13
+ extends: ExtraSourceServiceTypeDefinition,
13
14
  priority: 0.1,
14
15
  properties: {},
15
16
  service: {}
@@ -24,11 +25,6 @@ export class SystemdTimesyncdService extends ExtraSourceService {
24
25
  return SystemdTimesyncdServiceTypeDefinition;
25
26
  }
26
27
 
27
- constructor(owner, data) {
28
- super(owner, data);
29
- this.read(data, SystemdTimesyncdServiceTypeDefinition);
30
- }
31
-
32
28
  get type() {
33
29
  return SystemdTimesyncdServiceTypeDefinition.name;
34
30
  }
package/src/types.mjs CHANGED
@@ -91,5 +91,7 @@ export function resolveTypeLinks() {
91
91
 
92
92
  export function typeFactory(type, owner, data) {
93
93
  const factory = type.factoryFor?.(owner, data) || type.clazz;
94
- return new factory(owner, data);
94
+ const object = new factory(owner);
95
+ object.read(data);
96
+ return object;
95
97
  }
package/types/base.d.mts CHANGED
@@ -61,7 +61,7 @@ export class Base {
61
61
  _finalize: any;
62
62
  _properties: any;
63
63
  ownerFor(property: any, data: any): any;
64
- read(data: any, type: any): void;
64
+ read(data: any, type?: any): void;
65
65
  named(name: any): void;
66
66
  typeNamed(typeName: any, name: any): any;
67
67
  addObject(object: any): any;
@@ -1,4 +1,4 @@
1
- export class TUNNetworkInterface extends SkeletonNetworkInterface {
1
+ export class TUNNetworkInterface extends NetworkInterface {
2
2
  static get typeDefinition(): {
3
3
  name: string;
4
4
  specializationOf: {
@@ -573,4 +573,4 @@ export class TUNNetworkInterface extends SkeletonNetworkInterface {
573
573
  };
574
574
  get kind(): string;
575
575
  }
576
- import { SkeletonNetworkInterface } from "./skeleton.mjs";
576
+ import { NetworkInterface } from "./network-interface.mjs";
@@ -203,22 +203,106 @@ export class SystemdResolvedService extends ExtraSourceService {
203
203
  extends: {
204
204
  name: string;
205
205
  owners: string[];
206
- priority: number;
207
206
  extends: {
208
207
  name: string;
209
- owners: any[];
208
+ owners: string[];
209
+ priority: number;
210
+ extends: {
211
+ name: string;
212
+ owners: any[];
213
+ properties: {
214
+ owner: {
215
+ type: string;
216
+ collection: boolean;
217
+ writable: boolean;
218
+ };
219
+ type: import("pacc").AttributeDefinition;
220
+ name: import("pacc").AttributeDefinition;
221
+ description: {
222
+ writable: boolean;
223
+ type: string;
224
+ isKey: boolean;
225
+ mandatory: boolean;
226
+ collection: boolean;
227
+ private?: boolean;
228
+ depends?: string;
229
+ description?: string;
230
+ default?: any;
231
+ set?: Function;
232
+ get?: Function;
233
+ env?: string[] | string;
234
+ };
235
+ priority: import("pacc").AttributeDefinition;
236
+ directory: {
237
+ writable: boolean;
238
+ type: string;
239
+ isKey: boolean;
240
+ mandatory: boolean;
241
+ collection: boolean;
242
+ private?: boolean;
243
+ depends?: string;
244
+ description?: string;
245
+ default?: any;
246
+ set?: Function;
247
+ get?: Function;
248
+ env?: string[] | string;
249
+ };
250
+ packaging: import("pacc").AttributeDefinition;
251
+ disabled: import("pacc").AttributeDefinition;
252
+ tags: import("pacc").AttributeDefinition;
253
+ };
254
+ };
255
+ specializations: {};
256
+ factoryFor(owner: any, value: any): any;
210
257
  properties: {
211
- owner: {
258
+ alias: {
212
259
  type: string;
260
+ isKey: boolean;
261
+ writable: boolean;
262
+ mandatory: boolean;
213
263
  collection: boolean;
264
+ private?: boolean;
265
+ depends?: string;
266
+ description?: string;
267
+ default?: any;
268
+ set?: Function;
269
+ get?: Function;
270
+ env?: string[] | string;
271
+ };
272
+ weight: {
273
+ type: string;
274
+ isKey: boolean;
214
275
  writable: boolean;
276
+ mandatory: boolean;
277
+ collection: boolean;
278
+ private?: boolean;
279
+ depends?: string;
280
+ description?: string;
281
+ default?: any;
282
+ set?: Function;
283
+ get?: Function;
284
+ env?: string[] | string;
215
285
  };
216
- type: import("pacc").AttributeDefinition;
217
- name: import("pacc").AttributeDefinition;
218
- description: {
286
+ systemd: import("pacc").AttributeDefinition;
287
+ port: {
288
+ type: string;
289
+ isKey: boolean;
219
290
  writable: boolean;
291
+ mandatory: boolean;
292
+ collection: boolean;
293
+ private?: boolean;
294
+ depends?: string;
295
+ description?: string;
296
+ default?: any;
297
+ set?: Function;
298
+ get?: Function;
299
+ env?: string[] | string;
300
+ };
301
+ protocol: {
302
+ values: string[];
220
303
  type: string;
221
304
  isKey: boolean;
305
+ writable: boolean;
222
306
  mandatory: boolean;
223
307
  collection: boolean;
224
308
  private?: boolean;
@@ -229,8 +313,23 @@ export class SystemdResolvedService extends ExtraSourceService {
229
313
  get?: Function;
230
314
  env?: string[] | string;
231
315
  };
232
- priority: import("pacc").AttributeDefinition;
233
- directory: {
316
+ type: {
317
+ type: string;
318
+ isKey: boolean;
319
+ writable: boolean;
320
+ mandatory: boolean;
321
+ collection: boolean;
322
+ private?: boolean;
323
+ depends?: string;
324
+ description?: string;
325
+ default?: any;
326
+ set?: Function;
327
+ get?: Function;
328
+ env?: string[] | string;
329
+ };
330
+ types: typeof import("pacc").string_collection_attribute;
331
+ tls: import("pacc").AttributeDefinition;
332
+ hostName: {
234
333
  writable: boolean;
235
334
  type: string;
236
335
  isKey: boolean;
@@ -244,157 +343,70 @@ export class SystemdResolvedService extends ExtraSourceService {
244
343
  get?: Function;
245
344
  env?: string[] | string;
246
345
  };
247
- packaging: import("pacc").AttributeDefinition;
248
- disabled: import("pacc").AttributeDefinition;
249
- tags: import("pacc").AttributeDefinition;
346
+ cidrAddresses: {
347
+ type: string;
348
+ isKey: boolean;
349
+ writable: boolean;
350
+ mandatory: boolean;
351
+ collection: boolean;
352
+ private?: boolean;
353
+ depends?: string;
354
+ description?: string;
355
+ default?: any;
356
+ set?: Function;
357
+ get?: Function;
358
+ env?: string[] | string;
359
+ };
360
+ cidrAddress: {
361
+ type: string;
362
+ isKey: boolean;
363
+ writable: boolean;
364
+ mandatory: boolean;
365
+ collection: boolean;
366
+ private?: boolean;
367
+ depends?: string;
368
+ description?: string;
369
+ default?: any;
370
+ set?: Function;
371
+ get?: Function;
372
+ env?: string[] | string;
373
+ };
374
+ addresses: {
375
+ type: string;
376
+ isKey: boolean;
377
+ writable: boolean;
378
+ mandatory: boolean;
379
+ collection: boolean;
380
+ private?: boolean;
381
+ depends?: string;
382
+ description?: string;
383
+ default?: any;
384
+ set?: Function;
385
+ get?: Function;
386
+ env?: string[] | string;
387
+ };
388
+ address: {
389
+ type: string;
390
+ isKey: boolean;
391
+ writable: boolean;
392
+ mandatory: boolean;
393
+ collection: boolean;
394
+ private?: boolean;
395
+ depends?: string;
396
+ description?: string;
397
+ default?: any;
398
+ set?: Function;
399
+ get?: Function;
400
+ env?: string[] | string;
401
+ };
250
402
  };
251
403
  };
252
- specializations: {};
253
- factoryFor(owner: any, value: any): any;
404
+ priority: number;
254
405
  properties: {
255
- alias: {
256
- type: string;
257
- isKey: boolean;
258
- writable: boolean;
259
- mandatory: boolean;
260
- collection: boolean;
261
- private?: boolean;
262
- depends?: string;
263
- description?: string;
264
- default?: any;
265
- set?: Function;
266
- get?: Function;
267
- env?: string[] | string;
268
- };
269
- weight: {
270
- type: string;
271
- isKey: boolean;
272
- writable: boolean;
273
- mandatory: boolean;
274
- collection: boolean;
275
- private?: boolean;
276
- depends?: string;
277
- description?: string;
278
- default?: any;
279
- set?: Function;
280
- get?: Function;
281
- env?: string[] | string;
282
- };
283
- systemd: import("pacc").AttributeDefinition;
284
- port: {
285
- type: string;
286
- isKey: boolean;
287
- writable: boolean;
288
- mandatory: boolean;
289
- collection: boolean;
290
- private?: boolean;
291
- depends?: string;
292
- description?: string;
293
- default?: any;
294
- set?: Function;
295
- get?: Function;
296
- env?: string[] | string;
297
- };
298
- protocol: {
299
- values: string[];
300
- type: string;
301
- isKey: boolean;
302
- writable: boolean;
303
- mandatory: boolean;
304
- collection: boolean;
305
- private?: boolean;
306
- depends?: string;
307
- description?: string;
308
- default?: any;
309
- set?: Function;
310
- get?: Function;
311
- env?: string[] | string;
312
- };
313
- type: {
314
- type: string;
315
- isKey: boolean;
316
- writable: boolean;
317
- mandatory: boolean;
318
- collection: boolean;
319
- private?: boolean;
320
- depends?: string;
321
- description?: string;
322
- default?: any;
323
- set?: Function;
324
- get?: Function;
325
- env?: string[] | string;
326
- };
327
- types: typeof import("pacc").string_collection_attribute;
328
- tls: import("pacc").AttributeDefinition;
329
- hostName: {
330
- writable: boolean;
406
+ source: {
331
407
  type: string;
332
- isKey: boolean;
333
- mandatory: boolean;
334
- collection: boolean;
335
- private?: boolean;
336
- depends?: string;
337
- description?: string;
338
- default?: any;
339
- set?: Function;
340
- get?: Function;
341
- env?: string[] | string;
342
- };
343
- cidrAddresses: {
344
- type: string;
345
- isKey: boolean;
346
- writable: boolean;
347
- mandatory: boolean;
348
- collection: boolean;
349
- private?: boolean;
350
- depends?: string;
351
- description?: string;
352
- default?: any;
353
- set?: Function;
354
- get?: Function;
355
- env?: string[] | string;
356
- };
357
- cidrAddress: {
358
- type: string;
359
- isKey: boolean;
360
- writable: boolean;
361
- mandatory: boolean;
362
- collection: boolean;
363
- private?: boolean;
364
- depends?: string;
365
- description?: string;
366
- default?: any;
367
- set?: Function;
368
- get?: Function;
369
- env?: string[] | string;
370
- };
371
- addresses: {
372
- type: string;
373
- isKey: boolean;
374
- writable: boolean;
375
- mandatory: boolean;
376
408
  collection: boolean;
377
- private?: boolean;
378
- depends?: string;
379
- description?: string;
380
- default?: any;
381
- set?: Function;
382
- get?: Function;
383
- env?: string[] | string;
384
- };
385
- address: {
386
- type: string;
387
- isKey: boolean;
388
409
  writable: boolean;
389
- mandatory: boolean;
390
- collection: boolean;
391
- private?: boolean;
392
- depends?: string;
393
- description?: string;
394
- default?: any;
395
- set?: Function;
396
- get?: Function;
397
- env?: string[] | string;
398
410
  };
399
411
  };
400
412
  };
@@ -203,22 +203,106 @@ export class SystemdTimesyncdService extends ExtraSourceService {
203
203
  extends: {
204
204
  name: string;
205
205
  owners: string[];
206
- priority: number;
207
206
  extends: {
208
207
  name: string;
209
- owners: any[];
208
+ owners: string[];
209
+ priority: number;
210
+ extends: {
211
+ name: string;
212
+ owners: any[];
213
+ properties: {
214
+ owner: {
215
+ type: string;
216
+ collection: boolean;
217
+ writable: boolean;
218
+ };
219
+ type: import("pacc").AttributeDefinition;
220
+ name: import("pacc").AttributeDefinition;
221
+ description: {
222
+ writable: boolean;
223
+ type: string;
224
+ isKey: boolean;
225
+ mandatory: boolean;
226
+ collection: boolean;
227
+ private?: boolean;
228
+ depends?: string;
229
+ description?: string;
230
+ default?: any;
231
+ set?: Function;
232
+ get?: Function;
233
+ env?: string[] | string;
234
+ };
235
+ priority: import("pacc").AttributeDefinition;
236
+ directory: {
237
+ writable: boolean;
238
+ type: string;
239
+ isKey: boolean;
240
+ mandatory: boolean;
241
+ collection: boolean;
242
+ private?: boolean;
243
+ depends?: string;
244
+ description?: string;
245
+ default?: any;
246
+ set?: Function;
247
+ get?: Function;
248
+ env?: string[] | string;
249
+ };
250
+ packaging: import("pacc").AttributeDefinition;
251
+ disabled: import("pacc").AttributeDefinition;
252
+ tags: import("pacc").AttributeDefinition;
253
+ };
254
+ };
255
+ specializations: {};
256
+ factoryFor(owner: any, value: any): any;
210
257
  properties: {
211
- owner: {
258
+ alias: {
212
259
  type: string;
260
+ isKey: boolean;
261
+ writable: boolean;
262
+ mandatory: boolean;
213
263
  collection: boolean;
264
+ private?: boolean;
265
+ depends?: string;
266
+ description?: string;
267
+ default?: any;
268
+ set?: Function;
269
+ get?: Function;
270
+ env?: string[] | string;
271
+ };
272
+ weight: {
273
+ type: string;
274
+ isKey: boolean;
214
275
  writable: boolean;
276
+ mandatory: boolean;
277
+ collection: boolean;
278
+ private?: boolean;
279
+ depends?: string;
280
+ description?: string;
281
+ default?: any;
282
+ set?: Function;
283
+ get?: Function;
284
+ env?: string[] | string;
215
285
  };
216
- type: import("pacc").AttributeDefinition;
217
- name: import("pacc").AttributeDefinition;
218
- description: {
286
+ systemd: import("pacc").AttributeDefinition;
287
+ port: {
288
+ type: string;
289
+ isKey: boolean;
219
290
  writable: boolean;
291
+ mandatory: boolean;
292
+ collection: boolean;
293
+ private?: boolean;
294
+ depends?: string;
295
+ description?: string;
296
+ default?: any;
297
+ set?: Function;
298
+ get?: Function;
299
+ env?: string[] | string;
300
+ };
301
+ protocol: {
302
+ values: string[];
220
303
  type: string;
221
304
  isKey: boolean;
305
+ writable: boolean;
222
306
  mandatory: boolean;
223
307
  collection: boolean;
224
308
  private?: boolean;
@@ -229,8 +313,23 @@ export class SystemdTimesyncdService extends ExtraSourceService {
229
313
  get?: Function;
230
314
  env?: string[] | string;
231
315
  };
232
- priority: import("pacc").AttributeDefinition;
233
- directory: {
316
+ type: {
317
+ type: string;
318
+ isKey: boolean;
319
+ writable: boolean;
320
+ mandatory: boolean;
321
+ collection: boolean;
322
+ private?: boolean;
323
+ depends?: string;
324
+ description?: string;
325
+ default?: any;
326
+ set?: Function;
327
+ get?: Function;
328
+ env?: string[] | string;
329
+ };
330
+ types: typeof import("pacc").string_collection_attribute;
331
+ tls: import("pacc").AttributeDefinition;
332
+ hostName: {
234
333
  writable: boolean;
235
334
  type: string;
236
335
  isKey: boolean;
@@ -244,157 +343,70 @@ export class SystemdTimesyncdService extends ExtraSourceService {
244
343
  get?: Function;
245
344
  env?: string[] | string;
246
345
  };
247
- packaging: import("pacc").AttributeDefinition;
248
- disabled: import("pacc").AttributeDefinition;
249
- tags: import("pacc").AttributeDefinition;
346
+ cidrAddresses: {
347
+ type: string;
348
+ isKey: boolean;
349
+ writable: boolean;
350
+ mandatory: boolean;
351
+ collection: boolean;
352
+ private?: boolean;
353
+ depends?: string;
354
+ description?: string;
355
+ default?: any;
356
+ set?: Function;
357
+ get?: Function;
358
+ env?: string[] | string;
359
+ };
360
+ cidrAddress: {
361
+ type: string;
362
+ isKey: boolean;
363
+ writable: boolean;
364
+ mandatory: boolean;
365
+ collection: boolean;
366
+ private?: boolean;
367
+ depends?: string;
368
+ description?: string;
369
+ default?: any;
370
+ set?: Function;
371
+ get?: Function;
372
+ env?: string[] | string;
373
+ };
374
+ addresses: {
375
+ type: string;
376
+ isKey: boolean;
377
+ writable: boolean;
378
+ mandatory: boolean;
379
+ collection: boolean;
380
+ private?: boolean;
381
+ depends?: string;
382
+ description?: string;
383
+ default?: any;
384
+ set?: Function;
385
+ get?: Function;
386
+ env?: string[] | string;
387
+ };
388
+ address: {
389
+ type: string;
390
+ isKey: boolean;
391
+ writable: boolean;
392
+ mandatory: boolean;
393
+ collection: boolean;
394
+ private?: boolean;
395
+ depends?: string;
396
+ description?: string;
397
+ default?: any;
398
+ set?: Function;
399
+ get?: Function;
400
+ env?: string[] | string;
401
+ };
250
402
  };
251
403
  };
252
- specializations: {};
253
- factoryFor(owner: any, value: any): any;
404
+ priority: number;
254
405
  properties: {
255
- alias: {
256
- type: string;
257
- isKey: boolean;
258
- writable: boolean;
259
- mandatory: boolean;
260
- collection: boolean;
261
- private?: boolean;
262
- depends?: string;
263
- description?: string;
264
- default?: any;
265
- set?: Function;
266
- get?: Function;
267
- env?: string[] | string;
268
- };
269
- weight: {
270
- type: string;
271
- isKey: boolean;
272
- writable: boolean;
273
- mandatory: boolean;
274
- collection: boolean;
275
- private?: boolean;
276
- depends?: string;
277
- description?: string;
278
- default?: any;
279
- set?: Function;
280
- get?: Function;
281
- env?: string[] | string;
282
- };
283
- systemd: import("pacc").AttributeDefinition;
284
- port: {
285
- type: string;
286
- isKey: boolean;
287
- writable: boolean;
288
- mandatory: boolean;
289
- collection: boolean;
290
- private?: boolean;
291
- depends?: string;
292
- description?: string;
293
- default?: any;
294
- set?: Function;
295
- get?: Function;
296
- env?: string[] | string;
297
- };
298
- protocol: {
299
- values: string[];
300
- type: string;
301
- isKey: boolean;
302
- writable: boolean;
303
- mandatory: boolean;
304
- collection: boolean;
305
- private?: boolean;
306
- depends?: string;
307
- description?: string;
308
- default?: any;
309
- set?: Function;
310
- get?: Function;
311
- env?: string[] | string;
312
- };
313
- type: {
314
- type: string;
315
- isKey: boolean;
316
- writable: boolean;
317
- mandatory: boolean;
318
- collection: boolean;
319
- private?: boolean;
320
- depends?: string;
321
- description?: string;
322
- default?: any;
323
- set?: Function;
324
- get?: Function;
325
- env?: string[] | string;
326
- };
327
- types: typeof import("pacc").string_collection_attribute;
328
- tls: import("pacc").AttributeDefinition;
329
- hostName: {
330
- writable: boolean;
406
+ source: {
331
407
  type: string;
332
- isKey: boolean;
333
- mandatory: boolean;
334
- collection: boolean;
335
- private?: boolean;
336
- depends?: string;
337
- description?: string;
338
- default?: any;
339
- set?: Function;
340
- get?: Function;
341
- env?: string[] | string;
342
- };
343
- cidrAddresses: {
344
- type: string;
345
- isKey: boolean;
346
- writable: boolean;
347
- mandatory: boolean;
348
- collection: boolean;
349
- private?: boolean;
350
- depends?: string;
351
- description?: string;
352
- default?: any;
353
- set?: Function;
354
- get?: Function;
355
- env?: string[] | string;
356
- };
357
- cidrAddress: {
358
- type: string;
359
- isKey: boolean;
360
- writable: boolean;
361
- mandatory: boolean;
362
- collection: boolean;
363
- private?: boolean;
364
- depends?: string;
365
- description?: string;
366
- default?: any;
367
- set?: Function;
368
- get?: Function;
369
- env?: string[] | string;
370
- };
371
- addresses: {
372
- type: string;
373
- isKey: boolean;
374
- writable: boolean;
375
- mandatory: boolean;
376
408
  collection: boolean;
377
- private?: boolean;
378
- depends?: string;
379
- description?: string;
380
- default?: any;
381
- set?: Function;
382
- get?: Function;
383
- env?: string[] | string;
384
- };
385
- address: {
386
- type: string;
387
- isKey: boolean;
388
409
  writable: boolean;
389
- mandatory: boolean;
390
- collection: boolean;
391
- private?: boolean;
392
- depends?: string;
393
- description?: string;
394
- default?: any;
395
- set?: Function;
396
- get?: Function;
397
- env?: string[] | string;
398
410
  };
399
411
  };
400
412
  };