-
Notifications
You must be signed in to change notification settings - Fork 154
refactor: Use optimus config struct instead of interface #162
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
Conversation
Pull Request Test Coverage Report for Build 1897418940
💛 - Coveralls |
|
Hi @deryrahman, although this looks good, can you please help me understand the reasoning behind why we are doing this? |
|
Hi @kushsharma, As of now, since we only have 1 config implementation (which is config.Optimus) we don't need the interface. We also saw that the config is only data structure and have no behavior. And all the fields of conf.Optimus struct is exported (public) so we don't see the urgency of having getter. But if there's a strong reason to use getter, then we can discuss. cmiiw @sbchaos @sravankorumilli |
Make sense, unless we have more than one implementation it is not needed as of now. The idea of having the interface was if we needed to inject a provider like etcd store or gcloud runtimevars for runtime changes but I agree that is unlikely in near future. |
refactor: inject host config on listSecret function refactor: inject host config on updateSecret function refactor: inject host config on registerSecret function refactor: inject host config on runReplayRequest function refactor: inject host config on printReplayExecutionTree function refactor: inject host config on runBackupRequest function refactor: inject host config on runBackupDryRunRequest function
2321763 to
5dc527a
Compare
Uh oh!
There was an error while loading. Please reload this page.