-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.ts
More file actions
39 lines (35 loc) · 1.17 KB
/
mod.ts
File metadata and controls
39 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* BucketFS - A Cloud Storage Abstraction Layer
*
* BucketFS provides a interface for working with multiple cloud storage providers,
* including AWS S3, Cloudflare R2, and Google Cloud Storage (GCS). It offers a consistent
* API that abstracts away the complexities and differences between various storage services.
*
* Features:
* - Multi-provider support
* - Multiple bucket management
*
* Use Cases:
* - Cloud storage abstraction in applications
* - Persistent storage in serverless environments (e.g., Deno Deploy or Cloudflare Workers)
* - Multi-cloud storage strategies
* - Simplified storage operations across different providers
*/
// Types
export type { BucketConfig, BucketInstance, StorageProvider } from "./src/bucketConfig.ts";
export type { CacheOptions } from "./src/cache.ts";
// Configuration functions
export { getBucket, initBucket, listBuckets, resetBucket } from "./src/bucketConfig.ts";
// File operations
export {
checkBucketAuth,
deleteFile,
fileExists,
listFiles,
moveFile,
readBuffer,
readFile,
writeFile,
} from "./src/bucketCore.ts";
// Cache operations
export { clearCache, getCacheStats } from "./src/cache.ts";