(client *Client, hostname string)
| 5 | } |
| 6 | |
| 7 | func CurrentLoginName(client *Client, hostname string) (string, error) { |
| 8 | var query struct { |
| 9 | Viewer struct { |
| 10 | Login string |
| 11 | } |
| 12 | } |
| 13 | err := client.Query(hostname, "UserCurrent", &query, nil) |
| 14 | return query.Viewer.Login, err |
| 15 | } |
| 16 | |
| 17 | func CurrentLoginNameAndOrgs(client *Client, hostname string) (string, []string, error) { |
| 18 | var query struct { |
no test coverage detected