IsInitialized returns true if credentials are present.
()
| 42 | |
| 43 | // IsInitialized returns true if credentials are present. |
| 44 | func (c *Client) IsInitialized() bool { |
| 45 | return c.Config != nil && c.Config.APIKey != nil |
| 46 | } |
| 47 | |
| 48 | // SaveConfig persists credentials and updates the in-memory copy. |
| 49 | func (c *Client) SaveConfig(cfg *config.Config) error { |
no outgoing calls
no test coverage detected