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

Method GetLatestRSA

credhub/get.go:86–91  ·  view source on GitHub ↗

GetLatestRSA returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'rsa'.

(name string)

Source from the content-addressed store, hash-verified

84
85// GetLatestRSA returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'rsa'.
86func (ch *CredHub) GetLatestRSA(name string) (credentials.RSA, error) {
87 var cred credentials.RSA
88 err := ch.getCurrentCredential(name, &cred)
89
90 return cred, err
91}
92
93// GetLatestSSH returns the current credential version for a given credential name. The returned credential will be encoded as a map and must be of type 'ssh'.
94func (ch *CredHub) GetLatestSSH(name string) (credentials.SSH, error) {

Callers 1

get_test.goFile · 0.80

Calls 1

getCurrentCredentialMethod · 0.95

Tested by

no test coverage detected