-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor StorageClient protocol extension to support signing URLs
[Re #1543] * We'll need to sign the URLs for files stored in private buckets so the FE can download the files without the need ask the user to login into GC.
- Loading branch information
1 parent
f82f44a
commit 4980c24
Showing
3 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
(ns gpml.boundary.port.storage-client) | ||
|
||
(defprotocol StorageClientDeleteBlob | ||
"This proctocol is an extension for | ||
the [[clj-gcp.storage.core/StorageClient]] to have a delete | ||
operation implementation." | ||
(defprotocol StorageClient | ||
"This is an extension for the [[clj-gcp.storage.core/StorageClient]] | ||
to have a delete operation implementation." | ||
(get-blob-signed-url [this bucket-name blob-name url-lifespan]) | ||
(delete-blob [this bucket-name blob-name])) |