Update
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m13s
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m13s
This commit is contained in:
20
Services/Storage/IStorageMetadataRepository.cs
Normal file
20
Services/Storage/IStorageMetadataRepository.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
namespace Pldpro.Web.Services;
|
||||
|
||||
public interface IStorageMetadataRepository
|
||||
{
|
||||
Task EnsureSchemaAsync(CancellationToken ct = default);
|
||||
Task UpsertAsync(string bucket, string fileName, string? path, string key, long? size, string? contentType, CancellationToken ct = default);
|
||||
Task<StorageObject?> TryGetAsync(string bucket, string fileName, CancellationToken ct = default);
|
||||
}
|
||||
|
||||
public sealed record StorageObject(
|
||||
long Id,
|
||||
string Bucket,
|
||||
string FileName,
|
||||
string? Path,
|
||||
string Key,
|
||||
long? Size,
|
||||
string? ContentType,
|
||||
DateTime CreatedUtc
|
||||
);
|
||||
Reference in New Issue
Block a user