improve sync and build interfaces

This commit is contained in:
alu committed 2026-07-07 19:34:03 +00:00
1 parent 54e345a308
commit 9767c50f77
4 files changed
+81 -42

No files matched your search

+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 {