import { StorageBucketApi } from "https://deno.land/x/storagee@1.3.0/src/lib/StorageBucketApi.ts";
Methods
createBucket(id: string, options?: { public: boolean; }): Promise<{ data: string | null; error: Error | null; }>
Creates a new Storage bucket
deleteBucket(id: string): Promise<{ data: { message: string; } | null; error: Error | null; }>
Deletes an existing bucket. A bucket can't be deleted with existing objects inside it.
You must first empty()
the bucket.
emptyBucket(id: string): Promise<{ data: { message: string; } | null; error: Error | null; }>
Removes all objects inside a single bucket.
Retrieves the details of an existing Storage bucket.
listBuckets(): Promise<{ data: Bucket[] | null; error: Error | null; }>
Retrieves the details of all Storage buckets within an existing product.
updateBucket(id: string, options: { public: boolean; }): Promise<{ data: { message: string; } | null; error: Error | null; }>
Updates a new Storage bucket