mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #455] [MERGED] Feat: Basic Client interface implementation #484
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#484
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/455
Author: @Tinyblargon
Created: 9/3/2025
Status: ✅ Merged
Merged: 9/4/2025
Merged by: @Tinyblargon
Base:
master← Head:#454📝 Commits (10+)
d46d8acrefactor: convertRawGuestResourceto interfaced4fd62arefactor: convertRawConfigPoolto interface12dcc89refactor: convertRawConfigLXCto interface9fc9a62refactor: convertRawConfigQemuto interface1bf6088docs: explain raw config interfacee0b9803feat: basicClientNewimplementation54975a9docs: client interface782b748fix: broken test1913df1style: format as single line9299badfeat: add raw config mocks📊 Changes
42 files changed (+1256 additions, -181 deletions)
View changed files
➕
docs/assets/client-interface.drawio.svg(+81 -0)📝
docs/style-guide/sdk.md(+67 -25)📝
proxmox/client.go(+12 -0)➕
proxmox/client__api.go(+34 -0)➕
proxmox/client__api__mock.go(+38 -0)➕
proxmox/client__api__reusable.go(+160 -0)➕
proxmox/client__new.go(+30 -0)➕
proxmox/client__new__mock.go(+56 -0)📝
proxmox/config__guest__resource.go(+56 -30)➕
proxmox/config__guest__resource__mock.go(+179 -0)📝
proxmox/config__guest__resource_test.go(+28 -21)📝
proxmox/config__lxc__cpu.go(+1 -1)📝
proxmox/config__lxc__features.go(+2 -4)📝
proxmox/config__lxc__features_test.go(+3 -2)📝
proxmox/config__lxc__mount.go(+4 -8)📝
proxmox/config__lxc__mount_test.go(+5 -3)📝
proxmox/config__lxc__networks.go(+1 -1)📝
proxmox/config__lxc__new.go(+56 -30)➕
proxmox/config__lxc__new__mock.go(+139 -0)📝
proxmox/config__lxc__new_test.go(+6 -3)...and 22 more files
📄 Description
Introduces the
ClientNewinterface.Rewrites the raw config structs into interfaces to allow for mocking.
Start of #454
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.