MCPcopy Index your code
hub / github.com/cloudfoundry/cli / getCCAPIInfo

Method getCCAPIInfo

cf/api/endpoints.go:40–48  ·  view source on GitHub ↗
(endpoint string)

Source from the content-addressed store, hash-verified

38}
39
40func (repo RemoteInfoRepository) getCCAPIInfo(endpoint string) (*coreconfig.CCInfo, error) {
41 serverResponse := new(coreconfig.CCInfo)
42 err := repo.gateway.GetResource(endpoint+"/v2/info", &serverResponse)
43 if err != nil {
44 return nil, err
45 }
46
47 return serverResponse, nil
48}

Callers 1

GetCCInfoMethod · 0.95

Calls 1

GetResourceMethod · 0.80

Tested by

no test coverage detected