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

Function isImportRecover

agent/app/service/backup_container.go:250–252  ·  view source on GitHub ↗
(req dto.CommonRecover)

Source from the content-addressed store, hash-verified

248}
249
250func isImportRecover(req dto.CommonRecover) bool {
251 return req.BackupRecordID == 0
252}
253
254func newContainerBackupContext(containerName, backupDir, fileName, secret string) (*containerBackupContext, error) {
255 dockerClient, err := dockerUtils.NewDockerClient()

Callers 2

handleContainerRecoverFunction · 0.85
handleComposeRecoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected