chore: auto-commit 2026-08-12 10:00 [Heimdall] docs/MASTER_SPECIFICATION.md, docs/README.md, docs/codeproject-ai.md, docs/signalr-usage.md, docs/specs.md…

This commit is contained in:
Arnaud Dartois committed 2026-08-12 10:00:44 +02:00
1 parent 381410510f
commit 2e188e4dda
7 files changed
+82 -466

No files matched your search

@@ -0,0 +1,31 @@
namespace Heimdall.Application.Common;
/// <summary>
/// Object storage abstraction (spec Phase 8). Implemented by the local
/// filesystem provider and the S3-compatible provider (Alarik/MinIO).
/// Uploads use a staging prefix for atomicity: write to staging, then
/// move to the final key (crash → no orphan visible).
/// </summary>
public interface IStorageProvider
{
/// <summary>Provider identifier (Local / S3).</summary>
string Provider { get; }
/// <summary>True when the provider is configured and usable.</summary>
bool IsConfigured { get; }
/// <summary>Upload bytes to a key (staging → final move, atomic).</summary>
Task UploadAsync(string key, Stream content, string contentType, CancellationToken ct = default);
/// <summary>Open a stream for reading a stored object. Null when missing.</summary>
Task<Stream?> DownloadAsync(string key, CancellationToken ct = default);
/// <summary>Delete a single object. No-op when missing.</summary>
Task DeleteAsync(string key, CancellationToken ct = default);
/// <summary>Delete a batch of objects (S3: 1000/appel).</summary>
Task DeleteBatchAsync(IReadOnlyCollection<string> keys, CancellationToken ct = default);
/// <summary>Check reachability/health of the backend.</summary>
Task<bool> HealthCheckAsync(CancellationToken ct = default);
}
@@ -6,6 +6,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="AWSSDK.S3" Version="4.0.102.1" />
<PackageReference Include="Hangfire" Version="1.8.17" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.8" />