mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 15:35:51 +03:00
[PR #387] [MERGED] feat: context for all api related calls #433
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#433
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/387
Author: @Tinyblargon
Created: 12/5/2024
Status: ✅ Merged
Merged: 12/5/2024
Merged by: @Tinyblargon
Base:
master← Head:#383📝 Commits (1)
ddfc5fbfeat:contextfor all api related calls📊 Changes
105 files changed (+1188 additions, -1086 deletions)
View changed files
📝
cli/cobra.go(+25 -4)📝
cli/command/content/iso/download.go(+1 -1)📝
cli/command/content/template/download.go(+1 -1)📝
cli/command/content/template/list.go(+1 -1)📝
cli/command/create/create-acmeaccount.go(+1 -1)📝
cli/command/create/create-pool.go(+1 -1)📝
cli/command/create/create-snapshot.go(+2 -2)📝
cli/command/create/create-storage.go(+1 -1)📝
cli/command/create/guest/create-guest-lxc.go(+2 -1)📝
cli/command/create/guest/create-guest-qemu.go(+2 -1)📝
cli/command/create/guest/create-guest.go(+4 -3)📝
cli/command/delete/delete-acmeaccount.go(+2 -1)📝
cli/command/delete/delete-file.go(+1 -1)📝
cli/command/delete/delete-group.go(+2 -1)📝
cli/command/delete/delete-guest.go(+2 -2)📝
cli/command/delete/delete-metricserver.go(+2 -1)📝
cli/command/delete/delete-pool.go(+2 -1)📝
cli/command/delete/delete-snapshot.go(+1 -1)📝
cli/command/delete/delete-storage.go(+2 -1)📝
cli/command/delete/delete-user.go(+2 -1)...and 80 more files
📄 Description
Add
context.Contextto every part of the call stack that leads up to*Session.NewRequest()This change allows users to specify their own context, making it possible to gracefully exit the application with
^c.Used a background context in the old cli to keep the same behavior.
Used a cancel-able context in the new cli,
Context().Closes #383
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.