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

Function NewBackupOperations

internal/ui/components/backup_operations.go:16–21  ·  view source on GitHub ↗

NewBackupOperations creates a new backup operations handler.

(app *App, vm *api.VM)

Source from the content-addressed store, hash-verified

14
15// NewBackupOperations creates a new backup operations handler.
16func NewBackupOperations(app *App, vm *api.VM) *BackupOperations {
17 return &BackupOperations{
18 app: app,
19 vm: vm,
20 }
21}
22
23// GetBackups retrieves all backups for the VM.
24func (bo *BackupOperations) GetBackups() ([]api.Backup, error) {

Callers 2

displayCreateFormMethod · 0.85
NewBackupManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected