MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / loadRecoverTimeout

Function loadRecoverTimeout

agent/app/service/backup_container.go:239–248  ·  view source on GitHub ↗
(timeout int)

Source from the content-addressed store, hash-verified

237}
238
239func loadRecoverTimeout(timeout int) time.Duration {
240 switch timeout {
241 case -1:
242 return 0
243 case 0:
244 return 3 * time.Hour
245 default:
246 return time.Duration(timeout) * time.Second
247 }
248}
249
250func isImportRecover(req dto.CommonRecover) bool {
251 return req.BackupRecordID == 0

Callers 2

handleContainerRecoverFunction · 0.85
handleComposeRecoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected