[transfer] update imagestore interface to support multiple references#7964
Merged
AkihiroSuda merged 1 commit intocontainerd:mainfrom Feb 14, 2023
Merged
Conversation
737524b to
9ad5d67
Compare
88cc5a6 to
923f008
Compare
knight42
reviewed
Jan 14, 2023
api/types/transfer/imagestore.proto
Outdated
|
|
||
| // ImageReference is used to create or find a reference for an image | ||
| message ImageReference { | ||
| string Name = 1; |
Contributor
There was a problem hiding this comment.
nit:
Suggested change
| string Name = 1; | |
| string name = 1; |
| return imgs, nil | ||
| } | ||
|
|
||
| func (is *Store) Get(ctx context.Context, store images.Store) (images.Image, error) { |
Contributor
There was a problem hiding this comment.
How could we get extra image references from the image store?
Member
Author
There was a problem hiding this comment.
I have that in a separate commit so far since still working on it, thinking the interface would be Lookup(ctx context.Context, store image.Store) ([]image.Image, error). I was thinking how to handle the prefix references on lookup, which could be interesting to use. Non prefix references should be straight forward.
923f008 to
1449ecd
Compare
Member
|
1449ecd to
923b556
Compare
AkihiroSuda
reviewed
Jan 22, 2023
923b556 to
2d39197
Compare
Member
Author
|
/retest |
1 similar comment
Member
Author
|
/retest |
mxpv
reviewed
Jan 25, 2023
2d39197 to
2632d87
Compare
estesp
reviewed
Feb 7, 2023
747bbbe to
60940b2
Compare
mxpv
approved these changes
Feb 9, 2023
cpuguy83
approved these changes
Feb 10, 2023
integration/client/import_test.go
Outdated
| // Name is the name of the test | ||
| Name string | ||
|
|
||
| // Images is the names of the images to creat |
60940b2 to
3e0bac9
Compare
mikebrow
reviewed
Feb 13, 2023
api/types/transfer/imagestore.proto
Outdated
| // name reference from the prefix. | ||
| // Only used if IsPrefix is true. | ||
| bool skip_named_digest = 5; | ||
| } No newline at end of file |
Signed-off-by: Derek McGowan <[email protected]>
3e0bac9 to
081601f
Compare
AkihiroSuda
approved these changes
Feb 14, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated image store to allow for a cleaner definition of import names and to allow the API to support multiple export names.