GetLatestJSON returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'json'.
(name string)
| 52 | |
| 53 | // GetLatestJSON returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'json'. |
| 54 | func (ch *CredHub) GetLatestJSON(name string) (credentials.JSON, error) { |
| 55 | var cred credentials.JSON |
| 56 | err := ch.getCurrentCredential(name, &cred) |
| 57 | |
| 58 | return cred, err |
| 59 | } |
| 60 | |
| 61 | // GetLatestPassword returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'password'. |
| 62 | func (ch *CredHub) GetLatestPassword(name string) (credentials.Password, error) { |
no test coverage detected