-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
6,728 additions
and
602 deletions.
There are no files selected for viewing
26 changes: 0 additions & 26 deletions
26
Portal/src/Datahub.Application/Services/IProjectDataRetrievalService.cs
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
Portal/src/Datahub.Application/Services/IProjectStorageConfigurationService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
31 changes: 31 additions & 0 deletions
31
Portal/src/Datahub.Application/Services/Storage/ICloudStorageManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Oops, something went wrong.