Add registry provider as sync source for Docker Registry V2 API#11
Merged
Conversation
Implement the registry provider as a sync source that enumerates repository tags via the Docker Registry V2 API and downloads manifests and blobs locally. The provider supports bearer token auth, tag glob filtering, and checksum-based skip/update logic. UI/UX improvements: - Dashboard shows empty state with "Get Started" prompt when no providers exist - Provider detail page displays sync history table (last 10 runs) - Sidebar version is now dynamic (from build-time ldflags, not hardcoded) - Registry provider form split into sync source and push target sections https://claude.ai/code/session_01SdEa9sX3wtA8Haq92LiCry
Suppress unchecked error returns from json.Encode, w.Write, and fmt.Fprint in test HTTP handlers to satisfy golangci-lint errcheck. https://claude.ai/code/session_01SdEa9sX3wtA8Haq92LiCry
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
This PR adds support for using the
registryprovider type as a sync source, enabling airgap to enumerate repository tags via the Docker Registry V2 API and download container image manifests and blobs locally. Previously, the registry provider only supported push operations.Key Changes
New Registry Sync Provider (
internal/provider/registry/provider.go):Providerinterface for syncing container images from remote registriesConfiguration Updates (
internal/config/config.go):RegistryProviderConfigto support sync source mode with:Repositories: list of repositories to enumerateTags: optional glob patterns for tag filteringOutputDir: directory for storing downloaded manifests/blobsRepositoriesis emptyUI Enhancements (
internal/server/templates/providers.html):Provider Registration (
cmd/airgap/root.go):Testing (
internal/provider/registry/provider_test.go):Documentation Updates:
AGENTS.mdto reflect registry provider's dual roleCHANGELOG.mdwith v0.4.0 release notesUI Improvements:
Implementation Details
https://claude.ai/code/session_01SdEa9sX3wtA8Haq92LiCry