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

Method GetLatestUser

credhub/get.go:70–75  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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'.
70func (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'.
78func (ch *CredHub) GetLatestCertificate(name string) (credentials.Certificate, error) {

Callers 1

get_test.goFile · 0.80

Calls 1

getCurrentCredentialMethod · 0.95

Tested by

no test coverage detected