Skip to content

Commit

Permalink
Merge 1342531 into ac161c2
Browse files Browse the repository at this point in the history
  • Loading branch information
iroelperez authored Oct 4, 2023
2 parents ac161c2 + 1342531 commit 6917e01
Show file tree
Hide file tree
Showing 45 changed files with 6,728 additions and 602 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Datahub.Core.Data;

namespace Datahub.Application.Services;

public interface IProjectStorageConfigurationService
{
Task<string> GetProjectStorageAccountKey(string projectAcronym);
string GetProjectStorageAccountName(string projectAcronym);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Datahub.Core.Data;

namespace Datahub.Application.Services.Storage;

public interface ICloudStorageManager
{
Task<List<string>> GetContainersAsync();

Task<Uri> GenerateSasTokenAsync(string container, int days);

Task<DfsPage> GetDfsPagesAsync(string container, string folderPath, string? continuationToken = default);

Task<bool> FileExistsAsync(string container, string filePath);

Task<Uri> DownloadFileAsync(string container, string filePath);
Task<bool> UploadFileAsync(string container, FileMetaData file, Action<long> progess);

Task<bool> DeleteFileAsync(string container, string filePath);
Task<bool> RenameFileAsync(string container, string oldFilePath, string newFilePath);

Task<bool> DeleteFolderAsync(string container, string folderPath);

Task<bool> CreateFolderAsync(string container, string currentWorkingDirectory, string folderName);

Task<StorageMetadata> GetStorageMetadataAsync(string container);

bool AzCopyEnabled { get; }
bool DatabrickEnabled { get; }
}

public record DfsPage(List<string> Folders, List<FileMetaData> Files, string ContinuationToken);
Loading

0 comments on commit 6917e01

Please sign in to comment.