pmcf 1.84.0 → 1.86.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": "1.84.0",
3
+ "version": "1.86.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -23,7 +23,8 @@ const BaseTypeDefinition = {
23
23
  },*/
24
24
  description: { type: "string", collection: false, writeable: true },
25
25
  directory: { type: "string", collection: false, writeable: false },
26
- packaging: { type: "string", collection: false, writeable: true }
26
+ packaging: { type: "string", collection: false, writeable: true },
27
+ tags: { type: "string", collection: true, writeable: true }
27
28
  }
28
29
  };
29
30
 
@@ -31,6 +32,7 @@ export class Base {
31
32
  owner;
32
33
  description;
33
34
  name;
35
+ #tags = new Set();
34
36
 
35
37
  static {
36
38
  addType(this);
@@ -368,6 +370,20 @@ export class Base {
368
370
  };
369
371
  }
370
372
 
373
+ get tags()
374
+ {
375
+ return this.#tags;
376
+ }
377
+
378
+ set tags(value)
379
+ {
380
+ if (value instanceof Set) {
381
+ this.#tags = this.#tags.union(value);
382
+ } else {
383
+ this.#tags.add(value);
384
+ }
385
+ }
386
+
371
387
  expand(object) {
372
388
  switch (typeof object) {
373
389
  case "string":
package/src/dns.mjs CHANGED
@@ -141,7 +141,7 @@ export class DNSService extends Base {
141
141
  ...serviceAddresses(this.source, DNS_SERVICE_FILTER).map(a => ` ${a};`),
142
142
  "};"
143
143
  ];
144
- await writeLines(join(p1, "etc/named.d/options"), `${name}.conf`, options);
144
+ await writeLines(join(p1, "etc/named/options"), `${name}.conf`, options);
145
145
 
146
146
  const category = [
147
147
  "acl trusted {",
@@ -150,7 +150,7 @@ export class DNSService extends Base {
150
150
  ];
151
151
 
152
152
  await writeLines(
153
- join(p1, "etc/named.d/categories"),
153
+ join(p1, "etc/named"),
154
154
  `${name}.conf`,
155
155
  category
156
156
  );
@@ -386,7 +386,7 @@ async function generateZoneDefs(dns, packageData) {
386
386
  }
387
387
 
388
388
  await writeLines(
389
- join(packageData.dir, "etc/named.d/zones"),
389
+ join(packageData.dir, "etc/named/zones"),
390
390
  config.name,
391
391
  content
392
392
  );
package/types/base.d.mts CHANGED
@@ -36,6 +36,11 @@ export class Base {
36
36
  collection: boolean;
37
37
  writeable: boolean;
38
38
  };
39
+ tags: {
40
+ type: string;
41
+ collection: boolean;
42
+ writeable: boolean;
43
+ };
39
44
  };
40
45
  };
41
46
  static get typeFileName(): string;
@@ -82,6 +87,8 @@ export class Base {
82
87
  access: string;
83
88
  };
84
89
  }, void, unknown>;
90
+ set tags(value: Set<any>);
91
+ get tags(): Set<any>;
85
92
  expand(object: any): any;
86
93
  finalize(action: any): void;
87
94
  execFinalize(): void;
@@ -40,6 +40,11 @@ export class Cluster extends Host {
40
40
  collection: boolean;
41
41
  writeable: boolean;
42
42
  };
43
+ tags: {
44
+ type: string;
45
+ collection: boolean;
46
+ writeable: boolean;
47
+ };
43
48
  };
44
49
  };
45
50
  properties: {
@@ -255,6 +260,11 @@ export class Cluster extends Host {
255
260
  collection: boolean;
256
261
  writeable: boolean;
257
262
  };
263
+ tags: {
264
+ type: string;
265
+ collection: boolean;
266
+ writeable: boolean;
267
+ };
258
268
  };
259
269
  };
260
270
  properties: {
package/types/host.d.mts CHANGED
@@ -38,6 +38,11 @@ export class Host extends Base {
38
38
  collection: boolean;
39
39
  writeable: boolean;
40
40
  };
41
+ tags: {
42
+ type: string;
43
+ collection: boolean;
44
+ writeable: boolean;
45
+ };
41
46
  };
42
47
  };
43
48
  properties: {
@@ -269,6 +274,11 @@ export class NetworkInterface extends Base {
269
274
  collection: boolean;
270
275
  writeable: boolean;
271
276
  };
277
+ tags: {
278
+ type: string;
279
+ collection: boolean;
280
+ writeable: boolean;
281
+ };
272
282
  };
273
283
  };
274
284
  properties: {
@@ -40,6 +40,11 @@ export class Location extends Owner {
40
40
  collection: boolean;
41
41
  writeable: boolean;
42
42
  };
43
+ tags: {
44
+ type: string;
45
+ collection: boolean;
46
+ writeable: boolean;
47
+ };
43
48
  };
44
49
  };
45
50
  properties: {
@@ -255,6 +260,11 @@ export class Location extends Owner {
255
260
  collection: boolean;
256
261
  writeable: boolean;
257
262
  };
263
+ tags: {
264
+ type: string;
265
+ collection: boolean;
266
+ writeable: boolean;
267
+ };
258
268
  };
259
269
  };
260
270
  properties: {
@@ -42,6 +42,11 @@ export class Network extends Owner {
42
42
  collection: boolean;
43
43
  writeable: boolean;
44
44
  };
45
+ tags: {
46
+ type: string;
47
+ collection: boolean;
48
+ writeable: boolean;
49
+ };
45
50
  };
46
51
  };
47
52
  properties: {
package/types/owner.d.mts CHANGED
@@ -38,6 +38,11 @@ export class Owner extends Base {
38
38
  collection: boolean;
39
39
  writeable: boolean;
40
40
  };
41
+ tags: {
42
+ type: string;
43
+ collection: boolean;
44
+ writeable: boolean;
45
+ };
41
46
  };
42
47
  };
43
48
  properties: {
package/types/root.d.mts CHANGED
@@ -44,6 +44,11 @@ export class Root extends Location {
44
44
  collection: boolean;
45
45
  writeable: boolean;
46
46
  };
47
+ tags: {
48
+ type: string;
49
+ collection: boolean;
50
+ writeable: boolean;
51
+ };
47
52
  };
48
53
  };
49
54
  properties: {
@@ -259,6 +264,11 @@ export class Root extends Location {
259
264
  collection: boolean;
260
265
  writeable: boolean;
261
266
  };
267
+ tags: {
268
+ type: string;
269
+ collection: boolean;
270
+ writeable: boolean;
271
+ };
262
272
  };
263
273
  };
264
274
  properties: {
@@ -39,6 +39,11 @@ export class Service extends Base {
39
39
  collection: boolean;
40
40
  writeable: boolean;
41
41
  };
42
+ tags: {
43
+ type: string;
44
+ collection: boolean;
45
+ writeable: boolean;
46
+ };
42
47
  };
43
48
  };
44
49
  properties: {