Returns the current username and any orgs that user is a member of.
(httpClient *http.Client, hostname string)
| 341 | |
| 342 | // Returns the current username and any orgs that user is a member of. |
| 343 | func userAndOrgs(httpClient *http.Client, hostname string) (string, []string, error) { |
| 344 | client := api.NewClientFromHTTP(httpClient) |
| 345 | return api.CurrentLoginNameAndOrgs(client, hostname) |
| 346 | } |
no test coverage detected