pmcf 3.18.7 → 3.18.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,4 +1,4 @@
|
|
|
1
|
-
import { addType } from "pacc";
|
|
1
|
+
import { addType, string_attribute_writable } from "pacc";
|
|
2
2
|
import { Service, ServiceTypeDefinition, addServiceType } from "pmcf";
|
|
3
3
|
|
|
4
4
|
const SystemdJournalRemoteServiceTypeDefinition = {
|
|
@@ -7,6 +7,11 @@ const SystemdJournalRemoteServiceTypeDefinition = {
|
|
|
7
7
|
specializationOf: ServiceTypeDefinition,
|
|
8
8
|
owners: ServiceTypeDefinition.owners,
|
|
9
9
|
key: "name",
|
|
10
|
+
attributes: {
|
|
11
|
+
ServerCertificateFile: string_attribute_writable,
|
|
12
|
+
ServerKeyFile: string_attribute_writable
|
|
13
|
+
},
|
|
14
|
+
|
|
10
15
|
service: {
|
|
11
16
|
services: {
|
|
12
17
|
endpoints: [
|
|
@@ -27,6 +32,10 @@ const SystemdJournalRemoteServiceTypeDefinition = {
|
|
|
27
32
|
}
|
|
28
33
|
};
|
|
29
34
|
|
|
35
|
+
/**
|
|
36
|
+
* @property {string} ServerCertificateFile
|
|
37
|
+
* @property {string} ServerKeyFile
|
|
38
|
+
*/
|
|
30
39
|
export class SystemdJournalRemoteService extends Service {
|
|
31
40
|
static {
|
|
32
41
|
addType(this);
|
|
@@ -45,12 +54,23 @@ export class SystemdJournalRemoteService extends Service {
|
|
|
45
54
|
return this.type;
|
|
46
55
|
}
|
|
47
56
|
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @param {string} name
|
|
60
|
+
* @returns {Object}
|
|
61
|
+
*/
|
|
48
62
|
systemdConfigs(name) {
|
|
49
63
|
return [
|
|
50
64
|
{
|
|
51
65
|
serviceName: "systemd-journal-remote.service",
|
|
52
66
|
configFileName: `etc/systemd/journal-remote.conf.d/${name}.conf`,
|
|
53
|
-
content: [
|
|
67
|
+
content: [
|
|
68
|
+
"Remote",
|
|
69
|
+
{
|
|
70
|
+
ServerCertificateFile: this.ServerCertificateFile,
|
|
71
|
+
ServerKeyFile: this.ServerKeyFile
|
|
72
|
+
}
|
|
73
|
+
]
|
|
54
74
|
} /*,
|
|
55
75
|
{
|
|
56
76
|
serviceName: "systemd-journal-remote.socket"
|
|
@@ -8,10 +8,17 @@ const SystemdJournalUploadServiceTypeDefinition = {
|
|
|
8
8
|
owners: ServiceTypeDefinition.owners,
|
|
9
9
|
key: "name",
|
|
10
10
|
attributes: {
|
|
11
|
-
|
|
11
|
+
URL: string_attribute_writable,
|
|
12
|
+
ServerCertificateFile: string_attribute_writable,
|
|
13
|
+
ServerKeyFile: string_attribute_writable
|
|
12
14
|
}
|
|
13
15
|
};
|
|
14
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @property {string} URL
|
|
19
|
+
* @property {string} ServerCertificateFile
|
|
20
|
+
* @property {string} ServerKeyFile
|
|
21
|
+
*/
|
|
15
22
|
export class SystemdJournalUploadService extends Service {
|
|
16
23
|
static {
|
|
17
24
|
addType(this);
|
|
@@ -30,13 +37,23 @@ export class SystemdJournalUploadService extends Service {
|
|
|
30
37
|
return this.type;
|
|
31
38
|
}
|
|
32
39
|
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @param {string} name
|
|
43
|
+
* @returns {Object}
|
|
44
|
+
*/
|
|
33
45
|
systemdConfigs(name) {
|
|
34
46
|
return {
|
|
35
47
|
serviceName: "systemd-journal-upload.service",
|
|
36
48
|
configFileName: `etc/systemd/journal-upload.conf.d/${name}.conf`,
|
|
37
|
-
content: [
|
|
38
|
-
|
|
39
|
-
|
|
49
|
+
content: [
|
|
50
|
+
"Upload",
|
|
51
|
+
{
|
|
52
|
+
URL: this.URL,
|
|
53
|
+
ServerCertificateFile: this.ServerCertificateFile,
|
|
54
|
+
ServerKeyFile: this.ServerKeyFile
|
|
55
|
+
}
|
|
56
|
+
]
|
|
40
57
|
};
|
|
41
58
|
}
|
|
42
59
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @property {string} ServerCertificateFile
|
|
3
|
+
* @property {string} ServerKeyFile
|
|
4
|
+
*/
|
|
1
5
|
export class SystemdJournalRemoteService extends Service {
|
|
2
6
|
static get typeDefinition(): {
|
|
3
7
|
name: string;
|
|
@@ -712,6 +716,10 @@ export class SystemdJournalRemoteService extends Service {
|
|
|
712
716
|
};
|
|
713
717
|
})[];
|
|
714
718
|
key: string;
|
|
719
|
+
attributes: {
|
|
720
|
+
ServerCertificateFile: import("pacc").AttributeDefinition;
|
|
721
|
+
ServerKeyFile: import("pacc").AttributeDefinition;
|
|
722
|
+
};
|
|
715
723
|
service: {
|
|
716
724
|
services: {
|
|
717
725
|
endpoints: {
|
|
@@ -725,10 +733,11 @@ export class SystemdJournalRemoteService extends Service {
|
|
|
725
733
|
};
|
|
726
734
|
get type(): string;
|
|
727
735
|
get systemdServices(): string;
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @param {string} name
|
|
739
|
+
* @returns {Object}
|
|
740
|
+
*/
|
|
741
|
+
systemdConfigs(name: string): any;
|
|
733
742
|
}
|
|
734
743
|
import { Service } from "pmcf";
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @property {string} URL
|
|
3
|
+
* @property {string} ServerCertificateFile
|
|
4
|
+
* @property {string} ServerKeyFile
|
|
5
|
+
*/
|
|
1
6
|
export class SystemdJournalUploadService extends Service {
|
|
2
7
|
static get typeDefinition(): {
|
|
3
8
|
name: string;
|
|
@@ -713,17 +718,18 @@ export class SystemdJournalUploadService extends Service {
|
|
|
713
718
|
})[];
|
|
714
719
|
key: string;
|
|
715
720
|
attributes: {
|
|
716
|
-
|
|
721
|
+
URL: import("pacc").AttributeDefinition;
|
|
722
|
+
ServerCertificateFile: import("pacc").AttributeDefinition;
|
|
723
|
+
ServerKeyFile: import("pacc").AttributeDefinition;
|
|
717
724
|
};
|
|
718
725
|
};
|
|
719
726
|
get type(): string;
|
|
720
727
|
get systemdServices(): string;
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
};
|
|
728
|
+
/**
|
|
729
|
+
*
|
|
730
|
+
* @param {string} name
|
|
731
|
+
* @returns {Object}
|
|
732
|
+
*/
|
|
733
|
+
systemdConfigs(name: string): any;
|
|
728
734
|
}
|
|
729
735
|
import { Service } from "pmcf";
|