add poweroff and reboot functions

This commit is contained in:
2025-07-27 07:54:18 -04:00
parent 5d35d19543
commit 31296f5b0f
4 changed files with 76 additions and 4 deletions

9
client/power/power.go Normal file
View File

@@ -0,0 +1,9 @@
package power
const APIVersion string = "power/v1alpha1"
type PowerActionResponse struct {
APIVersion string `json:"apiVersion"`
Action string `json:"action"`
Success bool `json:"success"`
}