[PR #495] [MERGED] feat: Extend the ConfigContent_Template with new methods #507

Closed
opened 2026-02-28 00:42:27 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: feat/extend-template


📝 Commits (3)

  • a823be1 feat: add new methods Delete and Exists to ConfigContent_Template
  • 0afafd2 feat: add new method Download to ConfigContent_Template
  • 5feca1e feat: 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 :

  • Delete to delete a template on a node
  • Exists to return either a template exists on the target node or not
  • Download to download a template on a node
  • VolId to return the template volume identifier that is used in LXC config

I 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 the ConfigContent_Template object in other projects.

closes #494


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Telmate/proxmox-api-go/pull/495 **Author:** [@NemoDacremont](https://github.com/NemoDacremont) **Created:** 10/26/2025 **Status:** ✅ Merged **Merged:** 10/28/2025 **Merged by:** [@Tinyblargon](https://github.com/Tinyblargon) **Base:** `master` ← **Head:** `feat/extend-template` --- ### 📝 Commits (3) - [`a823be1`](https://github.com/Telmate/proxmox-api-go/commit/a823be1063ae3b5bcb390641113388c877a03fa6) feat: add new methods Delete and Exists to ConfigContent_Template - [`0afafd2`](https://github.com/Telmate/proxmox-api-go/commit/0afafd2b4f88f5dbe30f5c292a5ff55ec5ef38ec) feat: add new method Download to ConfigContent_Template - [`5feca1e`](https://github.com/Telmate/proxmox-api-go/commit/5feca1edd1f6f0bca51e98c2de8af787fe8b9e66) feat: add new method VolId to ConfigContent_Template ### 📊 Changes **1 file changed** (+32 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `proxmox/content__template.go` (+32 -0) </details> ### 📄 Description In this patch, I add the following methods to `ConfigContent_Template` : * `Delete` to delete a template on a node * `Exists` to return either a template exists on the target node or not * `Download` to download a template on a node * `VolId` to return the template volume identifier that is used in LXC config I 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 the `ConfigContent_Template` object in other projects. closes #494 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:42:27 +03:00
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#507
No description provided.