1
0
mirror of https://github.com/distribution/distribution synced 2025-02-23 06:49:36 +01:00
distribution/registry/storage
Milos Gajdos cb0d083d8d
feat: Add context to storagedriver.(Filewriter).Commit()
This commit changes storagedriver.Filewriter interface
by adding context.Context as an argument to its Commit
func.

We pass the context appropriately where need be throughout
the distribution codebase to all the writers and tests.

S3 driver writer unfortunately must maintain the context
passed down to it from upstream so it contnues to
implement io.Writer and io.Closer interfaces which do not
allow accepting the context in any of their funcs.

Co-authored-by: Cory Snider <corhere@gmail.com>
Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
2023-10-19 11:27:27 +01:00
..
cache refactor redis cache 2023-09-28 18:40:50 +08:00
driver feat: Add context to storagedriver.(Filewriter).Commit() 2023-10-19 11:27:27 +01:00
blob_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
blobserver.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
blobstore.go fix comment typos 2023-09-28 17:48:21 +08:00
blobwriter_nonresumable.go bump up golang v1.17 2021-10-27 15:51:30 +08:00
blobwriter_resumable.go format code with gofumpt 2022-11-03 22:48:20 +01:00
blobwriter.go feat: Add context to storagedriver.(Filewriter).Commit() 2023-10-19 11:27:27 +01:00
catalog_test.go Merge pull request #4031 from thaJeztah/migrate_reference 2023-08-31 15:20:28 +01:00
catalog.go Merge pull request #4031 from thaJeztah/migrate_reference 2023-08-31 15:20:28 +01:00
doc.go Move storage package under registry package 2015-02-11 12:43:04 -08:00
error.go Remove old walk function 2018-01-18 13:06:07 -08:00
filereader_test.go Handle rand deprecations in go 1.20 2023-08-28 09:33:12 +01:00
filereader.go replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
garbagecollect_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
garbagecollect.go deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
io.go replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
linkedblobstore_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
linkedblobstore.go fix comment typos 2023-09-28 17:48:21 +08:00
manifestlisthandler.go Fix Go Idioms 2023-04-21 15:22:37 +01:00
manifeststore_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
manifeststore.go feat(storage)!: remove schema1 except manifeststore_test 2023-08-28 12:44:46 +02:00
ociindexhandler.go Split OCI Image Index from Docker Manifest List 2023-03-31 11:43:21 +01:00
ocimanifesthandler_test.go registry: verify digest and check blob presence when put manifest 2021-04-16 16:11:52 +08:00
ocimanifesthandler.go format code with gofumpt 2022-11-03 22:48:20 +01:00
paths_test.go format code with gofumpt 2022-11-03 22:48:20 +01:00
paths.go add repositoriesRootPathSpec in pathFor documentation 2023-09-26 15:07:49 +08:00
purgeuploads_test.go format code with gofumpt 2022-11-03 22:48:20 +01:00
purgeuploads.go format code with gofumpt 2022-11-03 22:48:20 +01:00
registry.go deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
schema2manifesthandler_test.go registry: verify digest and check blob presence when put manifest 2021-04-16 16:11:52 +08:00
schema2manifesthandler.go feat(storage)!: remove schema1 except manifeststore_test 2023-08-28 12:44:46 +02:00
tagstore_test.go deprecate reference package, migrate to github.com/distribution/reference 2023-08-31 15:47:06 +02:00
tagstore.go use manifestTagsPathSpec for listing all tags 2023-09-28 10:44:46 +08:00
vacuum.go go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00