MCPcopy Create free account
hub / github.com/cloudfoundry/credhub-cli / GetLatestValue

Method GetLatestValue

credhub/get.go:46–51  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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'.
46func (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'.
54func (ch *CredHub) GetLatestJSON(name string) (credentials.JSON, error) {

Callers 1

get_test.goFile · 0.80

Calls 1

getCurrentCredentialMethod · 0.95

Tested by

no test coverage detected