feat(repositories): azure blob storage

This commit is contained in:
Nicolas Meienberger
2025-11-10 21:07:12 +01:00
parent e98c0af8ca
commit ff7f6ffad9
5 changed files with 172 additions and 6 deletions

View File

@@ -738,6 +738,19 @@ export type ListRepositoriesResponses = {
endpoint: string;
secretAccessKey: string;
}
| {
accountKey: string;
accountName: string;
backend: "azure";
container: string;
endpointSuffix?: string;
}
| {
backend: "gcs";
bucket: string;
credentialsJson: string;
projectId: string;
}
| {
backend: "local";
name: string;
@@ -748,7 +761,7 @@ export type ListRepositoriesResponses = {
lastError: string | null;
name: string;
status: "error" | "healthy" | "unknown" | null;
type: "local" | "s3";
type: "azure" | "gcs" | "local" | "s3";
updatedAt: number;
}>;
};
@@ -765,6 +778,19 @@ export type CreateRepositoryData = {
endpoint: string;
secretAccessKey: string;
}
| {
accountKey: string;
accountName: string;
backend: "azure";
container: string;
endpointSuffix?: string;
}
| {
backend: "gcs";
bucket: string;
credentialsJson: string;
projectId: string;
}
| {
backend: "local";
name: string;
@@ -835,6 +861,19 @@ export type GetRepositoryResponses = {
endpoint: string;
secretAccessKey: string;
}
| {
accountKey: string;
accountName: string;
backend: "azure";
container: string;
endpointSuffix?: string;
}
| {
backend: "gcs";
bucket: string;
credentialsJson: string;
projectId: string;
}
| {
backend: "local";
name: string;
@@ -845,7 +884,7 @@ export type GetRepositoryResponses = {
lastError: string | null;
name: string;
status: "error" | "healthy" | "unknown" | null;
type: "local" | "s3";
type: "azure" | "gcs" | "local" | "s3";
updatedAt: number;
};
};
@@ -1030,6 +1069,19 @@ export type ListBackupSchedulesResponses = {
endpoint: string;
secretAccessKey: string;
}
| {
accountKey: string;
accountName: string;
backend: "azure";
container: string;
endpointSuffix?: string;
}
| {
backend: "gcs";
bucket: string;
credentialsJson: string;
projectId: string;
}
| {
backend: "local";
name: string;
@@ -1040,7 +1092,7 @@ export type ListBackupSchedulesResponses = {
lastError: string | null;
name: string;
status: "error" | "healthy" | "unknown" | null;
type: "local" | "s3";
type: "azure" | "gcs" | "local" | "s3";
updatedAt: number;
};
repositoryId: string;
@@ -1216,6 +1268,19 @@ export type GetBackupScheduleResponses = {
endpoint: string;
secretAccessKey: string;
}
| {
accountKey: string;
accountName: string;
backend: "azure";
container: string;
endpointSuffix?: string;
}
| {
backend: "gcs";
bucket: string;
credentialsJson: string;
projectId: string;
}
| {
backend: "local";
name: string;
@@ -1226,7 +1291,7 @@ export type GetBackupScheduleResponses = {
lastError: string | null;
name: string;
status: "error" | "healthy" | "unknown" | null;
type: "local" | "s3";
type: "azure" | "gcs" | "local" | "s3";
updatedAt: number;
};
repositoryId: string;
@@ -1383,6 +1448,19 @@ export type GetBackupScheduleForVolumeResponses = {
endpoint: string;
secretAccessKey: string;
}
| {
accountKey: string;
accountName: string;
backend: "azure";
container: string;
endpointSuffix?: string;
}
| {
backend: "gcs";
bucket: string;
credentialsJson: string;
projectId: string;
}
| {
backend: "local";
name: string;
@@ -1393,7 +1471,7 @@ export type GetBackupScheduleForVolumeResponses = {
lastError: string | null;
name: string;
status: "error" | "healthy" | "unknown" | null;
type: "local" | "s3";
type: "azure" | "gcs" | "local" | "s3";
updatedAt: number;
};
repositoryId: string;