GetLatestRSA returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'rsa'.
(name string)
| 84 | |
| 85 | // GetLatestRSA returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'rsa'. |
| 86 | func (ch *CredHub) GetLatestRSA(name string) (credentials.RSA, error) { |
| 87 | var cred credentials.RSA |
| 88 | err := ch.getCurrentCredential(name, &cred) |
| 89 | |
| 90 | return cred, err |
| 91 | } |
| 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) { |
no test coverage detected