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.
Resolves #107
Example usage:
It stores pulled content in the
store
folder aswhere
ingest
is a folder generated bycontainerd
.The file contents are shown as follows:
oci-layout
after formatting:index.json
after formatting:blobs/sha256/130c6b42d2ea0bbf0cc727aa2c2c193d1550e84b62202efbc1f24b5adddebd30
after formatting:blobs/sha256/44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
:blobs/sha256/03ba204e50d126e4674c005e04d82e84c21366780af1f43bd54a37816b6ab340
:The options
oras.WithContentProvideIngester(store)
allows pulling manifest or manifest index.oras.WithPullEmptyNameAllowed()
allows pulling unnamed blobs.If the option
oras.WithAllowedMediaType()
is not specified, setting both options basically dumps the remote image to the local file system. Try pulldocker.io/library/hello-world:latest
if interested.