WIP, abandoned: One-way backup tool with versioning and client-side encryption. Your precious data will never get lost!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
611 B

namespace EternalArrowBackup.ReportStorage.Contracts
{
using System.Threading;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
public interface IReportStorage
{
Task InitReport(string reportId);
Task CompleteReport(string reportId, bool isEmpty, bool hasErrors);
Task AddError(string reportId, string errorMessage);
Task AddFileInfo(string reportId, string directoryPath, string fileName, string hash, long size);
Task GetAllReports(ITargetBlock<IReportInfo> actionBlock, bool includeEmpty, CancellationToken ct);
}
}