All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m13s
21 lines
583 B
C#
21 lines
583 B
C#
|
|
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
|
|
);
|