Add OCI Referrers API and image index support#11
Merged
coryodaniel merged 8 commits intomainfrom Mar 31, 2026
Merged
Conversation
Snapshot of in-progress work before resuming development. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
User prompts: - "lets work through it adding support" - "fix this warning: Module.eval_quoted/2 is deprecated" Changes: - Parser: handle application/vnd.oci.image.index.v1+json content type - Registry: move blob validation from storage adapter to registry layer with referenced_blobs/1 that handles manifest vs index types - Local storage: store_manifest now just stores, no blob validation - Fix deprecated Module.eval_quoted -> Code.eval_quoted - Update TODO checklists in registry.ex and handler.ex Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
User prompts: - "finish the referrers marking todos off as you go" - "Enable appropriate tests suite in generate_report/0" Changes: - Add GET /v2/<name>/referrers/<digest> endpoint - Index subject->referrer relationship on manifest store - Add list_referrers/put_referrer to storage adapter behaviour - Implement referrer storage in local adapter (JSON files per subject) - Build referrer descriptors with mediaType, digest, size, artifactType, annotations - Support artifactType query param filtering with OCI-Filters-Applied header - Uncomment referrers conformance tests in 03_discovery_test.go - All 4 referrers conformance tests passing Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
User prompts: - "pass the filters to list_referrers so the adapter can do the filtering" Changes: - Add filters map param to list_referrers in adapter behaviour, registry, and local impl - Handler builds filters from query params and passes down - Adapter can filter efficiently at query time Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Changes: - Add Link header with rel="next" for paginated tag list responses - Remove OCI-Subject TODO (reading from manifest body is correct) - Remove completed TODO checklist from list_tags - Bump version to 0.1.0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
See #12 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
GET /v2/<name>/referrers/<digest>endpoint per OCI Distribution Specapplication/vnd.oci.image.index.v1+json) in parser and storageLinkheader for paginated tag list responsesartifactTypequery param filtering withOCI-Filters-Appliedresponse headerTest plan
🤖 Generated with Claude Code
Closes #4