UNPKG

cnpmcore

Version:

Private NPM Registry for Enterprise

37 lines (36 loc) 1.38 kB
import { Context } from 'egg'; import { TaskState } from '../../common/enum/Task.ts'; import { type SyncPackageTaskType } from '../typebox.ts'; import { AbstractController } from './AbstractController.ts'; export declare class PackageSyncController extends AbstractController { private packageSyncerService; private backgroundTaskHelper; private registryManagerService; private _executeTaskAsync; createSyncTask(ctx: Context, fullname: string, data: SyncPackageTaskType): Promise<{ ok: boolean; id: string; type: import("../../common/enum/Task.ts").TaskType; state: TaskState; }>; showSyncTask(fullname: string, taskId: string): Promise<{ ok: boolean; id: string; type: import("../../common/enum/Task.ts").TaskType; state: TaskState; logUrl: string | undefined; error: string | undefined; }>; showSyncTaskLog(ctx: Context, fullname: string, taskId: string): Promise<import("stream").Readable | undefined>; deprecatedCreateSyncTask(ctx: Context, 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; }>; }