19 lines
667 B
TypeScript
19 lines
667 B
TypeScript
import { ALiYunZone } from '../../types/ALiYun';
|
|
import OSS from 'ali-oss';
|
|
export declare class ALiYunInstance {
|
|
private accessKey;
|
|
private secretKey;
|
|
constructor(accessKey: string, secretKey: string);
|
|
getUploadInfo(bucket: string, zone: ALiYunZone, key?: string): {
|
|
key: string | undefined;
|
|
accessKey: string;
|
|
policy: string;
|
|
signature: string;
|
|
uploadHost: string;
|
|
bucket: string;
|
|
};
|
|
private getSignInfo;
|
|
removeFile(srcBucket: string, zone: ALiYunZone, srcKey: string): Promise<OSS.DeleteResult>;
|
|
isExistObject(srcBucket: string, zone: ALiYunZone, srcKey: string): Promise<boolean>;
|
|
}
|