mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #228] [MERGED] Refactor: user config #323
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#323
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/228
Author: @Tinyblargon
Created: 1/12/2023
Status: ✅ Merged
Merged: 1/12/2023
Merged by: @mleone87
Base:
master← Head:Refactor-User📝 Commits (10+)
feed183refactor: rename func and make func private3968565refactor: make variables CamelCase59eb3ebrefactor: put functions in alphabetical order2016164refactor: remove redundant error handeling3568dd1refactor: add Password value to ConfigUser struct219b02arefactor: remove func UpdateUserPassword from Client47011f1refactor: remove func GetUserConfig from Client58a20barefactor: Extract struct mapping to func.aae63bfrefactor: remove func CreateUser from Client0a3d4d6refactor: remove func CheckUserExistance from Client📊 Changes
10 files changed (+540 additions, -156 deletions)
View changed files
📝
cli/command/delete/delete.go(+7 -1)📝
cli/command/get/get.go(+6 -1)📝
cli/command/list/list.go(+3 -2)📝
cli/command/set/set-user.go(+7 -3)📝
main.go(+27 -19)📝
proxmox/client.go(+4 -54)📝
proxmox/config_user.go(+170 -72)➕
proxmox/config_user_test.go(+300 -0)📝
test/cli/Users/User_0_test.go(+8 -2)📝
test/cli/Users/User_1_test.go(+8 -2)📄 Description
Word done in this pull request.
ConfigUserclass for more clarity.ClientClass.UserIDtype abstract the "username@realm" convention. This type should get aValidatefunction but the Proxmox documentation is currently unclear what are the legal characters for the user and realm name.UserPasswordtype making it clear to developers using this library that this type has some special rules attached to it.I haven't checked yet if it is compatible with the Terraform provider. I'll do that asap and put my findings here.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.