MCPcopy Create free account
hub / github.com/OverloadBlitz/cloudcent-cli / ReloadConfig

Method ReloadConfig

internal/api/client.go:58–65  ·  view source on GitHub ↗

ReloadConfig re-reads credentials from disk.

()

Source from the content-addressed store, hash-verified

56
57// ReloadConfig re-reads credentials from disk.
58func (c *Client) ReloadConfig() error {
59 cfg, err := config.Load()
60 if err != nil {
61 return err
62 }
63 c.Config = cfg
64 return nil
65}
66
67func (c *Client) authHeaders(req *http.Request) error {
68 if c.Config == nil {

Callers

nothing calls this directly

Calls 1

LoadFunction · 0.92

Tested by

no test coverage detected