improve sync and build interfaces

This commit is contained in:
2026-07-07 17:09:00 +00:00
parent 54e345a308
commit 9767c50f77
4 changed files with 81 additions and 42 deletions
+2 -2
View File
@@ -174,7 +174,7 @@ func (host *Node) VirtualMachines() ([]uint, error) {
}
// Get a VM's CPU, Memory but does not recursively link Devices, Disks, Drives, Nets
func (host *Node) VirtualMachine(VMID uint64) (*Instance, error) {
func (host *Node) VirtualMachine(VMID InstanceID) (*Instance, error) {
instance := Instance{}
vm, err := host.pvenode.VirtualMachine(context.Background(), int(VMID))
if err != nil {
@@ -221,7 +221,7 @@ func (host *Node) Containers() ([]uint, error) {
}
// Get a CT's CPU, Memory, Swap but does not recursively link Devices, Disks, Drives, Nets
func (host *Node) Container(VMID uint64) (*Instance, error) {
func (host *Node) Container(VMID InstanceID) (*Instance, error) {
instance := Instance{}
ct, err := host.pvenode.Container(context.Background(), int(VMID))
if err != nil {