-
Notifications
You must be signed in to change notification settings - Fork 542
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
Doesn't GCR support pagination? #897
Comments
Thanks! I really appreciate it.
GCR doesn't implement this pagination, mostly for historical reasons. If you look at the response, GCR adds a bunch of non-standard fields, including a map from image digest to some metadata. This makes the response a lot more useful, but also makes pagination troublesome... It's hard to know if clients actually care about only tags, or if they also care about that manifest map. We could paginate just the tags and not populate the manifest map for paginated requests, but that would break clients that care about the manifest map. In theory, we could paginate both the manifest map and the tags list, but that would make the http handler a lot more complicated, so we just settled on returning the whole response until someone complains. Out of curiosity, what would you expect to happen for a paginated request? Also, why would it be useful to you?
Not dumb at all, it's a very reasonable question. |
That makes sense!
As you may know, I currently implement a program that periodically calls
I haven't actually measured the response size to see if it is realistic, but if possible, I would like to avoid a single response size that is unexpected. (Btw, my problem will be solved, if there is another way to detect the latest tags for a specific image other than listing all tags) |
This issue is stale because it has been open for 90 days with no |
Hi, thanks for making the quite useful package. I love this one.
The
v1/remote
looks to implements the client that always uses the Link header value when proceeding through results linearly.go-containerregistry/pkg/v1/remote/list.go
Lines 52 to 59 in 3584fa0
Wheres the
v1/google
package seems to not have any option to do that.go-containerregistry/pkg/v1/google/list.go
Lines 79 to 106 in 3584fa0
It means Google Container Registry doesn't implement it, or just this client hasn't implemented it yet? Sorry if this sounds dumb, but it would be great if you could let me know.
The text was updated successfully, but these errors were encountered: