MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / GetNoRetry

Method GetNoRetry

pkg/api/client.go:57–64  ·  view source on GitHub ↗

GetNoRetry makes a GET request to the Proxmox API without retry logic but with timeout.

(path string, result *map[string]interface{})

Source from the content-addressed store, hash-verified

55
56// GetNoRetry makes a GET request to the Proxmox API without retry logic but with timeout.
57func (c *Client) GetNoRetry(path string, result *map[string]interface{}) error {
58 ctx, cancel := context.WithTimeout(context.Background(), DefaultAPITimeout)
59 defer cancel()
60
61 c.logger.Debug("API GET (no retry): %s", path)
62
63 return c.httpClient.Get(ctx, path, result)
64}
65
66// Post makes a POST request to the Proxmox API with timeout.
67func (c *Client) Post(path string, data interface{}) error {

Calls 2

DebugMethod · 0.65
GetMethod · 0.65

Tested by 1