cnpmcore
Version:
Private NPM Registry for Enterprise
21 lines (20 loc) • 1.31 kB
TypeScript
import type { Static } from '@eggjs/typebox-validate/typebox';
import { Context } from 'egg';
import type { QueryPageOptions } from '../typebox.ts';
import { AbstractController } from './AbstractController.ts';
export declare class ProxyCacheController extends AbstractController {
private readonly proxyCacheRepository;
private readonly proxyCacheService;
private readonly cacheService;
listProxyCache(pageSize: Static<typeof QueryPageOptions>['pageSize'], pageIndex: Static<typeof QueryPageOptions>['pageIndex']): Promise<import("../../core/util/EntityUtil.ts").PageResult<import("../../core/entity/ProxyCache.ts").ProxyCache>>;
showProxyCaches(pageSize: Static<typeof QueryPageOptions>['pageSize'], pageIndex: Static<typeof QueryPageOptions>['pageIndex'], fullname: string): Promise<import("../../core/util/EntityUtil.ts").PageResult<import("../../core/entity/ProxyCache.ts").ProxyCache>>;
refreshProxyCaches(fullname: string): Promise<{
ok: boolean;
tasks: import("../../core/entity/Task.ts").CreateUpdateProxyCacheTask[];
}>;
removeProxyCaches(fullname: string): Promise<{
ok: boolean;
result: import("leoric").Collection<import("../../repository/model/ProxyCache.ts").ProxyCache>;
}>;
truncateProxyCaches(ctx: Context): Promise<void>;
}