mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-11-09 04:49:01 +00:00
Support azure storage (#221)
* azure storage * azure uploader * azure uploader * azure uploader * fix
This commit is contained in:
1 parent
042ad9f629
commit
9d24ef6238
7 files changed
+478
-19
No files matched your search
@@ -1,3 +1,4 @@
|
||||
const AzureStorageUploadStream = require('./azure-storage');
|
||||
const GoogleStorageUploadStream = require('./google-storage');
|
||||
const S3MultipartUploadStream = require('./s3-multipart-upload-stream');
|
||||
|
||||
@@ -27,6 +28,9 @@ const getUploader = (Key, metadata, bucket_credential, logger) => {
|
||||
}
|
||||
};
|
||||
return new GoogleStorageUploadStream(logger, uploaderOpts);
|
||||
case 'azure':
|
||||
uploaderOpts.connection_string = bucket_credential.connection_string;
|
||||
return new AzureStorageUploadStream(logger, uploaderOpts);
|
||||
|
||||
default:
|
||||
logger.error(`unknown bucket vendor: ${bucket_credential.vendor}`);
|
||||
|
||||
Reference in new issue
Block a user