pmcf 3.18.9 → 3.18.11

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.18.9",
3
+ "version": "3.18.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,4 +1,9 @@
1
- import { addType, string_attribute_writable } from "pacc";
1
+ import {
2
+ getAttributesJSON,
3
+ addType,
4
+ string_attribute_writable,
5
+ boolean_attribute_writable
6
+ } from "pacc";
2
7
  import { Service, ServiceTypeDefinition, addServiceType } from "pmcf";
3
8
 
4
9
  const SystemdJournalRemoteServiceTypeDefinition = {
@@ -8,8 +13,40 @@ const SystemdJournalRemoteServiceTypeDefinition = {
8
13
  owners: ServiceTypeDefinition.owners,
9
14
  key: "name",
10
15
  attributes: {
11
- ServerCertificateFile: string_attribute_writable,
12
- ServerKeyFile: string_attribute_writable
16
+ Seal: {
17
+ ...boolean_attribute_writable
18
+ },
19
+ SplitMode: {
20
+ ...string_attribute_writable
21
+ },
22
+ ServerKeyFile: {
23
+ ...string_attribute_writable
24
+ // default: "/etc/ssl/private/journal-upload.pem"
25
+ },
26
+ ServerCertificateFile: {
27
+ ...string_attribute_writable
28
+ // default: "/etc/ssl/certs/journal-upload.pem"
29
+ },
30
+ TrustedCertificateFile: {
31
+ ...string_attribute_writable
32
+ // default: "/etc/ssl/ca/trusted.pem"
33
+ },
34
+ MaxUse: {
35
+ ...string_attribute_writable
36
+ },
37
+ KeepFree: {
38
+ ...string_attribute_writable
39
+ },
40
+ MaxFileSize: {
41
+ ...string_attribute_writable
42
+ },
43
+ MaxFiles: {
44
+ ...string_attribute_writable
45
+ },
46
+ Compression: {
47
+ ...string_attribute_writable
48
+ // default: "zstd lz4 xz"
49
+ }
13
50
  },
14
51
 
15
52
  service: {
@@ -66,10 +103,10 @@ export class SystemdJournalRemoteService extends Service {
66
103
  configFileName: `etc/systemd/journal-remote.conf.d/${name}.conf`,
67
104
  content: [
68
105
  "Remote",
69
- {
70
- ServerCertificateFile: this.ServerCertificateFile,
71
- ServerKeyFile: this.ServerKeyFile
72
- }
106
+ getAttributesJSON(
107
+ this,
108
+ SystemdJournalRemoteServiceTypeDefinition.attributes
109
+ )
73
110
  ]
74
111
  } /*,
75
112
  {
@@ -1,4 +1,9 @@
1
- import { string_attribute_writable, addType } from "pacc";
1
+ import {
2
+ string_attribute_writable,
3
+ boolean_attribute_writable,
4
+ addType,
5
+ getAttributesJSON
6
+ } from "pacc";
2
7
  import { Service, ServiceTypeDefinition, addServiceType } from "pmcf";
3
8
 
4
9
  const SystemdJournalUploadServiceTypeDefinition = {
@@ -9,8 +14,26 @@ const SystemdJournalUploadServiceTypeDefinition = {
9
14
  key: "name",
10
15
  attributes: {
11
16
  URL: string_attribute_writable,
12
- ServerCertificateFile: string_attribute_writable,
13
- ServerKeyFile: string_attribute_writable
17
+ ServerKeyFile: {
18
+ ...string_attribute_writable
19
+ // default: "/etc/ssl/private/journal-upload.pem"
20
+ },
21
+ ServerCertificateFile: {
22
+ ...string_attribute_writable
23
+ // default: "/etc/ssl/certs/journal-upload.pem"
24
+ },
25
+ TrustedCertificateFile: {
26
+ ...string_attribute_writable
27
+ // default: "/etc/ssl/ca/trusted.pem"
28
+ },
29
+ Compression: {
30
+ ...string_attribute_writable
31
+ // default: "zstd lz4 xz"
32
+ },
33
+ ForceCompression: {
34
+ ...boolean_attribute_writable
35
+ // default: false
36
+ }
14
37
  }
15
38
  };
16
39
 
@@ -38,8 +61,8 @@ export class SystemdJournalUploadService extends Service {
38
61
  }
39
62
 
40
63
  /**
41
- *
42
- * @param {string} name
64
+ *
65
+ * @param {string} name
43
66
  * @returns {Object}
44
67
  */
45
68
  systemdConfigs(name) {
@@ -48,11 +71,10 @@ export class SystemdJournalUploadService extends Service {
48
71
  configFileName: `etc/systemd/journal-upload.conf.d/${name}.conf`,
49
72
  content: [
50
73
  "Upload",
51
- {
52
- URL: this.URL,
53
- ServerCertificateFile: this.ServerCertificateFile,
54
- ServerKeyFile: this.ServerKeyFile
55
- }
74
+ getAttributesJSON(
75
+ this,
76
+ SystemdJournalUploadServiceTypeDefinition.attributes
77
+ )
56
78
  ]
57
79
  };
58
80
  }
@@ -717,8 +717,206 @@ export class SystemdJournalRemoteService extends Service {
717
717
  })[];
718
718
  key: string;
719
719
  attributes: {
720
- ServerCertificateFile: import("pacc").AttributeDefinition;
721
- ServerKeyFile: import("pacc").AttributeDefinition;
720
+ Seal: {
721
+ type: object;
722
+ isKey: boolean;
723
+ writable: boolean;
724
+ mandatory: boolean;
725
+ collection: boolean;
726
+ private?: boolean;
727
+ credential?: boolean;
728
+ persistent?: boolean;
729
+ depends?: string;
730
+ description?: string;
731
+ default?: any;
732
+ set?: Function;
733
+ get?: Function;
734
+ prepareValue?: Function;
735
+ values?: Set<any>;
736
+ externalName?: string;
737
+ env?: string[] | string;
738
+ additionalValues?: object;
739
+ };
740
+ SplitMode: {
741
+ type: object;
742
+ isKey: boolean;
743
+ writable: boolean;
744
+ mandatory: boolean;
745
+ collection: boolean;
746
+ private?: boolean;
747
+ credential?: boolean;
748
+ persistent?: boolean;
749
+ depends?: string;
750
+ description?: string;
751
+ default?: any;
752
+ set?: Function;
753
+ get?: Function;
754
+ prepareValue?: Function;
755
+ values?: Set<any>;
756
+ externalName?: string;
757
+ env?: string[] | string;
758
+ additionalValues?: object;
759
+ };
760
+ ServerKeyFile: {
761
+ type: object;
762
+ isKey: boolean;
763
+ writable: boolean;
764
+ mandatory: boolean;
765
+ collection: boolean;
766
+ private?: boolean;
767
+ credential?: boolean;
768
+ persistent?: boolean;
769
+ depends?: string;
770
+ description?: string;
771
+ default?: any;
772
+ set?: Function;
773
+ get?: Function;
774
+ prepareValue?: Function;
775
+ values?: Set<any>;
776
+ externalName?: string;
777
+ env?: string[] | string;
778
+ additionalValues?: object;
779
+ };
780
+ ServerCertificateFile: {
781
+ type: object;
782
+ isKey: boolean;
783
+ writable: boolean;
784
+ mandatory: boolean;
785
+ collection: boolean;
786
+ private?: boolean;
787
+ credential?: boolean;
788
+ persistent?: boolean;
789
+ depends?: string;
790
+ description?: string;
791
+ default?: any;
792
+ set?: Function;
793
+ get?: Function;
794
+ prepareValue?: Function;
795
+ values?: Set<any>;
796
+ externalName?: string;
797
+ env?: string[] | string;
798
+ additionalValues?: object;
799
+ };
800
+ TrustedCertificateFile: {
801
+ type: object;
802
+ isKey: boolean;
803
+ writable: boolean;
804
+ mandatory: boolean;
805
+ collection: boolean;
806
+ private?: boolean;
807
+ credential?: boolean;
808
+ persistent?: boolean;
809
+ depends?: string;
810
+ description?: string;
811
+ default?: any;
812
+ set?: Function;
813
+ get?: Function;
814
+ prepareValue?: Function;
815
+ values?: Set<any>;
816
+ externalName?: string;
817
+ env?: string[] | string;
818
+ additionalValues?: object;
819
+ };
820
+ MaxUse: {
821
+ type: object;
822
+ isKey: boolean;
823
+ writable: boolean;
824
+ mandatory: boolean;
825
+ collection: boolean;
826
+ private?: boolean;
827
+ credential?: boolean;
828
+ persistent?: boolean;
829
+ depends?: string;
830
+ description?: string;
831
+ default?: any;
832
+ set?: Function;
833
+ get?: Function;
834
+ prepareValue?: Function;
835
+ values?: Set<any>;
836
+ externalName?: string;
837
+ env?: string[] | string;
838
+ additionalValues?: object;
839
+ };
840
+ KeepFree: {
841
+ type: object;
842
+ isKey: boolean;
843
+ writable: boolean;
844
+ mandatory: boolean;
845
+ collection: boolean;
846
+ private?: boolean;
847
+ credential?: boolean;
848
+ persistent?: boolean;
849
+ depends?: string;
850
+ description?: string;
851
+ default?: any;
852
+ set?: Function;
853
+ get?: Function;
854
+ prepareValue?: Function;
855
+ values?: Set<any>;
856
+ externalName?: string;
857
+ env?: string[] | string;
858
+ additionalValues?: object;
859
+ };
860
+ MaxFileSize: {
861
+ type: object;
862
+ isKey: boolean;
863
+ writable: boolean;
864
+ mandatory: boolean;
865
+ collection: boolean;
866
+ private?: boolean;
867
+ credential?: boolean;
868
+ persistent?: boolean;
869
+ depends?: string;
870
+ description?: string;
871
+ default?: any;
872
+ set?: Function;
873
+ get?: Function;
874
+ prepareValue?: Function;
875
+ values?: Set<any>;
876
+ externalName?: string;
877
+ env?: string[] | string;
878
+ additionalValues?: object;
879
+ };
880
+ MaxFiles: {
881
+ type: object;
882
+ isKey: boolean;
883
+ writable: boolean;
884
+ mandatory: boolean;
885
+ collection: boolean;
886
+ private?: boolean;
887
+ credential?: boolean;
888
+ persistent?: boolean;
889
+ depends?: string;
890
+ description?: string;
891
+ default?: any;
892
+ set?: Function;
893
+ get?: Function;
894
+ prepareValue?: Function;
895
+ values?: Set<any>;
896
+ externalName?: string;
897
+ env?: string[] | string;
898
+ additionalValues?: object;
899
+ };
900
+ Compression: {
901
+ type: object;
902
+ isKey: boolean;
903
+ writable: boolean;
904
+ mandatory: boolean;
905
+ collection: boolean;
906
+ private?: boolean;
907
+ credential?: boolean;
908
+ persistent?: boolean;
909
+ depends?: string;
910
+ description?: string;
911
+ default?: any;
912
+ set?: Function;
913
+ get?: Function;
914
+ prepareValue?: Function;
915
+ values?: Set<any>;
916
+ externalName?: string;
917
+ env?: string[] | string;
918
+ additionalValues?: object;
919
+ };
722
920
  };
723
921
  service: {
724
922
  services: {
@@ -719,8 +719,106 @@ export class SystemdJournalUploadService extends Service {
719
719
  key: string;
720
720
  attributes: {
721
721
  URL: import("pacc").AttributeDefinition;
722
- ServerCertificateFile: import("pacc").AttributeDefinition;
723
- ServerKeyFile: import("pacc").AttributeDefinition;
722
+ ServerKeyFile: {
723
+ type: object;
724
+ isKey: boolean;
725
+ writable: boolean;
726
+ mandatory: boolean;
727
+ collection: boolean;
728
+ private?: boolean;
729
+ credential?: boolean;
730
+ persistent?: boolean;
731
+ depends?: string;
732
+ description?: string;
733
+ default?: any;
734
+ set?: Function;
735
+ get?: Function;
736
+ prepareValue?: Function;
737
+ values?: Set<any>;
738
+ externalName?: string;
739
+ env?: string[] | string;
740
+ additionalValues?: object;
741
+ };
742
+ ServerCertificateFile: {
743
+ type: object;
744
+ isKey: boolean;
745
+ writable: boolean;
746
+ mandatory: boolean;
747
+ collection: boolean;
748
+ private?: boolean;
749
+ credential?: boolean;
750
+ persistent?: boolean;
751
+ depends?: string;
752
+ description?: string;
753
+ default?: any;
754
+ set?: Function;
755
+ get?: Function;
756
+ prepareValue?: Function;
757
+ values?: Set<any>;
758
+ externalName?: string;
759
+ env?: string[] | string;
760
+ additionalValues?: object;
761
+ };
762
+ TrustedCertificateFile: {
763
+ type: object;
764
+ isKey: boolean;
765
+ writable: boolean;
766
+ mandatory: boolean;
767
+ collection: boolean;
768
+ private?: boolean;
769
+ credential?: boolean;
770
+ persistent?: boolean;
771
+ depends?: string;
772
+ description?: string;
773
+ default?: any;
774
+ set?: Function;
775
+ get?: Function;
776
+ prepareValue?: Function;
777
+ values?: Set<any>;
778
+ externalName?: string;
779
+ env?: string[] | string;
780
+ additionalValues?: object;
781
+ };
782
+ Compression: {
783
+ type: object;
784
+ isKey: boolean;
785
+ writable: boolean;
786
+ mandatory: boolean;
787
+ collection: boolean;
788
+ private?: boolean;
789
+ credential?: boolean;
790
+ persistent?: boolean;
791
+ depends?: string;
792
+ description?: string;
793
+ default?: any;
794
+ set?: Function;
795
+ get?: Function;
796
+ prepareValue?: Function;
797
+ values?: Set<any>;
798
+ externalName?: string;
799
+ env?: string[] | string;
800
+ additionalValues?: object;
801
+ };
802
+ ForceCompression: {
803
+ type: object;
804
+ isKey: boolean;
805
+ writable: boolean;
806
+ mandatory: boolean;
807
+ collection: boolean;
808
+ private?: boolean;
809
+ credential?: boolean;
810
+ persistent?: boolean;
811
+ depends?: string;
812
+ description?: string;
813
+ default?: any;
814
+ set?: Function;
815
+ get?: Function;
816
+ prepareValue?: Function;
817
+ values?: Set<any>;
818
+ externalName?: string;
819
+ env?: string[] | string;
820
+ additionalValues?: object;
821
+ };
724
822
  };
725
823
  };
726
824
  get type(): string;