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

Method getCurrentCredential

credhub/get.go:101–108  ·  view source on GitHub ↗
(name string, cred interface{})

Source from the content-addressed store, hash-verified

99}
100
101func (ch *CredHub) getCurrentCredential(name string, cred interface{}) error {
102 query := url.Values{}
103
104 query.Set("current", "true")
105 query.Set("name", name)
106
107 return ch.makeCredentialGetRequest(query, cred)
108}
109
110func (ch *CredHub) makeCredentialGetRequest(query url.Values, cred interface{}) error {
111 resp, err := ch.Request(http.MethodGet, "/api/v1/data", query, nil, true)

Callers 8

GetLatestVersionMethod · 0.95
GetLatestValueMethod · 0.95
GetLatestJSONMethod · 0.95
GetLatestPasswordMethod · 0.95
GetLatestUserMethod · 0.95
GetLatestCertificateMethod · 0.95
GetLatestRSAMethod · 0.95
GetLatestSSHMethod · 0.95

Calls 1

Tested by

no test coverage detected