From fdb95a1dc3c373d20f8b3c0ab86dc1c3d6bbe381 Mon Sep 17 00:00:00 2001 From: Muhammed Hussein Karimi Date: Thu, 14 Dec 2023 11:42:21 +0330 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20vm=20vncproxy=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Muhammed Hussein Karimi --- virtual_machine.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virtual_machine.go b/virtual_machine.go index e7ca8de..194b18a 100644 --- a/virtual_machine.go +++ b/virtual_machine.go @@ -46,6 +46,10 @@ func (v *VirtualMachine) TermProxy(ctx context.Context) (vnc *VNC, err error) { return vnc, v.client.Post(ctx, fmt.Sprintf("/nodes/%s/qemu/%d/termproxy", v.Node, v.VMID), nil, &vnc) } +func (v *VirtualMachine) VNCProxy(ctx context.Context) (vnc *VNC, err error) { + return vnc, v.client.Post(ctx, fmt.Sprintf("/nodes/%s/qemu/%d/vncproxy", v.Node, v.VMID), nil, &vnc) +} + func (v *VirtualMachine) HasTag(value string) bool { if v.VirtualMachineConfig.Tags == "" { return false