mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #165] [MERGED] Add error handeling and consolidate duplicate code #277
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#277
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/165
Author: @Tinyblargon
Created: 4/13/2022
Status: ✅ Merged
Merged: 4/14/2022
Merged by: @mleone87
Base:
master← Head:master📝 Commits (2)
ffbf21dAdd error handeling and consolidate duplicate code49fe7e0Add comments to functions📊 Changes
4 files changed (+108 additions, -166 deletions)
View changed files
📝
main.go(+21 -5)📝
proxmox/client.go(+73 -140)📝
proxmox/config_acme_plugin.go(+4 -4)📝
proxmox/config_user.go(+10 -17)📄 Description
Added error handeling to the main.go file wherever it was missing.
Added more standardized functions in the client class to consolidated code.
Most API interactions are the same create, update and delete steps. Each of these interactions have a version where they have to wait on Proxmox to complete the request, and a version where the task completes immediately. These 6 functions should cut down on code duplication.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.