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

Method DeleteWithResponse

pkg/api/client.go:119–126  ·  view source on GitHub ↗

DeleteWithResponse makes a DELETE request to the Proxmox API and returns the response with timeout.

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

Source from the content-addressed store, hash-verified

117
118// DeleteWithResponse makes a DELETE request to the Proxmox API and returns the response with timeout.
119func (c *Client) DeleteWithResponse(path string, result *map[string]interface{}) error {
120 ctx, cancel := context.WithTimeout(context.Background(), DefaultAPITimeout)
121 defer cancel()
122
123 c.logger.Debug("API DELETE with response: %s", path)
124
125 return c.httpClient.Delete(ctx, path, result)
126}
127
128// IsUsingTokenAuth returns true if the client is using API token authentication.
129func (c *Client) IsUsingTokenAuth() bool {

Callers 2

DeleteStorageContentMethod · 0.95
DeleteVMWithOptionsMethod · 0.95

Calls 2

DebugMethod · 0.65
DeleteMethod · 0.65

Tested by

no test coverage detected