mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #316] [MERGED] refactor: use generics for Pointer func #389
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#389
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/316
Author: @Tinyblargon
Created: 3/6/2024
Status: ✅ Merged
Merged: 3/9/2024
Merged by: @Tinyblargon
Base:
master← Head:refactor-pointer📝 Commits (1)
3a9b206refactor: use generics forPointerfunc📊 Changes
35 files changed (+245 additions, -222 deletions)
View changed files
➕
internal/util/util.go(+5 -0)📝
proxmox/config_qemu.go(+9 -7)📝
proxmox/config_storage.go(+33 -31)📝
proxmox/util.go(+0 -15)📝
test/api/CloudInit/shared_test.go(+4 -3)📝
test/api/Qemu/shared_test.go(+4 -3)📝
test/cli/Storage/Storage_PBS_0_test.go(+4 -3)📝
test/cli/Storage/Storage_PBS_1_test.go(+4 -3)📝
test/cli/Storage/Storage_RBD_0_test.go(+2 -2)📝
test/cli/Storage/Storage_RBD_1_test.go(+2 -2)📝
test/cli/Storage/Storage_SMB_0_test.go(+2 -1)📝
test/cli/Storage/Storage_SMB_1_test.go(+2 -1)📝
test/cli/Storage/Storage_ZFS-over-ISCSI_0_test.go(+4 -3)📝
test/cli/Storage/Storage_ZFS-over-ISCSI_1_test.go(+4 -3)📝
test/cli/Storage/Storage_ZFS-over-ISCSI_Comstar_0_test.go(+3 -2)📝
test/cli/Storage/Storage_ZFS-over-ISCSI_Comstar_1_test.go(+4 -3)📝
test/cli/Storage/Storage_ZFS-over-ISCSI_Istgt_0_test.go(+3 -2)📝
test/cli/Storage/Storage_ZFS-over-ISCSI_Istgt_1_test.go(+4 -3)📝
test/cli/Storage/Storage_ZFS-over-ISCSI_LIO_0_test.go(+3 -2)📝
test/cli/Storage/Storage_ZFS-over-ISCSI_LIO_1_test.go(+4 -3)...and 15 more files
📄 Description
Removed the type specific pointer creation functions and replaced it with one that uses generics.
Created the
utilpackage in theinternalfolder as the integration tests where using the old pointer functions. Putting it ininternalensures it can't be imported by a third party project.Before:
After:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
TaskInterface for long running functions #431