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

Method Get

pkg/api/http.go:45–47  ·  view source on GitHub ↗

Get performs a GET request to the Proxmox API.

(ctx context.Context, path string, result *map[string]interface{})

Source from the content-addressed store, hash-verified

43
44// Get performs a GET request to the Proxmox API.
45func (hc *HTTPClient) Get(ctx context.Context, path string, result *map[string]interface{}) error {
46 return hc.doRequest(ctx, "GET", path, nil, result)
47}
48
49// Post performs a POST request to the Proxmox API.
50func (hc *HTTPClient) Post(ctx context.Context, path string, data interface{}, result *map[string]interface{}) error {

Calls 1

doRequestMethod · 0.95