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

Method SetAPIToken

pkg/api/http.go:40–42  ·  view source on GitHub ↗

SetAPIToken sets the API token for authentication.

(token string)

Source from the content-addressed store, hash-verified

38
39// SetAPIToken sets the API token for authentication.
40func (hc *HTTPClient) SetAPIToken(token string) {
41 hc.apiToken = token
42}
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 {

Calls

no outgoing calls