mirror of
https://github.com/luthermonson/go-proxmox.git
synced 2026-04-26 09:25:53 +03:00
[PR #42] [MERGED] Extend VM config to cover most documented fields #98
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-proxmox#98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/luthermonson/go-proxmox/pull/42
Author: @jqueuniet
Created: 1/13/2023
Status: ✅ Merged
Merged: 1/13/2023
Merged by: @luthermonson
Base:
main← Head:extend_vm_config📝 Commits (6)
bc6e065Extend VirtualMachineConfig to cover most of the config GET spec endpointd076f4cFix VirtIO naming consistencyf6cf5edRemove old debug comments5478e43Factor the device merge functions in a helper, remove regexpse6fb33eFix typo040a95dMerge branch 'main' into extend_vm_config📊 Changes
1 file changed (+299 additions, -168 deletions)
View changed files
📝
types.go(+299 -168)📄 Description
I was missing a few fields for my own use, and figured it would be nice to extend this
VirtualMachineConfiga bit further since I may need the rest later on anyway. Now I know this is a lot of fields, but even parallel ports have their use sometimes (though I hope I'll never have to go down this path myself).I actually cut a few superfluous ones on the way. The endpoint spec seems to indicates IDE devices are limited to 4 and SATA to 6. SCSI on the other hand goes as far as 30. I let lists with unspecified limits at 10 as this seemed a reasonable default
The diff is a bit of a mess since I figured a struct as large as this warranted some reorganization rather than an endless unsorted list. I also added JSON tags everywhere and replaced the regexp compilations to do away with the init().
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.