A container registry that uses the AT Protocol for manifest storage and S3 for blob storage. atcr.io
docker container atproto go

lint

evan.jarrett.net 83e5c82c ec2063ef

verified
+16 -16
+16 -16
pkg/appview/handlers/repository.go
··· 234 234 var scanDigests []string 235 235 var scanHoldEndpoint string 236 236 for _, m := range manifests { 237 - if !m.IsManifestList && m.Manifest.HoldEndpoint != "" { 237 + if !m.IsManifestList && m.HoldEndpoint != "" { 238 238 if scanHoldEndpoint == "" { 239 - scanHoldEndpoint = m.Manifest.HoldEndpoint 239 + scanHoldEndpoint = m.HoldEndpoint 240 240 } 241 - if m.Manifest.HoldEndpoint == scanHoldEndpoint { 242 - scanDigests = append(scanDigests, strings.TrimPrefix(m.Manifest.Digest, "sha256:")) 241 + if m.HoldEndpoint == scanHoldEndpoint { 242 + scanDigests = append(scanDigests, strings.TrimPrefix(m.Digest, "sha256:")) 243 243 } 244 244 } 245 245 } ··· 274 274 275 275 data := struct { 276 276 PageData 277 - Meta *PageMeta 278 - Owner *db.User // Repository owner 279 - Repository *db.Repository // Repository summary 280 - Tags []db.TagWithPlatforms // Tags with platform info 281 - Manifests []db.ManifestWithMetadata // Top-level manifests only 282 - StarCount int 283 - PullCount int 284 - IsStarred bool 285 - IsOwner bool // Whether current user owns this repository 286 - ReadmeHTML template.HTML 287 - ArtifactType string // Dominant artifact type: container-image, helm-chart, unknown 288 - ScanBatchParams template.HTML // Pre-encoded query string for batch scan-result endpoint 277 + Meta *PageMeta 278 + Owner *db.User // Repository owner 279 + Repository *db.Repository // Repository summary 280 + Tags []db.TagWithPlatforms // Tags with platform info 281 + Manifests []db.ManifestWithMetadata // Top-level manifests only 282 + StarCount int 283 + PullCount int 284 + IsStarred bool 285 + IsOwner bool // Whether current user owns this repository 286 + ReadmeHTML template.HTML 287 + ArtifactType string // Dominant artifact type: container-image, helm-chart, unknown 288 + ScanBatchParams template.HTML // Pre-encoded query string for batch scan-result endpoint 289 289 }{ 290 290 PageData: NewPageData(r, &h.BaseUIHandler), 291 291 Meta: meta,