-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy pathDriverUpdateOptions.cs
More file actions
76 lines (63 loc) · 2.18 KB
/
DriverUpdateOptions.cs
File metadata and controls
76 lines (63 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
namespace GeneralUpdate.Drivelution.Abstractions.Configuration;
/// <summary>
/// 驱动更新配置选项
/// Driver update configuration options
/// </summary>
public class DrivelutionOptions
{
/// <summary>
/// 默认备份路径
/// Default backup path
/// </summary>
public string DefaultBackupPath { get; set; } = "./DriverBackups";
/// <summary>
/// 默认重试次数
/// Default retry count
/// </summary>
public int DefaultRetryCount { get; set; } = 3;
/// <summary>
/// 默认重试间隔(秒)
/// Default retry interval (seconds)
/// </summary>
public int DefaultRetryIntervalSeconds { get; set; } = 5;
/// <summary>
/// 默认超时时间(秒)
/// Default timeout (seconds)
/// </summary>
public int DefaultTimeoutSeconds { get; set; } = 300;
/// <summary>
/// 是否在调试模式下跳过签名验证
/// Skip signature validation in debug mode
/// </summary>
public bool DebugModeSkipSignature { get; set; } = false;
/// <summary>
/// 是否在调试模式下跳过哈希验证
/// Skip hash validation in debug mode
/// </summary>
public bool DebugModeSkipHash { get; set; } = false;
/// <summary>
/// 权限校验失败时是否强制终止
/// Force terminate on permission check failure
/// </summary>
public bool ForceTerminateOnPermissionFailure { get; set; } = true;
/// <summary>
/// 是否自动清理旧备份(保留最近N个)
/// Auto cleanup old backups (keep recent N)
/// </summary>
public bool AutoCleanupBackups { get; set; } = true;
/// <summary>
/// 保留的备份数量
/// Number of backups to keep
/// </summary>
public int BackupsToKeep { get; set; } = 5;
/// <summary>
/// 信任的证书指纹列表(用于签名验证)
/// Trusted certificate thumbprints (for signature validation)
/// </summary>
public List<string> TrustedCertificateThumbprints { get; set; } = new();
/// <summary>
/// 信任的GPG公钥列表(Linux用)
/// Trusted GPG public keys (for Linux)
/// </summary>
public List<string> TrustedGpgKeys { get; set; } = new();
}