From 4ea929422385bf7d6ca540d72118c176eadc3456 Mon Sep 17 00:00:00 2001 From: Erik Carlsson Date: Mon, 20 Jan 2025 11:41:57 +0100 Subject: [PATCH] Fix golang bucket refs for upload/download URLs. --- runtimes/go/storage/objects/refs.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtimes/go/storage/objects/refs.go b/runtimes/go/storage/objects/refs.go index 5321b4cd81..e56a8f7d0f 100644 --- a/runtimes/go/storage/objects/refs.go +++ b/runtimes/go/storage/objects/refs.go @@ -16,6 +16,7 @@ type BucketPerms interface { // all the read-write permissions. type ReadWriter interface { Uploader + SignedUploader Downloader SignedDownloader Remover @@ -57,7 +58,7 @@ type Uploader interface { type SignedUploader interface { // SignedUploadURL returns a signed URL that can be used to upload directly to // storage, without any other authentication. - SignedUploadURL(ctx context.Context, object string, options ...UploadURLOption) (string, error) + SignedUploadURL(ctx context.Context, object string, options ...UploadURLOption) (*SignedUploadURL, error) perms() } @@ -97,7 +98,7 @@ type Downloader interface { type SignedDownloader interface { // SignedDownloadURL returns a signed URL that can be used to download directly // from storage, without any other authentication. - SignedDownloadURL(ctx context.Context, object string, options ...DownloadURLOption) (string, error) + SignedDownloadURL(ctx context.Context, object string, options ...DownloadURLOption) (*SignedDownloadURL, error) perms() }