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

Method CanVMPerformActions

internal/ui/models/state.go:395–398  ·  view source on GitHub ↗

CanVMPerformActions checks if a VM can perform actions (no pending operations). Returns true if the VM can perform actions, false otherwise.

(vm *api.VM)

Source from the content-addressed store, hash-verified

393// CanVMPerformActions checks if a VM can perform actions (no pending operations).
394// Returns true if the VM can perform actions, false otherwise.
395func (s *State) CanVMPerformActions(vm *api.VM) bool {
396 isPending, _ := s.IsVMPending(vm)
397 return !isPending
398}
399
400// GetVMPendingOperation returns the pending operation description for a VM if any.
401// Returns empty string if no operation is pending.

Callers

nothing calls this directly

Calls 1

IsVMPendingMethod · 0.95

Tested by

no test coverage detected