From 2d62a4027add9ed41920784cf10bac0b6486a84b 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 (cherry picked from commit 5b3be398701517100f417b4949bba6b7c824a7df) 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 77b821f8..5f2dd753 100644 --- a/registry/storage/driver/s3-aws/s3.go +++ b/registry/storage/driver/s3-aws/s3.go @@ -137,6 +137,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