-
Notifications
You must be signed in to change notification settings - Fork 195
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: runtime plugin placeholder code to Smithy Orchestrator #2465
Add: runtime plugin placeholder code to Smithy Orchestrator #2465
Conversation
update: separate client and operation interceptors
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
|
||
pub fn read_before_execution( | ||
pub fn operation_read_before_execution( |
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.
Nit: I think we should make a macro to generate all these functions since they're completely identical except for the function names...
client_plugins: Vec<Box<dyn RuntimePlugin>>, | ||
operation_plugins: Vec<Box<dyn RuntimePlugin>>, |
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.
Vec
would be a good start. We may later want to change them to VecDeque
if we need to prepend plugins.
} | ||
} | ||
|
||
impl RuntimePlugin for GetObjectEndpointOrc { |
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.
Haven't fully decided yet but we may need to define a separate struct GetObjectEndpointPlugin
and impl RuntimePlugin
on that.
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.
I'd like to get this merged and then assign you to that task.
A new generated diff is ready to view.
A new doc preview is ready to view. |
update: add placeholder impl of runtime plugins
update: separate client and operation interceptors
I thought I had already added this in the other PR but these changes must have become lost somehow.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.