11 lines
571 B
C#
11 lines
571 B
C#
namespace StellaOps.Evidence.Budgets;
|
|
|
|
public interface IEvidenceRepository
|
|
{
|
|
Task<IReadOnlyList<EvidenceItem>> GetByScanIdAsync(Guid scanId, CancellationToken ct);
|
|
Task<IReadOnlyList<EvidenceItem>> GetByScanIdAndTypeAsync(Guid scanId, EvidenceType type, CancellationToken ct);
|
|
Task<IReadOnlyList<EvidenceItem>> GetOlderThanAsync(RetentionTier tier, DateTimeOffset cutoff, CancellationToken ct);
|
|
Task MoveToTierAsync(Guid itemId, RetentionTier tier, CancellationToken ct);
|
|
Task UpdateContentAsync(Guid itemId, byte[] content, CancellationToken ct);
|
|
}
|