-
Notifications
You must be signed in to change notification settings - Fork 523
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
RFC-3197: Config #3197
RFC-3197: Config #3197
Conversation
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Just a thought, what about add a interface in fn config(&self) -> Box<dyn Config> And let Config itself be trait Config: Serialize + Deserialize + .... This makes it more maintainable and less error prone For example S3 impl Config for S3Config {
...
} and impl Builder for S3Builder {
fn config(&self) -> Box<dyn Config> {
self.config.boxed()
}
} |
6f7e61f
to
b7edbfe
Compare
Providing a trait that allows Users can implement This is crucial for production applications as they do not want to be impacted by OpenDAL's breaking changes. And they should not. |
Hi, @oowl, please don't force push my branches. Thanks. |
b7edbfe
to
b984a82
Compare
Signed-off-by: Xuanwo <[email protected]>
For dealing with secrets, there is |
Thank you for the advice. However, as stated in the proposal, this does not include anything related to secrets. |
cc @suyanhanx @Ji-Xinyou @ClSlaid would you like to review again? |
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.
LGTM now
Hi, @suyanhanx, do you have any review comments to address? |
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.
LGTM. Thanks.
* rfc: Config Signed-off-by: Xuanwo <[email protected]> * Assign numbder Signed-off-by: Xuanwo <[email protected]> * Fix build Signed-off-by: Xuanwo <[email protected]> * Add example Signed-off-by: Xuanwo <[email protected]> * Address comments Signed-off-by: Xuanwo <[email protected]> * Update Signed-off-by: Xuanwo <[email protected]> * Add tracking issue links Signed-off-by: Xuanwo <[email protected]> --------- Signed-off-by: Xuanwo <[email protected]>
root
out of service config to operator level? #3151