mirror of
https://github.com/docmost/docmost.git
synced 2026-05-17 14:54:05 +08:00
Refactoring
* Refactor workspace membership system * Create setup endpoint * Use Passport.js * Several updates and fixes
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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>;
|
||||
}
|
||||
Reference in New Issue
Block a user