mirror of
https://github.com/diced/zipline.git
synced 2026-01-09 03:41:41 -08:00
* - fix: use oauth's user id instead of username - feat: add login only config for oauth * Addresses tomato's concerns * fix: catch same account on different user * Add storage cleaning Co-authored-by: dicedtomato <diced@users.noreply.github.com> * Update src/components/pages/Manage/index.tsx Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com> * Update src/components/pages/Manage/index.tsx Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com> Co-authored-by: dicedtomato <diced@users.noreply.github.com> Co-authored-by: dicedtomato <35403473+diced@users.noreply.github.com>
13 lines
430 B
TypeScript
13 lines
430 B
TypeScript
import { Readable } from 'stream';
|
|
|
|
export abstract class Datasource {
|
|
public name: string;
|
|
|
|
public abstract save(file: string, data: Buffer): Promise<void>;
|
|
public abstract delete(file: string): Promise<void>;
|
|
public abstract clear(): Promise<void>;
|
|
public abstract size(file: string): Promise<number>;
|
|
public abstract get(file: string): Readable | Promise<Readable>;
|
|
public abstract fullSize(): Promise<number>;
|
|
}
|