This repository has been archived by the owner on May 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve Provider logic (#99)
* refactor: improve Provider logic This refactor improves the Provider.Bind logic by being clearer on what parameters are used for finding the expected keys and by introducing new types wrapping map[string]interface{} for dealing with repetitive actions. Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: apply review comments 1 Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: license headers Signed-off-by: Thulio Ferraz Assis <[email protected]> * feat: add extra Object helper methods Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: use DigStringAlt for postgresql password Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: DigStringAlt comment Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: use if instead of switch Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: silly nesting Co-authored-by: Mark Yen <[email protected]> * fix: use ifs instead of switches on providers Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: handle empty keys and key parts on Dig Signed-off-by: Thulio Ferraz Assis <[email protected]> Co-authored-by: Mark Yen <[email protected]>
- Loading branch information
Showing
13 changed files
with
684 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.