文件名称:storage-abstraction:提供用于与存储进行交互的抽象层; 存储可以是本地存储或在云中
文件大小:202KB
文件格式:ZIP
更新时间:2024-06-06 02:44:06
nodejs aws storage amazon aws-s3
存储抽象 提供用于与存储进行交互的抽象层; 该存储可以是本地文件系统或云存储。 当前支持本地磁盘存储,Backblaze B2,Google Cloud和Amazon S3以及兼容的云服务。 由于API仅提供基本的存储操作(请参阅),因此该API与云无关。 例如,这意味着您可以使用本地磁盘上的存储来开发应用程序,然后在生产环境中使用Google Cloud或Amazon S3而无需更改任何代码。 目录 createBucket selectBucket clearBucket deleteBucket listBuckets getSelectedBucket addFileFromPath addFileFromBuffer addFileFromReadable getFileAsReadable removeFile sizeOf 文件已存在 listFil
【文件预览】:
storage-abstraction-master
----.gitignore(94B)
----tsconfig.json(683B)
----README.md(27KB)
----tests()
--------test.ts(5KB)
--------util.ts(1KB)
--------test.jasmine.ts(11KB)
--------test-config-local.jasmine.ts(6KB)
--------test-config-s3.jasmine.ts(6KB)
--------keyFile.json(100B)
--------test-config-b2.jasmine.ts(2KB)
--------data()
--------test-config-gcs.jasmine.ts(2KB)
----LICENSE(1KB)
----package.json(4KB)
----keyFile.json(100B)
----src()
--------Storage.ts(4KB)
--------util.ts(5KB)
--------types.ts(7KB)
--------AdapterAmazonS3.ts(7KB)
--------AdapterGoogleCloudStorage.ts(9KB)
--------index.ts(420B)
--------AbstractAdapter.ts(3KB)
--------template_functional.ts(3KB)
--------AdapterBackblazeB2.ts(10KB)
--------AdapterLocal.ts(8KB)
--------AdapterBackblazeB2F.ts(3KB)
--------template_class.ts(9KB)
----changelog.md(3KB)
----spec()
--------support()
----publish()
--------package.json(1003B)
--------.npmignore(0B)
----.env.default(843B)
----yarn.lock(115KB)
----package-lock.json(132KB)