distribution/registry
James Hewitt e22f7cbc73
Pass the last paging flag to storage drivers
Storage drivers may be able to take advantage of the hint to start
their walk more efficiently.

For S3: The API takes a start-after parameter. Registries with many
repositories can drastically reduce calls to s3 by telling s3 to only
list results lexographically after the last parameter.

For the fallback: We can start deeper in the tree and avoid statting
the files and directories before the hint in a walk. For a filesystem
this improves performance a little, but many of the API based drivers
are currently treated like a filesystem, so this drastically improves
the performance of GCP and Azure blob.

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
2023-08-29 11:27:42 +01:00
..
api Handle rand deprecations in go 1.20 2023-08-28 09:33:12 +01:00
auth ignore SA1019: ac.(*accessController).rootCerts.Subjects has been deprecated 2023-05-09 16:04:17 +02:00
client Dont parse errors as JSON unless Content-Type is set to JSON 2023-08-28 12:35:33 +01:00
handlers Add username to create redis client 2023-08-29 16:27:43 +08:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware Merge pull request #2752 from davidswu/registry-driver-middleware 2023-06-21 10:06:13 -07:00
proxy Handle rand deprecations in go 1.20 2023-08-28 09:33:12 +01:00
storage Pass the last paging flag to storage drivers 2023-08-29 11:27:42 +01:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go Remove bugsnag 2023-08-21 10:24:36 +02:00
registry_test.go Enable bodyclose linter 2023-08-19 09:45:44 +01:00
root.go feat(storage)!: remove schema1 except manifeststore_test 2023-08-28 12:44:46 +02:00