distribution/registry/storage/driver
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
..
azure feat: Add context to storagedriver.(Filewriter).Commit() 2023-10-19 11:27:27 +01:00
base Pass the last paging flag to storage drivers 2023-08-29 11:27:42 +01:00
factory go.mod: change imports to github.com/distribution/distribution/v3 2021-02-08 18:30:46 +01:00
filesystem feat: Add context to storagedriver.(Filewriter).Commit() 2023-10-19 11:27:27 +01:00
gcs feat: Add context to storagedriver.(Filewriter).Commit() 2023-10-19 11:27:27 +01:00
inmemory feat: Add context to storagedriver.(Filewriter).Commit() 2023-10-19 11:27:27 +01:00
middleware Enable bodyclose linter 2023-08-19 09:45:44 +01:00
s3-aws feat: Add context to storagedriver.(Filewriter).Commit() 2023-10-19 11:27:27 +01:00
testsuites feat: Add context to storagedriver.(Filewriter).Commit() 2023-10-19 11:27:27 +01:00
fileinfo.go format code with gofumpt 2022-11-03 22:48:20 +01:00
storagedriver.go feat: Add context to storagedriver.(Filewriter).Commit() 2023-10-19 11:27:27 +01:00
walk.go Pass the last paging flag to storage drivers 2023-08-29 11:27:42 +01:00
walk_test.go Pass the last paging flag to storage drivers 2023-08-29 11:27:42 +01:00