pmcf 4.28.6 → 4.28.8

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": "4.28.6",
3
+ "version": "4.28.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -3,7 +3,7 @@ import { join } from "node:path";
3
3
  import { toInternal, attributeIterator, types, resolveTypeLinks } from "pacc";
4
4
  import { asArray } from "./utils.mjs";
5
5
  import { Base } from "./base.mjs";
6
- import { Root } from "./root.mjs";
6
+ import { root } from "./root.mjs";
7
7
 
8
8
  /**
9
9
  * Keeps track of all in flight object creations and loose ends during config initialization.
@@ -14,7 +14,7 @@ export class InitializationContext {
14
14
  constructor(directory = "/") {
15
15
  resolveTypeLinks();
16
16
  this.directory = directory;
17
- this.root = new Root(directory);
17
+ this.root = new root(directory);
18
18
  }
19
19
 
20
20
  resolveOutstanding() {
@@ -1,14 +1,14 @@
1
1
  import { default_attribute_writable, addType } from "pacc";
2
2
  import { NetworkInterface } from "./network-interface.mjs";
3
3
 
4
- export class EthernetNetworkInterface extends NetworkInterface {
5
- static name = "ethernet";
4
+ export class ethernet extends NetworkInterface {
6
5
  static specializationOf = NetworkInterface;
7
6
  static attributes = {
8
7
  arpbridge: {
9
8
  ...default_attribute_writable,
10
9
  type: "network_interface",
11
- collection: true
10
+ collection: true,
11
+ owner: false
12
12
  }
13
13
  };
14
14
 
@@ -10,8 +10,7 @@ const _localAddresses = new Map([
10
10
 
11
11
  const _localDomains = new Set(["localhost"]);
12
12
 
13
- export class LoopbackNetworkInterface extends SkeletonNetworkInterface {
14
- static name = "loopback";
13
+ export class loopback extends SkeletonNetworkInterface {
15
14
  static specializationOf = NetworkInterface;
16
15
 
17
16
  static {
@@ -1,8 +1,7 @@
1
1
  import { addType } from "pacc";
2
2
  import { NetworkInterface } from "./network-interface.mjs";
3
3
 
4
- export class TUNNetworkInterface extends NetworkInterface {
5
- static name = "tun";
4
+ export class tun extends NetworkInterface {
6
5
  static specializationOf = NetworkInterface;
7
6
 
8
7
  static {
@@ -2,8 +2,7 @@ import { addType } from "pacc";
2
2
  import { SkeletonNetworkInterface } from "./skeleton.mjs";
3
3
  import { NetworkInterface } from "./network-interface.mjs";
4
4
 
5
- export class WireguardNetworkInterface extends SkeletonNetworkInterface {
6
- static name = "wireguard";
5
+ export class wireguard extends SkeletonNetworkInterface {
7
6
  static specializationOf = NetworkInterface;
8
7
 
9
8
  static {
@@ -7,10 +7,9 @@ import {
7
7
  } from "pacc";
8
8
  import { writeLines, sectionLines } from "../utils.mjs";
9
9
  import { NetworkInterface } from "./network-interface.mjs";
10
- import { EthernetNetworkInterface } from "./ethernet.mjs";
10
+ import { ethernet } from "./ethernet.mjs";
11
11
 
12
- export class WLANNetworkInterface extends EthernetNetworkInterface {
13
- static name = "wlan";
12
+ export class wlan extends ethernet {
14
13
  static specializationOf = NetworkInterface;
15
14
  static attributes = {
16
15
  ssid: string_attribute_writable,
package/src/root.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  import { addType } from "pacc";
2
2
  import { Location } from "./location.mjs";
3
3
 
4
- export class Root extends Location {
5
- static name = "root";
4
+ export class root extends Location {
6
5
  static priority = 3;
7
6
 
8
7
  static {
@@ -20,8 +20,7 @@ class alpm_repository extends Base {
20
20
  }
21
21
  }
22
22
 
23
- export class ALPMService extends Service {
24
- static name = "alpm";
23
+ export class alpm extends Service {
25
24
  static specializationOf = Service;
26
25
  static attributes = {
27
26
  repositories: {
@@ -43,7 +42,7 @@ export class ALPMService extends Service {
43
42
  repositories = new Map();
44
43
 
45
44
  typeNamed(type, name) {
46
- if (type === ALPMService.name) {
45
+ if (type === alpm.name) {
47
46
  return this.repositories.get(name);
48
47
  }
49
48
 
@@ -395,8 +395,7 @@ function addressesStatement(prefix, objects, generateEmpty = false) {
395
395
  return [];
396
396
  }
397
397
 
398
- export class BindService extends ExtraSourceService {
399
- static name = "bind";
398
+ export class bind extends ExtraSourceService {
400
399
  static specializationOf = Service;
401
400
  static attributes = {
402
401
  groups: {
@@ -6,8 +6,7 @@ import { addServiceType, ExtraSourceService } from "pmcf";
6
6
  import { Service, serviceEndpoints } from "../service.mjs";
7
7
  import { writeLines } from "../utils.mjs";
8
8
 
9
- export class ChronyService extends ExtraSourceService {
10
- static name = "chrony";
9
+ export class chrony extends ExtraSourceService {
11
10
  static specializationOf = Service;
12
11
  static service = {
13
12
  systemdService: "chronyd.service",
@@ -2,8 +2,7 @@ import { addType } from "pacc";
2
2
  import { addServiceType } from "pmcf";
3
3
  import { Service } from "../service.mjs";
4
4
 
5
- export class HeadscaleService extends Service {
6
- static name = "headscale";
5
+ export class headscale extends Service {
7
6
  static specializationOf = Service;
8
7
  static service = {
9
8
  endpoints: [
@@ -9,8 +9,7 @@ import {
9
9
  } from "../utils.mjs";
10
10
  import { Service } from "../service.mjs";
11
11
 
12
- export class InfluxdbService extends Service {
13
- static name = "influxdb";
12
+ export class influxdb extends Service {
14
13
  static specializationOf = Service;
15
14
  static attributes = {
16
15
  metricsDisabled: {
@@ -19,8 +19,7 @@ import { writeLines } from "../utils.mjs";
19
19
 
20
20
  const keaVersion = "3.0.1";
21
21
 
22
- export class KeaService extends Service {
23
- static name = "kea";
22
+ export class kea extends Service {
24
23
  static specializationOf = Service;
25
24
  static attributes = {
26
25
  "ddns-send-updates": {
@@ -2,8 +2,7 @@ import { port_attribute, string_attribute_writable, addType } from "pacc";
2
2
  import { addServiceType } from "pmcf";
3
3
  import { Service } from "../service.mjs";
4
4
 
5
- export class MosquittoService extends Service {
6
- static name = "mosquitto";
5
+ export class mosquitto extends Service {
7
6
  static specializationOf = Service;
8
7
  static attributes = {
9
8
  listener: {
@@ -2,8 +2,7 @@ import { string_attribute_writable, addType } from "pacc";
2
2
  import { addServiceType } from "pmcf";
3
3
  import { Service } from "../service.mjs";
4
4
 
5
- export class OpenLDAPService extends Service {
6
- static name = "openldap";
5
+ export class openldap extends Service {
7
6
  static specializationOf = Service;
8
7
  static attributes = {
9
8
  base: string_attribute_writable,
@@ -2,8 +2,7 @@ import { addType } from "pacc";
2
2
  import { addServiceType } from "pmcf";
3
3
  import { Service } from "../service.mjs";
4
4
 
5
- export class PostfixService extends Service {
6
- static name = "postfix";
5
+ export class postfix extends Service {
7
6
  static specializationOf = Service;
8
7
  static attributes = {};
9
8
  static service = {
@@ -1,8 +1,7 @@
1
1
  import { addType } from "pacc";
2
2
  import { Service } from "../service.mjs";
3
3
 
4
- export class TailscaleService extends Service {
5
- static name = "tailscale";
4
+ export class tailscale extends Service {
6
5
  static specializationOf = Service;
7
6
  static service = {
8
7
  endpoints: [