Returns the current username and any orgs that user is a member of.
(httpClient *http.Client, hostname string)
| 356 | |
| 357 | // Returns the current username and any orgs that user is a member of. |
| 358 | func userAndOrgs(httpClient *http.Client, hostname string) (string, []string, error) { |
| 359 | client := api.NewClientFromHTTP(httpClient) |
| 360 | return api.CurrentLoginNameAndOrgs(client, hostname) |
| 361 | } |
no test coverage detected