Skip to content

Implement io.ReaderAt on docker fetch reader#11981

Merged
dmcgowan merged 1 commit into
containerd:mainfrom
cpuguy83:remote_readerat
Jun 23, 2025
Merged

Implement io.ReaderAt on docker fetch reader#11981
dmcgowan merged 1 commit into
containerd:mainfrom
cpuguy83:remote_readerat

Conversation

@cpuguy83

Copy link
Copy Markdown
Member

I was working on treating a remote as a content provider and ran into the stream backing the fetch only implementing io.Seeker. I shimmed an io.ReaderAt implementation by calling seek under the hood, but this is of course not a faithful io.ReaderAt implementation.

This just implements a correct io.ReaderAt implementation directly.

I was working on treating a remote as a content provider and ran into
the stream backing the fetch only implementing io.Seeker.
I shimmed an io.ReaderAt implementation by calling seek under the hood,
but this is of course not a faithful io.ReaderAt implementation.

This just implements a correct io.ReaderAt implementation directly.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jun 23, 2025
@mxpv mxpv added this pull request to the merge queue Jun 23, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 23, 2025
@dmcgowan dmcgowan added this pull request to the merge queue Jun 23, 2025
Merged via the queue into containerd:main with commit 99df502 Jun 23, 2025
52 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jun 23, 2025
@cpuguy83 cpuguy83 deleted the remote_readerat branch May 7, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/distribution Image Distribution size/M

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants