-
Notifications
You must be signed in to change notification settings - Fork 86
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
Adding IsAvailable to the interface #27
Comments
Hi, I completely lost track of this issue, sorry about that! There is already this special error: https://github.com/zalando/go-keyring/blob/master/keyring_darwin.go#L43 returned from |
Line 47 in 9725ced
I am (and I think the OP is) looking for a method that checks for Alternatively a different special error should be returned in that case. Perhaps it could reuse or wrap the |
A fallback solution can be beneficial. A hashed file can be a simple solution for this. There is already a fallback provider. We just need to implement a file solution for it. Happy to work on it if it is okay for maintainers. |
I am integrating this library in a project of mine and I am running into the issue that I want to bypass caching if it is not available locally.
A method added to the interface would be helpful. The method
IsAvailable
would check if the service is available. I looked at the source and saw that it might have been already tried to add a function likeIsAvailable
. I see a commented out function:Before I go into developing this more deeply, I was wondering if you tried to adding this method and have come into fundamental problems that prevent implementation.
We can also discuss if this is a good feature to be merged upstream into this library.
The text was updated successfully, but these errors were encountered: