From 5b3be398701517100f417b4949bba6b7c824a7df Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 21 Aug 2023 13:54:13 +0200 Subject: [PATCH] s3: add interface assertion This was added for the other drivers in 6b388b1ba604bf5b970bbb41878f97cc3fc93376, but it missed the s3 storage driver. Signed-off-by: Sebastiaan van Stijn --- registry/storage/driver/s3-aws/s3.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/registry/storage/driver/s3-aws/s3.go b/registry/storage/driver/s3-aws/s3.go index 8753b3455..92f4af07b 100644 --- a/registry/storage/driver/s3-aws/s3.go +++ b/registry/storage/driver/s3-aws/s3.go @@ -151,6 +151,8 @@ func (factory *s3DriverFactory) Create(parameters map[string]interface{}) (stora return FromParameters(parameters) } +var _ storagedriver.StorageDriver = &driver{} + type driver struct { S3 *s3.S3 Bucket string