feat: add vm power actions

This commit is contained in:
Philipp
2026-06-11 11:29:29 +02:00
parent 262ec4f91b
commit d08e41b013
14 changed files with 541 additions and 16 deletions
+3 -12
View File
@@ -9,24 +9,15 @@ import (
"log/slog"
"time"
"forgejo.digital-droplets.de/philschlo/proxui/platform/jobs"
"github.com/hibiken/asynq"
)
const TypeProxmoxTaskPoll = "proxmox.task.poll"
const TypeProxmoxTaskPoll = jobs.TypeProxmoxTaskPoll
var ErrClusterNotFound = errors.New("cluster not found")
type ProxmoxTaskPollPayload struct {
ClusterID string `json:"cluster_id"`
Node string `json:"node"`
UPID string `json:"upid"`
TargetType string `json:"target_type"`
TargetID string `json:"target_id"`
TenantID string `json:"tenant_id"`
ProfileID string `json:"profile_id,omitempty"`
Action string `json:"action"`
SuccessStatus string `json:"success_status"`
}
type ProxmoxTaskPollPayload = jobs.ProxmoxTaskPollPayload
type ProxmoxTaskStatus struct {
Status string