(hostname string)
| 694 | } |
| 695 | |
| 696 | func (c *AuthConfig) UsersForHost(hostname string) []string { |
| 697 | users, err := c.cfg.Keys([]string{hostsKey, hostname, usersKey}) |
| 698 | if err != nil { |
| 699 | return nil |
| 700 | } |
| 701 | |
| 702 | return users |
| 703 | } |
| 704 | |
| 705 | // TokenForUser retrieves the credential for the given user and hostname. Like ActiveToken it returns the last stored |
| 706 | // token as-is, including the current access token of a refreshable credential, and never refreshes it; use |