@lxdhub/dbsync
Version:
Display, search and copy LXD-images using a web interface.
14 lines (13 loc) • 532 B
TypeScript
import { SyncRun } from '@lxdhub/db';
import { Repository } from 'typeorm';
export declare class SyncRunService {
private readonly syncRunRepository;
constructor(syncRunRepository: Repository<SyncRun>);
private findOne;
createSyncRun(): Promise<SyncRun>;
startSyncRun(id: number): Promise<SyncRun>;
failSyncRun(id: number, message: string): Promise<SyncRun>;
finishSyncRun(id: number): Promise<SyncRun>;
resetAllSyncStates(): Promise<SyncRun[]>;
getCurrentlyRunningSyncs(): Promise<SyncRun[]>;
}