MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / createBackup

Method createBackup

internal/ui/components/vm_backups.go:228–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226}
227
228func (bm *BackupManager) createBackup() {
229 if isPending, pendingOperation := models.GlobalState.IsVMPending(bm.vm); isPending {
230 bm.app.showMessageSafe(fmt.Sprintf("Cannot create backup while '%s' is in progress", pendingOperation))
231 return
232 }
233
234 bm.form.ShowCreateForm(func() {
235 bm.app.SetFocus(bm)
236 // We don't auto-reload here because it's async and we use the callback
237 })
238}
239
240// trackBackupTask delegates task monitoring to the App
241func (bm *BackupManager) trackBackupTask(upid string) {

Callers 1

Calls 4

IsVMPendingMethod · 0.80
showMessageSafeMethod · 0.80
SetFocusMethod · 0.65
ShowCreateFormMethod · 0.45

Tested by

no test coverage detected