GetLatestValue returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'value'.
(name string)
| 44 | |
| 45 | // GetLatestValue returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'value'. |
| 46 | func (ch *CredHub) GetLatestValue(name string) (credentials.Value, error) { |
| 47 | var cred credentials.Value |
| 48 | err := ch.getCurrentCredential(name, &cred) |
| 49 | |
| 50 | return cred, err |
| 51 | } |
| 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) { |
no test coverage detected