-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Refactor image preprocessing #121
Conversation
7018cb3
to
93fa41b
Compare
It looks like this just re-shuffle code in different files. Am I wrong? |
For now, yes... this is still a work in progress. This abstracts the steps for any format that could be added later (such as OCI). I still need to refactor the |
This code looks good, but I wish I knew more about how other image formats work. I'm worried that if we extract interfaces before we implement a second image analyzer, we'll make extra work for ourselves. Would it be worth spiking an analyzer for runC images before we do this, and then seeing if all the interfaces we have still hold up? Or maybe the formats are all similar enough that my worry is unfounded. @wagoodman do you feel confident enough in how the analysis of other images will be similar or different from Docker images to go ahead with this? |
Your worry is a fair one, I'm not entirely certain this is the right interface (for instance, will we only need a string to fetch and parse an image? or something more complex to indicate what to fetch?). However, I do feel like it's in the right direction and it is as simple as it can be for now. Also, since we're not at 1.0.0 yet there isn't any obligation to ensure interfaces won't change or break against previous versions. |
# Conflicts: # image/image.go
d5ab4e0
to
927dd46
Compare
927dd46
to
91a5108
Compare
This was done for two reasons: