Versions in this module Expand all Collapse all v1 v1.0.19 Feb 22, 2026 v1.0.18 Feb 15, 2026 Changes in this version + func HandleClusterResources(state *MockState) http.HandlerFunc + func HandleClusterStatus(state *MockState) http.HandlerFunc + func HandleDeleteStorageContent(state *MockState) http.HandlerFunc + func HandleDeleteVM(state *MockState) http.HandlerFunc + func HandleNodeStatus(state *MockState) http.HandlerFunc + func HandleRestore(state *MockState) http.HandlerFunc + func HandleStopTask(state *MockState) http.HandlerFunc + func HandleStorageContent(state *MockState) http.HandlerFunc + func HandleTaskStatus(state *MockState) http.HandlerFunc + func HandleVMConfig(state *MockState) http.HandlerFunc + func HandleVMStatusAction(state *MockState) http.HandlerFunc + func HandleVMStatusCurrent(state *MockState) http.HandlerFunc + func HandleVzdump(state *MockState) http.HandlerFunc + type MockBackup struct + Content string + Date int64 + Format string + Notes string + Size int64 + Storage string + VMID int + VolID string + type MockNode struct + CPUCores int + CPUModel string + CPUSockets int + ID string + IP string + KernelVersion string + MaxCPU float64 + MaxDisk int64 + MaxMem int64 + Name string + Online int + PVEVersion string + Uptime int64 + type MockState struct + Backups map[string]*MockBackup + Nodes []*MockNode + Storage []*MockStorage + Tasks map[string]*MockTask + VMs map[string]*MockVM + func NewMockState() *MockState + func (s *MockState) CompleteTask(upid, exitStatus string) + func (s *MockState) CreateBackup(vmid int, storage string, mode string, notes string) string + func (s *MockState) CreateTask(node, taskType, id, user string) string + func (s *MockState) CreateVM(vmid int, name string, vmType string, node string) + func (s *MockState) DeleteBackup(volID string) error + func (s *MockState) DeleteVM(vmid string) error + func (s *MockState) GetBackups(storage string) []*MockBackup + func (s *MockState) GetClusterResources() []map[string]interface{} + func (s *MockState) UpdateVMConfig(vmid string, config map[string]interface{}) error + func (s *MockState) UpdateVMStatus(vmid string, action string) (string, error) + type MockStorage struct + Content string + Disk int64 + ID string + MaxDisk int64 + Node string + Shared int + Status string + Type string + type MockTask struct + EndTime int64 + ExitStatus string + ID string + Node string + StartTime int64 + Status string + Type string + UPID string + User string + type MockVM struct + CPUs float64 + Config map[string]interface{} + DiskRead int64 + DiskWrite int64 + ID int + MaxDisk int64 + MaxMem int64 + Name string + NetIn int64 + NetOut int64 + Node string + Status string + Type string + Uptime int64