mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #495] [MERGED] feat: Extend the ConfigContent_Template with new methods #507
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#507
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/495
Author: @NemoDacremont
Created: 10/26/2025
Status: ✅ Merged
Merged: 10/28/2025
Merged by: @Tinyblargon
Base:
master← Head:feat/extend-template📝 Commits (3)
a823be1feat: add new methods Delete and Exists to ConfigContent_Template0afafd2feat: add new method Download to ConfigContent_Template5feca1efeat: add new method VolId to ConfigContent_Template📊 Changes
1 file changed (+32 additions, -0 deletions)
View changed files
📝
proxmox/content__template.go(+32 -0)📄 Description
In this patch, I add the following methods to
ConfigContent_Template:Deleteto delete a template on a nodeExiststo return either a template exists on the target node or notDownloadto download a template on a nodeVolIdto return the template volume identifier that is used in LXC configI tried to reuse as much as possible the code from other parts, mainly from
content.go. In the end, this patch doesn't implement any new feature but offers a simpler way to use theConfigContent_Templateobject in other projects.closes #494
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.