1.2.3 • Published 3 months ago

@akadenia/azure v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Classes

QueueStorage

QueueStorage - A class that contains azure queue storage helpers

Kind: global class

queueStorage.getQueueClient() ⇒ QueueClient

Kind: instance method of QueueStorage Returns: QueueClient - - A QueueClient object

queueStorage.sendMessage(message) ⇒ Promise.<any>

Kind: instance method of QueueStorage Returns: Promise.<any> - - The response from the queue

ParamTypeDescription
messagestringThe message to send

BlobStorage

BlobStorage - A class that contains azure blob storage helpers

Kind: global class

blobStorage.getBlobServiceUrl() ⇒ BlobServiceClient

Kind: instance method of BlobStorage Returns: BlobServiceClient - - A BlobServiceClient object

blobStorage.listBlobs(containerName, blobNamePrefix) ⇒ Promise.<Array.<BlobItem>>

Kind: instance method of BlobStorage Returns: Promise.<Array.<BlobItem>> - - An array of BlobItem objects

ParamTypeDescription
containerNamestringThe name of the container to check
blobNamePrefixstringThe prefix of the blob name

blobStorage.downloadBlob(containerName, blobName) ⇒ Promise.<Buffer>

Kind: instance method of BlobStorage Returns: Promise.<Buffer> - - A Buffer object

ParamTypeDescription
containerNamestringThe name of the container to download from
blobNamestringThe name of the blob to download

blobStorage.blobExists(containerName, blobName) ⇒ Promise.<boolean>

Kind: instance method of BlobStorage Returns: Promise.<boolean> - - A boolean indicating whether or not the blob exists

ParamTypeDescription
containerNamestringThe name of the container to check
blobNamestringThe name of the blob to check

blobStorage.upload(containerName, blobName, body, contentLength, contentType) ⇒ Promise.<boolean>

Kind: instance method of BlobStorage Returns: Promise.<boolean> - - A boolean indicating whether or not the blob was successfully uploaded

ParamTypeDescription
containerNamestringThe name of the container to upload to
blobNamestringThe name of the blob to upload
bodyHttpRequestBodyThe body of the blob
contentLengthstringThe content length
contentTypestringThe content type of the blob

blobStorage.uploadData(containerName, blobName, data, bufferSize) ⇒ Promise.<boolean>

Kind: instance method of BlobStorage Returns: Promise.<boolean> - - A boolean indicating whether or not the blob was successfully uploaded

ParamTypeDescription
containerNamestringThe name of the container to upload to
blobNamestringThe name of the blob to upload
dataBufferBlobArrayBufferArrayBufferView
bufferSizeSize of every buffer allocated, also the block size in the uploaded block blob. Default value is 8MB

blobStorage.uploadStream(containerName, blobName, stream, bufferSize) ⇒ Promise.<boolean>

Kind: instance method of BlobStorage Returns: Promise.<boolean> - - A boolean indicating whether or not the blob was successfully uploaded

ParamTypeDescription
containerNamestringThe name of the container to upload to
blobNamestringThe name of the blob to upload
streamNode.js Readable stream
bufferSizeSize of every buffer allocated, also the block size in the uploaded block blob. Default value is 8MB

blobStorage.generateSASUrl(containerName, blobName, sasOptions) ⇒ string

Kind: instance method of BlobStorage Returns: string - -The URL for the blob.

ParamTypeDescription
containerNamestringThe name of the blob container.
blobNamestringThe name of the blob.
sasOptionsSASOptionsThe options used for generating the SAS query.