tangled
alpha
login
or
join now
evan.jarrett.net
/
at-container-registry
66
fork
atom
A container registry that uses the AT Protocol for manifest storage and S3 for blob storage.
atcr.io
docker
container
atproto
go
66
fork
atom
overview
issues
1
pulls
pipelines
lint
evan.jarrett.net
1 month ago
83e5c82c
ec2063ef
verified
This commit was signed with the committer's
known signature
.
evan.jarrett.net
SSH Key Fingerprint:
SHA256:bznk0uVPp7XFOl67P0uTM1pCjf2A4ojeP/lsUE7uauQ=
1/2
lint.yaml
success
5m 50s
tests.yml
failed
5m 47s
+16
-16
1 changed file
expand all
collapse all
unified
split
pkg
appview
handlers
repository.go
+16
-16
pkg/appview/handlers/repository.go
···
234
234
var scanDigests []string
235
235
var scanHoldEndpoint string
236
236
for _, m := range manifests {
237
237
-
if !m.IsManifestList && m.Manifest.HoldEndpoint != "" {
237
237
+
if !m.IsManifestList && m.HoldEndpoint != "" {
238
238
if scanHoldEndpoint == "" {
239
239
-
scanHoldEndpoint = m.Manifest.HoldEndpoint
239
239
+
scanHoldEndpoint = m.HoldEndpoint
240
240
}
241
241
-
if m.Manifest.HoldEndpoint == scanHoldEndpoint {
242
242
-
scanDigests = append(scanDigests, strings.TrimPrefix(m.Manifest.Digest, "sha256:"))
241
241
+
if m.HoldEndpoint == scanHoldEndpoint {
242
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
277
-
Meta *PageMeta
278
278
-
Owner *db.User // Repository owner
279
279
-
Repository *db.Repository // Repository summary
280
280
-
Tags []db.TagWithPlatforms // Tags with platform info
281
281
-
Manifests []db.ManifestWithMetadata // Top-level manifests only
282
282
-
StarCount int
283
283
-
PullCount int
284
284
-
IsStarred bool
285
285
-
IsOwner bool // Whether current user owns this repository
286
286
-
ReadmeHTML template.HTML
287
287
-
ArtifactType string // Dominant artifact type: container-image, helm-chart, unknown
288
288
-
ScanBatchParams template.HTML // Pre-encoded query string for batch scan-result endpoint
277
277
+
Meta *PageMeta
278
278
+
Owner *db.User // Repository owner
279
279
+
Repository *db.Repository // Repository summary
280
280
+
Tags []db.TagWithPlatforms // Tags with platform info
281
281
+
Manifests []db.ManifestWithMetadata // Top-level manifests only
282
282
+
StarCount int
283
283
+
PullCount int
284
284
+
IsStarred bool
285
285
+
IsOwner bool // Whether current user owns this repository
286
286
+
ReadmeHTML template.HTML
287
287
+
ArtifactType string // Dominant artifact type: container-image, helm-chart, unknown
288
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,