mirror of
https://github.com/distribution/distribution.git
synced 2025-09-17 15:50:20 +00:00
storage/driver: plumb contexts into factories
...and driver constructors when applicable. Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
@@ -1377,7 +1377,7 @@ const (
|
||||
repositoryWithGenericStorageError = "genericstorageerr"
|
||||
)
|
||||
|
||||
func (factory *storageManifestErrDriverFactory) Create(parameters map[string]interface{}) (storagedriver.StorageDriver, error) {
|
||||
func (factory *storageManifestErrDriverFactory) Create(ctx context.Context, parameters map[string]interface{}) (storagedriver.StorageDriver, error) {
|
||||
// Initialize the mock driver
|
||||
errGenericStorage := errors.New("generic storage error")
|
||||
return &mockErrorDriver{
|
||||
|
Reference in New Issue
Block a user