mirror of
https://github.com/docmost/docmost.git
synced 2026-05-13 02:34:05 +08:00
a821e37028
* Refactor workspace membership system * Create setup endpoint * Use Passport.js * Several updates and fixes
20 lines
420 B
TypeScript
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>;
|
|
}
|