feat(ks3): add KS3 object storage support

Add Kingsoft Cloud KS3 as a supported storage provider, including
  backend service implementation, storage config UI, and provider
  scheme recognition throughout the codebase.
This commit is contained in:
ChenRussell
2026-05-01 19:20:25 +08:00
committed by lyingbug
parent 6f3679716f
commit 42348eb40d
16 changed files with 523 additions and 15 deletions
+11 -2
View File
@@ -169,7 +169,7 @@ export function reconnectDocReader(addr: string): Promise<ParserEnginesResponse
// ---- 存储引擎配置(租户级,供文档/图片存储与 docreader 使用) ----
export interface StorageEngineConfig {
default_provider: string // "local" | "minio" | "cos" | "tos" | "s3" | "oss"
default_provider: string // "local" | "minio" | "cos" | "tos" | "s3" | "oss" | "ks3"
local: { path_prefix: string }
minio: { mode: string; endpoint: string; access_key_id: string; secret_access_key: string; bucket_name: string; use_ssl: boolean; path_prefix: string }
cos: {
@@ -207,6 +207,14 @@ export interface StorageEngineConfig {
temp_bucket_name: string
temp_region: string
}
ks3: {
endpoint: string
region: string
access_key: string
secret_key: string
bucket_name: string
path_prefix: string
}
}
export interface StorageEngineStatusItem {
@@ -235,12 +243,13 @@ export function getStorageEngineStatus(): Promise<{ data: GetStorageEngineStatus
}
export interface StorageCheckRequest {
provider: string // "minio" | "cos" | "tos" | "s3" | "oss"
provider: string // "minio" | "cos" | "tos" | "s3" | "oss" | "ks3"
minio?: StorageEngineConfig['minio']
cos?: StorageEngineConfig['cos']
tos?: StorageEngineConfig['tos']
s3?: StorageEngineConfig['s3']
oss?: StorageEngineConfig['oss']
ks3?: StorageEngineConfig['ks3']
}
export interface StorageCheckResponse {