GetLatestSSH returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'ssh'.
(name string)
| 92 | |
| 93 | // GetLatestSSH returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'ssh'. |
| 94 | func (ch *CredHub) GetLatestSSH(name string) (credentials.SSH, error) { |
| 95 | var cred credentials.SSH |
| 96 | err := ch.getCurrentCredential(name, &cred) |
| 97 | |
| 98 | return cred, err |
| 99 | } |
| 100 | |
| 101 | func (ch *CredHub) getCurrentCredential(name string, cred interface{}) error { |
| 102 | query := url.Values{} |
no test coverage detected