@kronos-integration/service-systemd 2.7.1 → 2.7.3

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/README.md CHANGED
@@ -32,6 +32,8 @@ kronos systemd integration
32
32
  * [listeningFileDescriptors](#listeningfiledescriptors)
33
33
  * [loadConfig](#loadconfig)
34
34
  * [ServiceSystemd](#servicesystemd)
35
+ * [getCredential](#getcredential)
36
+ * [Parameters](#parameters)
35
37
  * [endpoints](#endpoints)
36
38
 
37
39
  ## JournalLogger
@@ -83,6 +85,17 @@ Kronos bridge to systemd:
83
85
  * start / stop / restart / reload initiated from systemd
84
86
  * log into journal
85
87
 
88
+ ### getCredential
89
+
90
+ Deliver credentials as provided by systemd.
91
+
92
+ #### Parameters
93
+
94
+ * `key` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
95
+ * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
96
+
97
+ Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<([UInt8Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))>**&#x20;
98
+
86
99
  ### endpoints
87
100
 
88
101
  Definition of the predefined endpoints.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-systemd",
3
- "version": "2.7.1",
3
+ "version": "2.7.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": false
package/src/service.mjs CHANGED
@@ -164,7 +164,7 @@ export class ServiceSystemd extends ServiceProviderMixin(
164
164
  * @return {Promise<UInt8Array|string>}
165
165
  */
166
166
  async getCredential(key, options) {
167
- return readFile(join(credentialsDirectory, key, options));
167
+ return readFile(join(credentialsDirectory, key), options);
168
168
  }
169
169
 
170
170
  /**
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file