pmcf 3.6.2 → 3.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "3.6.2",
3
+ "version": "3.7.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/module.mjs CHANGED
@@ -25,6 +25,7 @@ export * from "./services/kea.mjs";
25
25
  export * from "./services/openldap.mjs";
26
26
  export * from "./services/influxdb.mjs";
27
27
  export * from "./services/mosquitto.mjs";
28
+ export * from "./services/headscale.mjs";
28
29
  export * from "./services/systemd-journal.mjs";
29
30
  export * from "./services/systemd-journal-remote.mjs";
30
31
  export * from "./services/systemd-journal-upload.mjs";
@@ -0,0 +1,41 @@
1
+ import { addType } from "../types.mjs";
2
+ import { ServiceTypeDefinition } from "../service.mjs";
3
+ import {
4
+ ExtraSourceService,
5
+ ExtraSourceServiceTypeDefinition
6
+ } from "../extra-source-service.mjs";
7
+
8
+ const HeadscaleServiceTypeDefinition = {
9
+ name: "headscale",
10
+ specializationOf: ServiceTypeDefinition,
11
+ owners: ServiceTypeDefinition.owners,
12
+ extends: ExtraSourceServiceTypeDefinition,
13
+ priority: 0.1,
14
+ properties: {},
15
+ service: {
16
+ endpoints: [
17
+ {
18
+ family: "IPv4",
19
+ port: 8080,
20
+ protocol: "tcp",
21
+ tls: false
22
+ },
23
+ {
24
+ family: "IPv4",
25
+ port: 50443,
26
+ protocol: "tcp",
27
+ tls: false
28
+ }
29
+ ]
30
+ }
31
+ };
32
+
33
+ export class HeadscaleService extends ExtraSourceService {
34
+ static {
35
+ addType(this);
36
+ }
37
+
38
+ static get typeDefinition() {
39
+ return HeadscaleServiceTypeDefinition;
40
+ }
41
+ }
@@ -25,6 +25,7 @@ export * from "./services/kea.mjs";
25
25
  export * from "./services/openldap.mjs";
26
26
  export * from "./services/influxdb.mjs";
27
27
  export * from "./services/mosquitto.mjs";
28
+ export * from "./services/headscale.mjs";
28
29
  export * from "./services/systemd-journal.mjs";
29
30
  export * from "./services/systemd-journal-remote.mjs";
30
31
  export * from "./services/systemd-journal-upload.mjs";
