UNPKG

1.06 kBTypeScriptView Raw
1interface IBaseOptions {
2 envId: string;
3}
4interface IHostingFileOptions extends IBaseOptions {
5 filePath: string;
6 cloudPath: string;
7 isDir: boolean;
8 onProgress?: (data: any) => void;
9 onFileFinish?: (...args: any[]) => void;
10}
11interface IHostingCloudOptions extends IBaseOptions {
12 cloudPath: string;
13 isDir: boolean;
14}
15export declare function getHostingInfo(options: IBaseOptions): Promise<any>;
16export declare function enableHosting(options: IBaseOptions): Promise<{
17 code: number;
18 requestId: any;
19}>;
20export declare function hostingList(options: IBaseOptions): Promise<import("@cloudbase/manager-node/types/interfaces").IListFileInfo[]>;
21export declare function destroyHosting(options: IBaseOptions): Promise<{
22 code: number;
23 requestId: any;
24}>;
25export declare function hostingDeploy(options: IHostingFileOptions): Promise<void>;
26export declare function hostingDelete(options: IHostingCloudOptions): Promise<void>;
27export declare function walkLocalDir(envId: string, dir: string): Promise<string[]>;
28export {};