cnpmcore
Version:
14 lines (13 loc) • 799 B
TypeScript
import { Registry, Registry as RegistryEntity } from '../core/entity/Registry';
import { AbstractRepository } from './AbstractRepository';
import type { Registry as RegistryModel } from './model/Registry';
import { PageOptions, PageResult } from '../core/util/EntityUtil';
export declare class RegistryRepository extends AbstractRepository {
private readonly Registry;
listRegistries(page: PageOptions): Promise<PageResult<Registry>>;
findRegistry(name?: string): Promise<RegistryEntity | null>;
findRegistryByRegistryId(registryId: string): Promise<RegistryEntity | null>;
findRegistryByRegistryHost(host: string): Promise<RegistryEntity | null>;
saveRegistry(registry: Registry): Promise<RegistryModel | undefined>;
removeRegistry(registryId: string): Promise<void>;
}