Skip to content
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 oci opts #6

Merged
merged 3 commits into from
May 20, 2024
Merged

Add oci opts #6

merged 3 commits into from
May 20, 2024

Conversation

Apokleos
Copy link
Contributor

add to_oci opts for CDI Hook, Mount, DeviceNode and IntelRdt

(1) As cdi spec will be involved in some other files,
we need make it and its related fields public.

(2) Change annotations: HashMap to BTreeMap, as the
object of Spec will be involved in HashSet with cmp
hash value in Cache. But HashMap has no impl for trait
Hash.

(3) Others,such as Mount.mount_type to r#type, and the
type of DeviceNode.file_mode as Option<mode_t>

Signed-off-by: Alex Lyn <[email protected]>
As original mod.rs where cdi spec defined, I think we should
move it to a dedicated config.rs for CDI spec which ensures
adherence to Rust style and keep maintaining alignment with
cdi-go code for specs-go.

Fixes cncf-tags#5

Signed-off-by: Alex Lyn <[email protected]>
Add to_oci() opts for CDI Hook, Mount, DeviceNode
and InteRdt

Signed-off-by: Alex Lyn <[email protected]>
@zvonkok zvonkok merged commit 57eee5a into cncf-tags:main May 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants