Skip to content

Commit 249cdb2

Browse files
committed
refactor: 移除健康检查模块及相关测试,简化代码结构
1 parent 41e1788 commit 249cdb2

10 files changed

Lines changed: 0 additions & 356 deletions

File tree

source/adapters/secret/env.test.ts

Lines changed: 0 additions & 79 deletions
This file was deleted.

source/adapters/secret/env.ts

Lines changed: 0 additions & 37 deletions
This file was deleted.

source/core/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export * from './interfaces.js'
1010

1111
// Core implementations
1212
export { YamlConfigScanner, createConfigScanner } from './scanner.js'
13-
export { EnvSecretResolver, createEnvSecretResolver } from '@adapters/secret/env'
1413
export { PostgreSQLDriver, createPostgreSQLDriver } from '@adapters/database/postgresql'
1514
export { S3StorageDriver, createS3StorageDriver } from '@adapters/storage/s3'
1615
export { DefaultBackupExecutor, createBackupExecutor } from './executor.js'

source/core/interfaces.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
import type { Readable, Writable } from 'node:stream'
33
import type {
4-
SecretRef,
54
BackupConfig,
65
BackupResult,
76
DumpOptions,
@@ -15,15 +14,6 @@ import type {
1514
// Re-export BackupError so implementations can use it
1615
export { BackupExecutionError as BackupError } from './executor.js'
1716

18-
export interface SecretResolver {
19-
/**
20-
* 解析密钥引用
21-
* @param ref 密钥引用
22-
* @returns 实际密钥值
23-
*/
24-
resolve(ref: SecretRef): Promise<string>
25-
}
26-
2717
export interface DatabaseDriver {
2818
/** 数据库类型 */
2919
readonly type: string

source/core/types.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,6 @@ export interface LocalConfig {
8484
path: string
8585
}
8686

87-
/**
88-
* 密钥引用
89-
*/
90-
export interface SecretRef {
91-
/** 可选类型标记,仅保留 env */
92-
type?: 'env'
93-
/** 环境变量名 */
94-
envVar?: string
95-
}
96-
9787
/**
9888
* 调度配置
9989
*/

source/health/index.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

source/health/server.test.ts

Lines changed: 0 additions & 97 deletions
This file was deleted.

source/health/server.ts

Lines changed: 0 additions & 81 deletions
This file was deleted.

source/health/types.ts

Lines changed: 0 additions & 34 deletions
This file was deleted.

source/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55

66
export * from './core/index.js'
77
export * from './retention/index.js'
8-
export * from './health/index.js'

0 commit comments

Comments
 (0)