feat(files): 大文件分片上传、停服解压 zip 先列冲突再覆盖、文件和文件夹可下载;导出和下载不再带出 RCON 密码与转发密钥
This commit is contained in:
76 files changed
+10542
-569
No files matched your search
@@ -230,11 +230,15 @@ func jobOutcome(j *batchv1.Job) (AsyncJob, bool) {
|
||||
case jobManagedByRestore:
|
||||
kind = "restore"
|
||||
case jobManagedByExport:
|
||||
// As maintenance.JobKind reads it: only a Job that says it reads a
|
||||
// backup is not a world export.
|
||||
kind = "export_world"
|
||||
if j.Labels[maintenance.LabelExportMode] == maintenance.ExportModeBackup {
|
||||
// As maintenance.JobKind reads it: a Job that names no mode this build
|
||||
// knows reads as a world export, the kind that holds the world.
|
||||
switch j.Labels[maintenance.LabelExportMode] {
|
||||
case maintenance.ExportModeBackup:
|
||||
kind = "export_backup"
|
||||
case maintenance.ExportModeFiles:
|
||||
kind = "export_files"
|
||||
default:
|
||||
kind = "export_world"
|
||||
}
|
||||
default:
|
||||
return AsyncJob{}, false
|
||||
|
||||
Reference in new issue
Block a user