aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/core/storage/BlobStorage.scala
diff options
context:
space:
mode:
authorArthur Rand <arand@ucsc.edu>2018-04-18 10:47:13 -0700
committerGitHub <noreply@github.com>2018-04-18 10:47:13 -0700
commit6e13eb85a862bf8c8a20bc547f7eee9a85641c5c (patch)
treeb94719b5a2b53a6059e487e167c334089955e885 /src/main/scala/xyz/driver/core/storage/BlobStorage.scala
parent979d16d518b05c9f702bb526388bd278b9c51cee (diff)
downloaddriver-core-6e13eb85a862bf8c8a20bc547f7eee9a85641c5c.tar.gz
driver-core-6e13eb85a862bf8c8a20bc547f7eee9a85641c5c.tar.bz2
driver-core-6e13eb85a862bf8c8a20bc547f7eee9a85641c5c.zip
[API-1498] add url method to blobStorage (#157)v1.8.24
* add url method to blobStorage * typo * typo * address comments * address comments * remove * scalafmt
Diffstat (limited to 'src/main/scala/xyz/driver/core/storage/BlobStorage.scala')
-rw-r--r--src/main/scala/xyz/driver/core/storage/BlobStorage.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/scala/xyz/driver/core/storage/BlobStorage.scala b/src/main/scala/xyz/driver/core/storage/BlobStorage.scala
index b12230e..ee6c5d7 100644
--- a/src/main/scala/xyz/driver/core/storage/BlobStorage.scala
+++ b/src/main/scala/xyz/driver/core/storage/BlobStorage.scala
@@ -38,6 +38,11 @@ trait BlobStorage {
/** Delete a stored value. */
def delete(name: String): Future[String]
+ /**
+ * Path to specified resource. Checks that the resource exists and returns None if
+ * it is not found. Depending on the implementation, may throw.
+ */
+ def url(name: String): Future[Option[URL]]
}
trait SignedBlobStorage extends BlobStorage {