New Example storage adapter for lua-resty-auto-ssl #205
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Initial commit based the draft of PR #203 (that was based on fititnt/ap-application-load-balancer/issues/25)
This is related to the TODO/Document and formalize the API for other storage adapters.
The idea with this Pull Request is have one dummy file on the same directory as other adapters /lib/resty/auto-ssl/storage_adapters that could be used as reference to new people literaly just
copy and paste
and then bootstrap their customization.Things I open to discussion, but I guess that could give the general idea
example.lua
adapter should pass the CI tests for code linting.local function prefixed_key(self, key)
Note: no problem if this PR does not get merged (one good example would be use README.md or other place to document); Even if this PR get merget, very likely could be a place to be rewritten by the main maintainer to reflect all the options that are exposed to storage drivers. This example module could also get new updates from time to time when new options are exposed to other storage drivers.