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