MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / SetAuthToken

Method SetAuthToken

internal/cli/client.go:80–82  ·  view source on GitHub ↗

SetAuthToken sets the authorization token for API requests.

(token string)

Source from the content-addressed store, hash-verified

78
79// SetAuthToken sets the authorization token for API requests.
80func (c *Client) SetAuthToken(token string) {
81 c.authToken = token
82}
83
84// Health checks if the server is running.
85func (c *Client) Health() error {

Callers 5

doHeadlessBootstrapFunction · 0.80
loginCmdFunction · 0.80
whoamiCmdFunction · 0.80
collectServerInfoFunction · 0.80
padInitCmdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected