Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ft: helper function for accessing credentials directory #42

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

hauleth
Copy link
Owner

@hauleth hauleth commented May 4, 2024

This adds new function systemd:credentials/1 which returns path for
credentials' files. This function checks if the $CREDENTIALS_DIRECTORY
variable was set and if it was set, then the path is always returned. It
is left up to the user to check if the file is existing and/or correct
one.

Close #41

@hauleth hauleth force-pushed the ft/credentials-helper branch from cc066c8 to f233d50 Compare May 4, 2024 00:52
This adds new function `systemd:credentials/1` which returns path for
credentials' files. This function checks if the `$CREDENTIALS_DIRECTORY`
variable was set and if it was set, then the path is always returned. It
is left up to the user to check if the file is existing and/or correct
one.

Close #41
@hauleth hauleth force-pushed the ft/credentials-helper branch from f233d50 to 9c48aaf Compare May 4, 2024 01:21
Copy link

codecov bot commented May 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 88.59%. Comparing base (aaf56f1) to head (9c48aaf).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/systemd.erl 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #42      +/-   ##
==========================================
- Coverage   89.30%   88.59%   -0.72%     
==========================================
  Files           8        8              
  Lines         374      377       +3     
==========================================
  Hits          334      334              
- Misses         40       43       +3     
Flag Coverage Δ
otp-24 88.59% <0.00%> (-0.72%) ⬇️
otp-25 88.59% <0.00%> (-0.72%) ⬇️
otp-26 88.59% <0.00%> (-0.72%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hauleth hauleth self-assigned this May 6, 2024
@hauleth hauleth merged commit 9c48aaf into master Sep 26, 2024
10 of 12 checks passed
@hauleth hauleth deleted the ft/credentials-helper branch September 26, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for loading credentials from $CREDENTIALS_DIRECTORY
1 participant