Initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace RobotNet10.StorageManager;
|
||||
|
||||
public interface IStorageManager: IDisposable
|
||||
{
|
||||
Task UploadAsync(string path, string objectName, Stream data, long size, string contentType, CancellationToken cancellationToken);
|
||||
Task<string> GetUrlAsync(string path, string objectName, CancellationToken cancellationToken);
|
||||
Task<Stream> GetFileAsync(string path, string objectName, CancellationToken cancellationToken);
|
||||
Task DeleteAsync(string path, string objectName, CancellationToken cancellationToken);
|
||||
Task<bool> ExistsAsync(string path, string objectName, CancellationToken cancellationToken);
|
||||
Task<List<string>> ListAsync(string path, bool recursive, CancellationToken cancellationToken);
|
||||
Task CopyAsync(string sourcePath, string destPath, string objectName, CancellationToken cancellationToken);
|
||||
Task<StorageMetadata> GetMetadataAsync(string path, string objectName, CancellationToken cancellationToken);
|
||||
}
|
||||
Reference in New Issue
Block a user