-
Notifications
You must be signed in to change notification settings - Fork 26
[crucible-agent] migrate to API trait #1766
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
[crucible-agent] migrate to API trait #1766
Conversation
Created using spr 1.3.6-beta.1
agent/src/datafile.rs
Outdated
|
|
||
| use super::model::*; | ||
| use anyhow::{anyhow, bail, Result}; | ||
| use crucible_agent_types::region::*; |
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 have preferred to keep this as "model", as not all the types in there reference regions.
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.
Hmm, so I didn't want to call it crucible_agent_types::model because types and model are redundant with each other. What if I move SmfProperty into its own smf module?
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.
that works :)
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.
Created snapshot and smf modules.
agent/src/main.rs
Outdated
| // what will be used by other zones. In the future this could be a | ||
| // parameter that comes along with the region POST parameters. | ||
| properties.push(crate::model::SmfProperty { | ||
| properties.push(region::SmfProperty { |
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.
for example, SmfProperty has nothing to do with regions
Created using spr 1.3.6-beta.1
Part of oxidecomputer/omicron#8922.