0.4.0 • Published 5 years ago
@ethronpi/blob-storage v0.4.0
@ethronpi/blob-storage
Ethron plugin for Azure Blob Storage.
Developed in Dogma, compiled to JavaScript.
Engineered in Valencia, Spain, EU by EthronLabs.
Use
plugins:
- plugin: "@ethronpi/blob-storage"
name: blob
args:
connectionString: connection stringconnectionString(string), the connection string to use.
Service tasks
ping
Ping the service.
[blob.ping]Container tasks
createContainer
Create a blob container.
[blob.createContainer, container, opts]container(text, required), the container name.opts(object), same as ContainerCreateOptions. Additional option:ifNotExists(boolean), whentrue, no error raised if the container exists.
dropContainer
Delete a blob container. If the container doesn't exist, no error raised.
[blob.dropContainer, container, opts]setContainerMetadata
Set metadata to a container.
[blob.setContainerMetadata, container, metadata]Blob tasks
upload
Upload a file to a container.
[blob.upload, file, container, httpHeaders, metadata]download
Download a blob from a container in an existing destination path.
[blob.download, blob, container, dst]setMetadata
Set metadata to blob.
[blob.setMetadata, blob, container, metadata]setAccessTier
Set the access tier to a blob.
[blob.setAccessTier, blob, container, accessTier]accessTier(string), the access tier to set:Archive,CoolorHot.
createSnapshot
Create snapshot, that is, a read-only version of a blob at this point in time.
[blob.createSnapshot, blob, container, opts]opts(object), same as BlobCreateSnapshotOptions.