All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m13s
14 lines
635 B
C#
14 lines
635 B
C#
|
|
using Pldpro.Web.Services.Models;
|
|
|
|
namespace Pldpro.Web.Services;
|
|
|
|
public interface IStorageService
|
|
{
|
|
Task<IEnumerable<BucketItem>> ListBucketsAsync(CancellationToken ct = default);
|
|
Task CreateBucketAsync(string bucketName, CancellationToken ct = default);
|
|
Task<IEnumerable<ObjectItem>> ListObjectsAsync(string bucket, CancellationToken ct = default);
|
|
Task UploadObjectAsync(string bucket, string key, Stream content, string contentType, CancellationToken ct = default);
|
|
Task<(Stream Stream, string ContentType, long? ContentLength)> GetObjectAsync(string bucket, string key, CancellationToken ct = default);
|
|
}
|