@kronos-integration/service-systemd 2.7.0 → 2.7.1
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 +1 -1
- package/src/service.mjs +8 -2
- package/systemd-linux-arm64.node.006 +0 -0
package/package.json
CHANGED
package/src/service.mjs
CHANGED
|
@@ -157,8 +157,14 @@ export class ServiceSystemd extends ServiceProviderMixin(
|
|
|
157
157
|
return true;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
/**
|
|
161
|
+
* Deliver credentials as provided by systemd.
|
|
162
|
+
* @param {string} key
|
|
163
|
+
* @param {Object} options
|
|
164
|
+
* @return {Promise<UInt8Array|string>}
|
|
165
|
+
*/
|
|
166
|
+
async getCredential(key, options) {
|
|
167
|
+
return readFile(join(credentialsDirectory, key, options));
|
|
162
168
|
}
|
|
163
169
|
|
|
164
170
|
/**
|
|
Binary file
|