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 index mutation methods to pkg/v1/mutate #474

Closed
jonjohnsonjr opened this issue Jun 24, 2019 · 0 comments · Fixed by #520
Closed

Add index mutation methods to pkg/v1/mutate #474

jonjohnsonjr opened this issue Jun 24, 2019 · 0 comments · Fixed by #520
Labels
enhancement New feature or request

Comments

@jonjohnsonjr
Copy link
Collaborator

It's currently really difficult to programmatically create an image index.

This is mostly my fault because I had tunnel vision when implementing pkg/v1/layout, but we need these to work on an abritrary ImageIndex.

Ideally, we could do something like:

idx := empty.Index
idx, _ = mutate.AppendImage(idx, foo)
idx, _ = mutate.AppendImage(idx, bar)

Which would produce an index that references both images foo and bar. I'd like the same options to work, and we'll probably want AppendIndex as well.

I suspect we'd be able to refactor most of the layout package implementations to use the mutate package without making it inefficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant