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

Configure Feed

Select the types of activity you want to include in your feed.

fix tag store implementation for paginating tags new in distribution 3.1

+24
+24
pkg/appview/storage/tag_store.go
··· 112 112 return tags, nil 113 113 } 114 114 115 + // List returns tags after `last` up to `limit` (pagination over All). 116 + func (s *TagStore) List(ctx context.Context, limit int, last string) ([]string, error) { 117 + all, err := s.All(ctx) 118 + if err != nil { 119 + return nil, err 120 + } 121 + 122 + var result []string 123 + past := last == "" 124 + for _, tag := range all { 125 + if !past { 126 + if tag == last { 127 + past = true 128 + } 129 + continue 130 + } 131 + result = append(result, tag) 132 + if limit > 0 && len(result) >= limit { 133 + break 134 + } 135 + } 136 + return result, nil 137 + } 138 + 115 139 // Lookup returns the set of tags for a given digest 116 140 func (s *TagStore) Lookup(ctx context.Context, desc distribution.Descriptor) ([]string, error) { 117 141 // List all records in the tag collection