[PR #224] [MERGED] feat: LXC Template Download #322

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

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/224
Author: @Tinyblargon
Created: 1/8/2023
Status: Merged
Merged: 1/9/2023
Merged by: @mleone87

Base: masterHead: Feature-File-Download


📝 Commits (10+)

  • 956744e feat: Download LXC Template
  • 3a84665 test: added a test for checking id api values are mapped properly
  • 564f196 feat: add validation function for ConfigContent_Template
  • 9895c80 test: add test for validation func
  • 5de88f4 feat: add CLI command for downloading LXC Templates
  • cef5df6 feat: List all LXC Templates available for download
  • 7ac592d test: check if template list is properly mapped to struct from api values
  • 1a7376d feat: add CLI command for listing all LXC Templates available for download
  • be27a53 feat: List Files in a Storage
  • 5b904bf test: Add tests

📊 Changes

14 files changed (+924 additions, -0 deletions)

View changed files

📝 cli/command/commands/commands.go (+2 -0)
cli/command/content/content.go (+15 -0)
cli/command/content/template/download.go (+35 -0)
cli/command/content/template/list.go (+33 -0)
cli/command/content/template/template.go (+15 -0)
cli/command/delete/delete-file.go (+34 -0)
cli/command/list/list-files.go (+26 -0)
📝 proxmox/client.go (+8 -0)
proxmox/content.go (+155 -0)
proxmox/content_template.go (+122 -0)
proxmox/content_template_test.go (+166 -0)
proxmox/content_test.go (+239 -0)
test/cli/Content/Template/ContentTemplate_test.go (+70 -0)
test/cli/constants.go (+4 -0)

📄 Description

Work done for this feature:

  • Added commands to download and list LXC templates available for download.
  • Added commands to list and delete files in a Proxmox storage.
  • Added integration test for downloading LXC templates.
  • Added test for all new pure functions.

Now we are able to download LXC templates in an automated fashion. The integration test for LXC guest can be created.

Ran all integration tests and they completed successfully.


🔄 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/224 **Author:** [@Tinyblargon](https://github.com/Tinyblargon) **Created:** 1/8/2023 **Status:** ✅ Merged **Merged:** 1/9/2023 **Merged by:** [@mleone87](https://github.com/mleone87) **Base:** `master` ← **Head:** `Feature-File-Download` --- ### 📝 Commits (10+) - [`956744e`](https://github.com/Telmate/proxmox-api-go/commit/956744e36532d7ea3555f610c4bda828ad935b0a) feat: Download LXC Template - [`3a84665`](https://github.com/Telmate/proxmox-api-go/commit/3a84665f71a7ee1d28096b54cf249b5169e929bd) test: added a test for checking id api values are mapped properly - [`564f196`](https://github.com/Telmate/proxmox-api-go/commit/564f196059fe7a0616858238e90e89a956cc373a) feat: add validation function for ConfigContent_Template - [`9895c80`](https://github.com/Telmate/proxmox-api-go/commit/9895c804a40107927e017c41e17eb9fd58d94619) test: add test for validation func - [`5de88f4`](https://github.com/Telmate/proxmox-api-go/commit/5de88f4231616fb0ff997740bec960edd9d92731) feat: add CLI command for downloading LXC Templates - [`cef5df6`](https://github.com/Telmate/proxmox-api-go/commit/cef5df6226f11d79d65e495dc2b744e049696dda) feat: List all LXC Templates available for download - [`7ac592d`](https://github.com/Telmate/proxmox-api-go/commit/7ac592dfb92e0539859e7360afbdfe96036def54) test: check if template list is properly mapped to struct from api values - [`1a7376d`](https://github.com/Telmate/proxmox-api-go/commit/1a7376d72f40cdccfa891ecd0d2f830780563526) feat: add CLI command for listing all LXC Templates available for download - [`be27a53`](https://github.com/Telmate/proxmox-api-go/commit/be27a531fc9787cb95f6f7a3527a86b5486081a2) feat: List Files in a Storage - [`5b904bf`](https://github.com/Telmate/proxmox-api-go/commit/5b904bf4bc265be2e72da43a7133ae2aa854f61a) test: Add tests ### 📊 Changes **14 files changed** (+924 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cli/command/commands/commands.go` (+2 -0) ➕ `cli/command/content/content.go` (+15 -0) ➕ `cli/command/content/template/download.go` (+35 -0) ➕ `cli/command/content/template/list.go` (+33 -0) ➕ `cli/command/content/template/template.go` (+15 -0) ➕ `cli/command/delete/delete-file.go` (+34 -0) ➕ `cli/command/list/list-files.go` (+26 -0) 📝 `proxmox/client.go` (+8 -0) ➕ `proxmox/content.go` (+155 -0) ➕ `proxmox/content_template.go` (+122 -0) ➕ `proxmox/content_template_test.go` (+166 -0) ➕ `proxmox/content_test.go` (+239 -0) ➕ `test/cli/Content/Template/ContentTemplate_test.go` (+70 -0) ➕ `test/cli/constants.go` (+4 -0) </details> ### 📄 Description Work done for this feature: - Added commands to download and list LXC templates available for download. - Added commands to list and delete files in a Proxmox storage. - Added integration test for downloading LXC templates. - Added test for all new pure functions. Now we are able to download LXC templates in an automated fashion. The integration test for LXC guest can be created. Ran all integration tests and they completed successfully. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:41:45 +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#322
No description provided.