Files
docmost/apps/server/src/integrations/storage/interfaces/storage-driver.interface.ts
T
Philipinho a821e37028 Refactoring
* Refactor workspace membership system
* Create setup endpoint
* Use Passport.js
* Several updates and fixes
2024-03-16 22:58:12 +00:00

20 lines
420 B
TypeScript

export interface StorageDriver {
upload(filePath: string, file: Buffer): Promise<void>;
read(filePath: string): Promise<Buffer>;
exists(filePath: string): Promise<boolean>;
getUrl(filePath: string): string;
getSignedUrl(filePath: string, expireIn: number): Promise<string>;
delete(filePath: string): Promise<void>;
getDriver(): any;
getDriverName(): string;
getConfig(): Record<string, any>;
}