-
Notifications
You must be signed in to change notification settings - Fork 52
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
State: align ocispec-rs with spec-go and introduce State #170
Conversation
Fixes youki-dev#169 Signed-off-by: Alex Lyn <[email protected]>
Hi @utam0k @saschagrunert PTAL! Thx very much. |
/// Paused indicates that the container exists, but all processes are paused. | ||
Paused, |
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 this something official? I can't see it in https://github.com/opencontainers/runtime-spec/blob/main/specs-go/state.go
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'm so sorry @saschagrunert
I think I misunderstood the State of things and mixed them up. I need to rethink it. Thank you for your reminder.
/// Unknown | ||
#[default] | ||
Unknown, |
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.
Same for this, do we need that?
pid: i32, | ||
|
||
/// opaque metadata. | ||
#[serde(default)] |
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.
#[serde(default)] | |
#[serde(default, skip_serializing_if = "Option::is_none")] |
Sorry @saschagrunert @utam0k for that my misunderstanding of this state, I think I should close it. Thx! |
Fixes #169