(hostname string)
| 743 | } |
| 744 | |
| 745 | func (c *AuthConfig) UsersForHost(hostname string) []string { |
| 746 | users, err := c.cfg.Keys([]string{hostsKey, hostname, usersKey}) |
| 747 | if err != nil { |
| 748 | return nil |
| 749 | } |
| 750 | |
| 751 | return users |
| 752 | } |
| 753 | |
| 754 | // TokenForUser retrieves the credential for the given user and hostname. Like ActiveToken it returns the last stored |
| 755 | // token as-is, including the current access token of a refreshable credential, and never refreshes it; use |
no outgoing calls
no test coverage detected