[GH-ISSUE #302] Refactor: mapping disks to API #64

Open
opened 2026-02-28 00:40:26 +03:00 by kerem · 0 comments
Owner
Originally created by @Tinyblargon on GitHub (Jan 22, 2024). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/302 Originally assigned to: @Tinyblargon on GitHub. While working on #299 I realized the following code could easily be restructured to make it more readable. https://github.com/Telmate/proxmox-api-go/blob/e1cc84906875384936b1d15d94c5583c986e93a0/proxmox/config_qemu_disk.go#L1005-L1019 This restructure would get rid of the following code: https://github.com/Telmate/proxmox-api-go/blob/e1cc84906875384936b1d15d94c5583c986e93a0/proxmox/config_qemu_disk_ide.go#L60-L79 https://github.com/Telmate/proxmox-api-go/blob/e1cc84906875384936b1d15d94c5583c986e93a0/proxmox/config_qemu_disk_sata.go#L62-L83 https://github.com/Telmate/proxmox-api-go/blob/e1cc84906875384936b1d15d94c5583c986e93a0/proxmox/config_qemu_disk_scsi.go#L91-L137 https://github.com/Telmate/proxmox-api-go/blob/e1cc84906875384936b1d15d94c5583c986e93a0/proxmox/config_qemu_disk_virtio.go#L74-L105
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#64
No description provided.