cnpmcore
Version:
38 lines (37 loc) • 1.42 kB
TypeScript
/// <reference types="node" />
import { EggContext } from '@eggjs/tegg';
import { AbstractController } from './AbstractController';
import { TaskState } from '../../common/enum/Task';
import { SyncPackageTaskType } from '../typebox';
export declare class PackageSyncController extends AbstractController {
private packageSyncerService;
private backgroundTaskHelper;
private registryManagerService;
private _executeTaskAsync;
createSyncTask(ctx: EggContext, fullname: string, data: SyncPackageTaskType): Promise<{
ok: boolean;
id: string;
type: import("../../common/enum/Task").TaskType;
state: TaskState;
}>;
showSyncTask(fullname: string, taskId: string): Promise<{
ok: boolean;
id: string;
type: import("../../common/enum/Task").TaskType;
state: TaskState;
logUrl: string | undefined;
error: string | undefined;
}>;
showSyncTaskLog(ctx: EggContext, fullname: string, taskId: string): Promise<import("stream").Readable | undefined>;
deprecatedCreateSyncTask(ctx: EggContext, fullname: string, nodeps: string): Promise<{
ok: boolean;
logId: string;
}>;
deprecatedShowSyncTask(fullname: string, taskId: string): Promise<{
ok: boolean;
syncDone: boolean;
log: string;
logUrl: string | undefined;
error: string | undefined;
}>;
}