mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
chore:
This commit is contained in:
12
packages/plugins/plugin-lib/src/oss/api.ts
Normal file
12
packages/plugins/plugin-lib/src/oss/api.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export type OssClientDeleteReq = {
|
||||
key: string;
|
||||
beforeDays?: number;
|
||||
};
|
||||
|
||||
export interface IOssClient {
|
||||
upload(key: string, content: Buffer | string): Promise<void>;
|
||||
|
||||
download(key: string, savePath?: string): Promise<void>;
|
||||
|
||||
delete(opts: OssClientDeleteReq): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user