improve sync and build interfaces
This commit is contained in:
1 parent
54e345a308
commit
9767c50f77
4 files changed
+81
-42
No files matched your search
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user