pmcf 6.46.7 → 6.46.9

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": "6.46.7",
3
+ "version": "6.46.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cluster.mjs CHANGED
@@ -2,7 +2,7 @@ import { join } from "node:path";
2
2
  import { FileContentProvider } from "npm-pkgbuild";
3
3
  import { FAMILY_IPV4 } from "ip-utilties";
4
4
  import { duration_attribute_writable } from "pacc";
5
- import { Host } from "./host.mjs";
5
+ import { host } from "./host.mjs";
6
6
  import { addType, serviceEndpoints } from "pmcf";
7
7
  import {
8
8
  networkInterfaces_attribute,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./common-attributes.mjs";
11
11
  import { writeLines } from "./utils.mjs";
12
12
 
13
- export class cluster extends Host {
13
+ export class cluster extends host {
14
14
  static priority = 1.5;
15
15
  static attributes = {
16
16
  masters: {
@@ -14,7 +14,7 @@ import {
14
14
  } from "pacc";
15
15
  import {
16
16
  base,
17
- Host,
17
+ host,
18
18
  Endpoint,
19
19
  DomainNameEndpoint,
20
20
  HTTPEndpoint,
@@ -50,7 +50,7 @@ export class credential extends base {
50
50
  export class CoreService extends base {
51
51
  static name = "core-service";
52
52
  static priority = 1.1;
53
- static owners = [Host, "cluster", "network_interface"];
53
+ static owners = [host, "cluster", "network_interface"];
54
54
  static specializationOf = CoreService;
55
55
  static specializations = {};
56
56
  static factoryFor(owner, value) {
package/src/host.mjs CHANGED
@@ -21,8 +21,7 @@ import { addHook } from "./hooks.mjs";
21
21
  import { domainFromDominName, domainName, writeLines } from "./utils.mjs";
22
22
  import { generateKnownHosts } from "./host-utils.mjs";
23
23
 
24
- export class Host extends ServiceOwner {
25
- static name = "host";
24
+ export class host extends ServiceOwner {
26
25
  static priority = 1.9;
27
26
  static attributes = {
28
27
  ...networkAddressAttributes,
@@ -70,7 +69,7 @@ export class Host extends ServiceOwner {
70
69
  },
71
70
  extends: {
72
71
  ...extends_attribute,
73
- type: Host
72
+ type: host
74
73
  },
75
74
  model: { ...string_attribute, name: "model" }
76
75
  };
@@ -4,7 +4,7 @@ import {
4
4
  default_collection_attribute_writable
5
5
  } from "pacc";
6
6
  import { network_attribute } from "../common-attributes.mjs";
7
- import { Host, cidrAddresses, addType } from "pmcf";
7
+ import { host, cidrAddresses, addType } from "pmcf";
8
8
  import {
9
9
  networkAttributes,
10
10
  networkAddressAttributes,
@@ -17,7 +17,7 @@ import { yesno } from "../utils.mjs";
17
17
 
18
18
  export class NetworkInterface extends SkeletonNetworkInterface {
19
19
  static name = "network_interface";
20
- static owners = [Host];
20
+ static owners = [host];
21
21
  static specializationOf = NetworkInterface;
22
22
  static specializations = {};
23
23
  static factoryFor(owner, value) {
@@ -2,7 +2,7 @@ import { join } from "node:path";
2
2
  import { AggregatedMap } from "aggregated-map";
3
3
  import { addType, asArray } from "pacc";
4
4
  import { writeLines, sectionLines } from "../utils.mjs";
5
- import { NetworkAddress, Host, cidrAddresses } from "pmcf";
5
+ import { NetworkAddress, host, cidrAddresses } from "pmcf";
6
6
  import { ServiceOwner } from "../service-owner.mjs";
7
7
 
8
8
  /**
@@ -35,7 +35,7 @@ export class SkeletonNetworkInterface extends ServiceOwner {
35
35
  }
36
36
 
37
37
  get host() {
38
- if (this.owner instanceof Host) {
38
+ if (this.owner instanceof host) {
39
39
  return this.owner;
40
40
  }
41
41
  }
package/src/network.mjs CHANGED
@@ -4,8 +4,7 @@ import { Owner } from "./owner.mjs";
4
4
  import { networkAttributes, bridges_attribute } from "./common-attributes.mjs";
5
5
  import { Subnet } from "./subnet.mjs";
6
6
 
7
- export class Network extends Owner {
8
- static name = "network";
7
+ export class network extends Owner {
9
8
  static owners = [Owner, "root"];
10
9
  static attributes = {
11
10
  ...networkAttributes,
package/src/subnet.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  } from "ip-utilties";
7
7
  import { string_attribute, name_attribute, integer_attribute } from "pacc";
8
8
  import { networks_attribute } from "./common-attributes.mjs";
9
- import { addType, Network, core } from "pmcf";
9
+ import { addType, network, core } from "pmcf";
10
10
 
11
11
  export class Subnet extends core {
12
12
  static name = "subnet";
@@ -47,7 +47,7 @@ export class Subnet extends core {
47
47
 
48
48
  set owner(value) {
49
49
  super.owner = value;
50
- if (value instanceof Network) {
50
+ if (value instanceof network) {
51
51
  this.networks.add(value);
52
52
  }
53
53
  }