feat: add vm power actions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user