mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #224] [MERGED] feat: LXC Template Download #322
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#322
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/224
Author: @Tinyblargon
Created: 1/8/2023
Status: ✅ Merged
Merged: 1/9/2023
Merged by: @mleone87
Base:
master← Head:Feature-File-Download📝 Commits (10+)
956744efeat: Download LXC Template3a84665test: added a test for checking id api values are mapped properly564f196feat: add validation function for ConfigContent_Template9895c80test: add test for validation func5de88f4feat: add CLI command for downloading LXC Templatescef5df6feat: List all LXC Templates available for download7ac592dtest: check if template list is properly mapped to struct from api values1a7376dfeat: add CLI command for listing all LXC Templates available for downloadbe27a53feat: List Files in a Storage5b904bftest: 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:
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.