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

Method GetAllVersions

credhub/get.go:25–30  ·  view source on GitHub ↗

GetAllVersions returns all credential versions for a given credential name. The returned credentials will be encoded as a list of maps and may be of any type.

(name string)

Source from the content-addressed store, hash-verified

23
24// GetAllVersions returns all credential versions for a given credential name. The returned credentials will be encoded as a list of maps and may be of any type.
25func (ch *CredHub) GetAllVersions(name string) ([]credentials.Credential, error) {
26 query := url.Values{}
27 query.Set("name", name)
28
29 return ch.makeMultiCredentialGetRequest(query)
30}
31
32// GetLatestVersion returns the current credential version for a given credential name. The returned credential will be encoded as a map and may be of any type.
33func (ch *CredHub) GetLatestVersion(name string) (credentials.Credential, error) {

Callers 1

get_test.goFile · 0.80

Calls 1

Tested by

no test coverage detected