GetLatestUser returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'user'.
(name string)
| 68 | |
| 69 | // GetLatestUser returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'user'. |
| 70 | func (ch *CredHub) GetLatestUser(name string) (credentials.User, error) { |
| 71 | var cred credentials.User |
| 72 | err := ch.getCurrentCredential(name, &cred) |
| 73 | |
| 74 | return cred, err |
| 75 | } |
| 76 | |
| 77 | // GetLatestCertificate returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'certificate'. |
| 78 | func (ch *CredHub) GetLatestCertificate(name string) (credentials.Certificate, error) { |
no test coverage detected