refactor: cleanup and refactor code #10
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/cleanup-code-v1"
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?
What changed
Internalsuffixes remain. Small helpers with one or two callers are inlined. Signatures that were split across lines are joined, except four with long parameter lists that are now wrapped normally.internal/configare now one helper.confstoreare nowmergeByName.labels.Match.Sign*Certfunctions incanow build their common fields in one place.Connect/ConnectDesktopin the client share one path, and the five proxy tunnel-rejection audit calls are one.sliceutil.Dedupstays: unlikekit.Unique, it returns an empty list rather than nil, which matters for JSON output.EnsureNodeDesktopEndpointkeeps its own SQL because it deliberately doesn't overwrite the Proxmox columns.var installService = winsvc.Installback incmd/overpass/main.go. Without it, staticcheck flags the install call off Windows (that build'sInstallalways returns an error). I also cleared five reused-errwarnings and formatted two files.Behaviour changes to review
pve.shell.revokedaudit event now records the real node instead of the provider name.download_base_urlwith the trailing/trimmed.untilof exactly the zero time now means "no limit".unknown role: a, b), instead of only the first.Connectnow says "reading profile key: …" instead of "loading certificate: …".client_secret_envis no longer copied into the stored config; the resolved connector still gets the secret.login.defsand/etc/paths*are read whole, so a read error now gives no entries instead of the part already read.findToolnow only accepts regular files.2b37d8b62e7b55dd7e007b55dd7e00be8fbfd1cebe8fbfd1ce9f3115a064