Repository navigation
Introduce a Transport enum for container images - #120
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a Transport enum to represent different container image backends, along with parsing logic from image reference strings. The implementation is well-tested. My review includes suggestions to make the code more idiomatic and readable, such as deriving standard traits for the enum, simplifying the Display and TryFrom implementations, and improving test clarity and assertions.
2eb8b9f to
cf89cce
Compare
Transport enum for different container image backends (registry, oci, etc.) TryFrom<&str> implementation for parsing transport prefixes from image references Display impl for Transport Tests generated by Claude Code Assisted-by: Claude Code (Sonnet 4) Signed-off-by: Pragyan Poudyal <[email protected]>
cf89cce to
be502ba
Compare
cgwalters
left a comment
There was a problem hiding this comment.
Fine as is, however: we can also now take the opportunity to do a semver break and have our APIs accept not just an image string but a struct that combines transport + name, like we have in bootc.
I thought about this, no need to break semver for now, I just went with new APIs |
Transport enum for different container image backends (registry, oci, etc.) TryFrom<&str> implementation for parsing transport prefixes from image references Display impl for Transport
Tests generated by Claude Code
Assisted-by: Claude Code (Sonnet 4)