0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/api
Ramkumar Chinchani 386c72d332 routes: refactor locks to handle large file uploads
The storage layer is protected with read-write locks.
However, we may be holding the locks over unnecessarily large critical
sections.

The typical workflow is that a blob is first uploaded via a per-client
private session-id meaning the blob is not publicly visible yet. When
the blob being uploaded is very large, the transfer takes a long time
while holding the lock.

Private session-id based uploads don't really need locks, and hold locks
only when blobs are published after the upload is complete.
2020-10-16 13:33:11 -07:00
..
auth.go auth: support a read-only mode 2020-07-10 21:48:35 -07:00
BUILD.bazel Added graphql api feature for image vulnerability scanning 2020-08-18 22:44:34 -07:00
config.go Enable trivy db download and update 2020-08-18 21:46:17 -07:00
controller.go Enable trivy db download and update 2020-08-18 21:46:17 -07:00
controller_test.go auth: support a read-only mode 2020-07-10 21:48:35 -07:00
errors.go Upgraded build pipeline 2020-06-25 23:43:31 -07:00
ldap.go Upgraded build pipeline 2020-06-25 23:43:31 -07:00
regexp.go Upgraded build pipeline 2020-06-25 23:43:31 -07:00
routes.go routes: refactor locks to handle large file uploads 2020-10-16 13:33:11 -07:00