AzureBlobStorage

class AzureBlobStorage(    val client: HttpClient,     val blobUri: String,     val sasToken: String,     existInStorage: Boolean) : BlobStorage

A BlobStorage implementation that interfaces with Azure Blob Storage

Parameters

existInStorage

Boolean flag is the file already exists in Azure

Constructors

Link copied to clipboard
fun AzureBlobStorage(    client: HttpClient,     blobUri: String,     sasToken: String,     existInStorage: Boolean)

Functions

Link copied to clipboard
open override fun download(savePath: String)

Downloads the blob from the storage to the specified path

Link copied to clipboard
open override fun upload(filePath: String)

Uploads the specified file to the storage

Properties

Link copied to clipboard
val blobUri: String

Uri of the blob

Link copied to clipboard
val client: HttpClient

Ktor HttpClient used to make the requests

Link copied to clipboard
open override var existsInStorage: Boolean

Boolean flag if there is a blob in the storage

Link copied to clipboard
val sasToken: String

Token used to authenticate with the blob operations