mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-26 07:55:50 +03:00
[PR #273] [MERGED] Feature: guest features #361
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#361
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/Telmate/proxmox-api-go/pull/273
Author: @Tinyblargon
Created: 7/14/2023
Status: ✅ Merged
Merged: 12/6/2023
Merged by: @mleone87
Base:
master← Head:Feature-Guest-Features📝 Commits (7)
938fbc2refactor: put in alphabetical orderbd6f10dfeat: Add nil check7c6d46crefactor: nil check implemented byCheckVmRef11feae1feat: obtain features the guest has enabledd5a6ce3refactor: nest config in guest commandca58b91feat: add command to get guests enabled featuresdaeb78ffeat: validate input is enum value📊 Changes
8 files changed (+196 additions, -11 deletions)
View changed files
📝
cli/command/commands/commands.go(+1 -0)📝
cli/command/get/guest/get-guest-config.go(+5 -5)➕
cli/command/get/guest/get-guest-feature.go(+32 -0)➕
cli/command/get/guest/get-guest.go(+15 -0)📝
proxmox/client.go(+7 -0)📝
proxmox/config_guest.go(+76 -5)📝
proxmox/config_guest_test.go(+59 -0)📝
proxmox/config_qemu.go(+1 -1)📄 Description
Add functionality to check which features are enable for a guest system.
Work done:
*Client.CheckVmRef()bd6f10d2417c6d46ce75get guestcommand toget guest configd5a6ce30b8get guest featurecommandca58b91dcc11feae1f09GuestHasFeature()to check if the guest has a specific feature11feae1f09ListGuestFeatures()to check all the features a guest has enabled11feae1f09938fbc2900The reason
GuestHasFeature()andListGuestFeatures()exist is because only one feature can be checked at the time resulting in multiple API calls. For this reason I didn't incorporate it intoConfigQemuandConfigLxc.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.