-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add per provider config: #326
Merged
mergify
merged 21 commits into
bmc-toolbox:main
from
jacobweinstock:per-provider-config
May 11, 2023
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8ebc70c
Add per provider config:
jacobweinstock 6bb0b1d
Refactor to use provider specific config structs:
jacobweinstock f9f861f
Updated go.mod
jacobweinstock a6d27a5
Move all option related code to option.go
jacobweinstock 02f085e
Remove error return from default http.Client constructor:
jacobweinstock e1aff89
Update internal ipmi:
jacobweinstock fe4dfaa
Update default http.Client constructor:
jacobweinstock fbec04f
Add functional arguments and options:
jacobweinstock cfa88bf
Fix merge conflicts:
jacobweinstock 54a32d9
Fix defaultTimeout test:
jacobweinstock 47f65c1
Fix defaultTimeout test:
jacobweinstock f0e83f8
Make gofish port customizable:
jacobweinstock b52ee97
Use gofish opts for port instead of a func parameter:
jacobweinstock a22508e
Make asrockrack port configurable.
jacobweinstock 7dd578a
Add missing function back after main merge.
jacobweinstock d91f2e7
Main merge clean up
jacobweinstock 054fde6
Rename gofish options to redfish:
jacobweinstock d1528bf
Remove debug print line, run go fmt:
jacobweinstock 532dade
Clone the http.Client transport for each provider:
jacobweinstock 9e2d7b3
Update README to reflect function signature change
jacobweinstock 46acd6e
Enable CGO:
jacobweinstock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to have the
providerConfig
(or have Options) type be exported as a struct/interface by each provider - so the provider specific configuration and http client checks can stay within the respective packages underproviders/{asrockrack,redfish..}/
?This would keep the client package free from provider specifics.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @joelrebel , thanks for looking at this. I've updated to have all providers define their own config struct and then client.go just collects them into a single struct. Is this more of what you had in mind? Also, this PR is still very much a WIP.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will take a look thanks!, apologies I missed the WIP/draft label on the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @joelrebel, this PR should be ready for a proper review whenever you have cycles. Thanks!