-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[transfer] update imagestore interface to support multiple references #7964
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
[transfer] update imagestore interface to support multiple references #7964
Conversation
737524b to
9ad5d67
Compare
88cc5a6 to
923f008
Compare
api/types/transfer/imagestore.proto
Outdated
|
|
||
| // ImageReference is used to create or find a reference for an image | ||
| message ImageReference { | ||
| string Name = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
| string Name = 1; | |
| string name = 1; |
| return imgs, nil | ||
| } | ||
|
|
||
| func (is *Store) Get(ctx context.Context, store images.Store) (images.Image, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How could we get extra image references from the image store?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
https://cirrus-ci.com/task/6699598622752768?logs=integration#L121 |
1449ecd to
923b556
Compare
923b556 to
2d39197
Compare
|
/retest |
1 similar comment
|
/retest |
2d39197 to
2632d87
Compare
747bbbe to
60940b2
Compare
integration/client/import_test.go
Outdated
| // Name is the name of the test | ||
| Name string | ||
|
|
||
| // Images is the names of the images to creat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create
60940b2 to
3e0bac9
Compare
api/types/transfer/imagestore.proto
Outdated
| // name reference from the prefix. | ||
| // Only used if IsPrefix is true. | ||
| bool skip_named_digest = 5; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit nl missing
Signed-off-by: Derek McGowan <derek@mcg.dev>
3e0bac9 to
081601f
Compare
Updated image store to allow for a cleaner definition of import names and to allow the API to support multiple export names.