21 lines
720 B
TypeScript
21 lines
720 B
TypeScript
import { TencentYunZone } from '../../types/TencentYun';
|
|
export declare class TencentYunInstance {
|
|
private accessKey;
|
|
private secretKey;
|
|
private COS;
|
|
constructor(accessKey: string, secretKey: string);
|
|
getUploadInfo(bucket: string, zone: TencentYunZone, key?: string): {
|
|
key: string | undefined;
|
|
accessKey: string;
|
|
policy: string;
|
|
signature: string;
|
|
uploadHost: string;
|
|
bucket: string;
|
|
keyTime: string;
|
|
algorithm: string;
|
|
};
|
|
private getSignInfo;
|
|
removeFile(srcBucket: string, zone: TencentYunZone, srcKey: string): Promise<any>;
|
|
isExistObject(srcBucket: string, zone: TencentYunZone, srcKey: string): Promise<boolean>;
|
|
}
|