@@ -0,0 +1,477 @@
1
+ export class HeadscaleService extends ExtraSourceService {
2
+ static get typeDefinition(): {
3
+ name: string;
4
+ specializationOf: {
5
+ name: string;
6
+ owners: string[];
7
+ priority: number;
8
+ extends: {
9
+ name: string;
10
+ owners: any[];
11
+ properties: {
12
+ owner: {
13
+ type: string;
14
+ collection: boolean;
15
+ writable: boolean;
16
+ };
17
+ type: import("pacc").AttributeDefinition;
18
+ name: {
19
+ writable: boolean;
20
+ type: string;
21
+ isKey: boolean;
22
+ mandatory: boolean;
23
+ collection: boolean;
24
+ private?: boolean;
25
+ depends?: string;
26
+ description?: string;
27
+ default?: any;
28
+ set?: Function;
29
+ get?: Function;
30
+ env?: string[] | string;
31
+ };
32
+ description: {
33
+ writable: boolean;
34
+ type: string;
35
+ isKey: boolean;
36
+ mandatory: boolean;
37
+ collection: boolean;
38
+ private?: boolean;
39
+ depends?: string;
40
+ description?: string;
41
+ default?: any;
42
+ set?: Function;
43
+ get?: Function;
44
+ env?: string[] | string;
45
+ };
46
+ priority: import("pacc").AttributeDefinition;
47
+ directory: {
48
+ writable: boolean;
49
+ type: string;
50
+ isKey: boolean;
51
+ mandatory: boolean;
52
+ collection: boolean;
53
+ private?: boolean;
54
+ depends?: string;
55
+ description?: string;
56
+ default?: any;
57
+ set?: Function;
58
+ get?: Function;
59
+ env?: string[] | string;
60
+ };
61
+ packaging: {
62
+ writable: boolean;
63
+ type: string;
64
+ isKey: boolean;
65
+ mandatory: boolean;
66
+ collection: boolean;
67
+ private?: boolean;
68
+ depends?: string;
69
+ description?: string;
70
+ default?: any;
71
+ set?: Function;
72
+ get?: Function;
73
+ env?: string[] | string;
74
+ };
75
+ disabled: import("pacc").AttributeDefinition;
76
+ tags: import("pacc").AttributeDefinition;
77
+ };
78
+ };
79
+ specializations: {};
80
+ factoryFor(owner: any, value: any): any;
81
+ properties: {
82
+ alias: {
83
+ writable: boolean;
84
+ type: string;
85
+ isKey: boolean;
86
+ mandatory: boolean;
87
+ collection: boolean;
88
+ private?: boolean;
89
+ depends?: string;
90
+ description?: string;
91
+ default?: any;
92
+ set?: Function;
93
+ get?: Function;
94
+ env?: string[] | string;
95
+ };
96
+ weight: {
97
+ type: string;
98
+ isKey: boolean;
99
+ writable: boolean;
100
+ mandatory: boolean;
101
+ collection: boolean;
102
+ private?: boolean;
103
+ depends?: string;
104
+ description?: string;
105
+ default?: any;
106
+ set?: Function;
107
+ get?: Function;
108
+ env?: string[] | string;
109
+ };
110
+ systemd: import("pacc").AttributeDefinition;
111
+ port: {
112
+ type: string;
113
+ isKey: boolean;
114
+ writable: boolean;
115
+ mandatory: boolean;
116
+ collection: boolean;
117
+ private?: boolean;
118
+ depends?: string;
119
+ description?: string;
120
+ default?: any;
121
+ set?: Function;
122
+ get?: Function;
123
+ env?: string[] | string;
124
+ };
125
+ protocol: {
126
+ writable: boolean;
127
+ values: string[];
128
+ type: string;
129
+ isKey: boolean;
130
+ mandatory: boolean;
131
+ collection: boolean;
132
+ private?: boolean;
133
+ depends?: string;
134
+ description?: string;
135
+ default?: any;
136
+ set?: Function;
137
+ get?: Function;
138
+ env?: string[] | string;
139
+ };
140
+ type: {
141
+ writable: boolean;
142
+ type: string;
143
+ isKey: boolean;
144
+ mandatory: boolean;
145
+ collection: boolean;
146
+ private?: boolean;
147
+ depends?: string;
148
+ description?: string;
149
+ default?: any;
150
+ set?: Function;
151
+ get?: Function;
152
+ env?: string[] | string;
153
+ };
154
+ types: typeof import("pacc").string_collection_attribute;
155
+ tls: import("pacc").AttributeDefinition;
156
+ hostName: {
157
+ writable: boolean;
158
+ type: string;
159
+ isKey: boolean;
160
+ mandatory: boolean;
161
+ collection: boolean;
162
+ private?: boolean;
163
+ depends?: string;
164
+ description?: string;
165
+ default?: any;
166
+ set?: Function;
167
+ get?: Function;
168
+ env?: string[] | string;
169
+ };
170
+ cidrAddresses: {
171
+ writable: boolean;
172
+ collection: boolean;
173
+ type: string;
174
+ isKey: boolean;
175
+ mandatory: boolean;
176
+ private: boolean;
177
+ depends: string;
178
+ description: string;
179
+ default: any;
180
+ set: Function;
181
+ get: Function;
182
+ env: string[] | string;
183
+ };
184
+ cidrAddress: {
185
+ writable: boolean;
186
+ type: string;
187
+ isKey: boolean;
188
+ mandatory: boolean;
189
+ collection: boolean;
190
+ private?: boolean;
191
+ depends?: string;
192
+ description?: string;
193
+ default?: any;
194
+ set?: Function;
195
+ get?: Function;
196
+ env?: string[] | string;
197
+ };
198
+ addresses: {
199
+ writable: boolean;
200
+ collection: boolean;
201
+ type: string;
202
+ isKey: boolean;
203
+ mandatory: boolean;
204
+ private: boolean;
205
+ depends: string;
206
+ description: string;
207
+ default: any;
208
+ set: Function;
209
+ get: Function;
210
+ env: string[] | string;
211
+ };
212
+ address: {
213
+ writable: boolean;
214
+ type: string;
215
+ isKey: boolean;
216
+ mandatory: boolean;
217
+ collection: boolean;
218
+ private?: boolean;
219
+ depends?: string;
220
+ description?: string;
221
+ default?: any;
222
+ set?: Function;
223
+ get?: Function;
224
+ env?: string[] | string;
225
+ };
226
+ };
227
+ };
228
+ owners: string[];
229
+ extends: {
230
+ name: string;
231
+ owners: string[];
232
+ extends: {
233
+ name: string;
234
+ owners: string[];
235
+ priority: number;
236
+ extends: {
237
+ name: string;
238
+ owners: any[];
239
+ properties: {
240
+ owner: {
241
+ type: string;
242
+ collection: boolean;
243
+ writable: boolean;
244
+ };
245
+ type: import("pacc").AttributeDefinition;
246
+ name: {
247
+ writable: boolean;
248
+ type: string;
249
+ isKey: boolean;
250
+ mandatory: boolean;
251
+ collection: boolean;
252
+ private?: boolean;
253
+ depends?: string;
254
+ description?: string;
255
+ default?: any;
256
+ set?: Function;
257
+ get?: Function;
258
+ env?: string[] | string;
259
+ };
260
+ description: {
261
+ writable: boolean;
262
+ type: string;
263
+ isKey: boolean;
264
+ mandatory: boolean;
265
+ collection: boolean;
266
+ private?: boolean;
267
+ depends?: string;
268
+ description?: string;
269
+ default?: any;
270
+ set?: Function;
271
+ get?: Function;
272
+ env?: string[] | string;
273
+ };
274
+ priority: import("pacc").AttributeDefinition;
275
+ directory: {
276
+ writable: boolean;
277
+ type: string;
278
+ isKey: boolean;
279
+ mandatory: boolean;
280
+ collection: boolean;
281
+ private?: boolean;
282
+ depends?: string;
283
+ description?: string;
284
+ default?: any;
285
+ set?: Function;
286
+ get?: Function;
287
+ env?: string[] | string;
288
+ };
289
+ packaging: {
290
+ writable: boolean;
291
+ type: string;
292
+ isKey: boolean;
293
+ mandatory: boolean;
294
+ collection: boolean;
295
+ private?: boolean;
296
+ depends?: string;
297
+ description?: string;
298
+ default?: any;
299
+ set?: Function;
300
+ get?: Function;
301
+ env?: string[] | string;
302
+ };
303
+ disabled: import("pacc").AttributeDefinition;
304
+ tags: import("pacc").AttributeDefinition;
305
+ };
306
+ };
307
+ specializations: {};
308
+ factoryFor(owner: any, value: any): any;
309
+ properties: {
310
+ alias: {
311
+ writable: boolean;
312
+ type: string;
313
+ isKey: boolean;
314
+ mandatory: boolean;
315
+ collection: boolean;
316
+ private?: boolean;
317
+ depends?: string;
318
+ description?: string;
319
+ default?: any;
320
+ set?: Function;
321
+ get?: Function;
322
+ env?: string[] | string;
323
+ };
324
+ weight: {
325
+ type: string;
326
+ isKey: boolean;
327
+ writable: boolean;
328
+ mandatory: boolean;
329
+ collection: boolean;
330
+ private?: boolean;
331
+ depends?: string;
332
+ description?: string;
333
+ default?: any;
334
+ set?: Function;
335
+ get?: Function;
336
+ env?: string[] | string;
337
+ };
338
+ systemd: import("pacc").AttributeDefinition;
339
+ port: {
340
+ type: string;
341
+ isKey: boolean;
342
+ writable: boolean;
343
+ mandatory: boolean;
344
+ collection: boolean;
345
+ private?: boolean;
346
+ depends?: string;
347
+ description?: string;
348
+ default?: any;
349
+ set?: Function;
350
+ get?: Function;
351
+ env?: string[] | string;
352
+ };
353
+ protocol: {
354
+ writable: boolean;
355
+ values: string[];
356
+ type: string;
357
+ isKey: boolean;
358
+ mandatory: boolean;
359
+ collection: boolean;
360
+ private?: boolean;
361
+ depends?: string;
362
+ description?: string;
363
+ default?: any;
364
+ set?: Function;
365
+ get?: Function;
366
+ env?: string[] | string;
367
+ };
368
+ type: {
369
+ writable: boolean;
370
+ type: string;
371
+ isKey: boolean;
372
+ mandatory: boolean;
373
+ collection: boolean;
374
+ private?: boolean;
375
+ depends?: string;
376
+ description?: string;
377
+ default?: any;
378
+ set?: Function;
379
+ get?: Function;
380
+ env?: string[] | string;
381
+ };
382
+ types: typeof import("pacc").string_collection_attribute;
383
+ tls: import("pacc").AttributeDefinition;
384
+ hostName: {
385
+ writable: boolean;
386
+ type: string;
387
+ isKey: boolean;
388
+ mandatory: boolean;
389
+ collection: boolean;
390
+ private?: boolean;
391
+ depends?: string;
392
+ description?: string;
393
+ default?: any;
394
+ set?: Function;
395
+ get?: Function;
396
+ env?: string[] | string;
397
+ };
398
+ cidrAddresses: {
399
+ writable: boolean;
400
+ collection: boolean;
401
+ type: string;
402
+ isKey: boolean;
403
+ mandatory: boolean;
404
+ private: boolean;
405
+ depends: string;
406
+ description: string;
407
+ default: any;
408
+ set: Function;
409
+ get: Function;
410
+ env: string[] | string;
411
+ };
412
+ cidrAddress: {
413
+ writable: boolean;
414
+ type: string;
415
+ isKey: boolean;
416
+ mandatory: boolean;
417
+ collection: boolean;
418
+ private?: boolean;
419
+ depends?: string;
420
+ description?: string;
421
+ default?: any;
422
+ set?: Function;
423
+ get?: Function;
424
+ env?: string[] | string;
425
+ };
426
+ addresses: {
427
+ writable: boolean;
428
+ collection: boolean;
429
+ type: string;
430
+ isKey: boolean;
431
+ mandatory: boolean;
432
+ private: boolean;
433
+ depends: string;
434
+ description: string;
435
+ default: any;
436
+ set: Function;
437
+ get: Function;
438
+ env: string[] | string;
439
+ };
440
+ address: {
441
+ writable: boolean;
442
+ type: string;
443
+ isKey: boolean;
444
+ mandatory: boolean;
445
+ collection: boolean;
446
+ private?: boolean;
447
+ depends?: string;
448
+ description?: string;
449
+ default?: any;
450
+ set?: Function;
451
+ get?: Function;
452
+ env?: string[] | string;
453
+ };
454
+ };
455
+ };
456
+ priority: number;
457
+ properties: {
458
+ source: {
459
+ type: string;
460
+ collection: boolean;
461
+ writable: boolean;
462
+ };
463
+ };
464
+ };
465
+ priority: number;
466
+ properties: {};
467
+ service: {
468
+ endpoints: {
469
+ family: string;
470
+ port: number;
471
+ protocol: string;
472
+ tls: boolean;
473
+ }[];
474
+ };
475
+ };
476
+ }
477
+ import { ExtraSourceService } from "../extra-source-service.mjs";