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

Method waitForTaskCompletion

pkg/api/vm_snapshots.go:203–206  ·  view source on GitHub ↗

waitForTaskCompletion is a private wrapper for backward compatibility with snapshots.

(upid string, operationName string)

Source from the content-addressed store, hash-verified

201
202// waitForTaskCompletion is a private wrapper for backward compatibility with snapshots.
203func (c *Client) waitForTaskCompletion(upid string, operationName string) error {
204 // Snapshots typically complete within 2 minutes
205 return c.WaitForTaskCompletion(upid, operationName, 2*time.Minute)
206}
207
208// DeleteSnapshot deletes a snapshot from a VM or container.
209func (c *Client) DeleteSnapshot(vm *VM, snapshotName string) error {

Callers 4

CreateSnapshotMethod · 0.95
DeleteSnapshotMethod · 0.95
RollbackToSnapshotMethod · 0.95
DeleteBackupMethod · 0.95

Calls 1

WaitForTaskCompletionMethod · 0.95

Tested by

no test coverage detected