(appGUID string)
| 58 | } |
| 59 | |
| 60 | func (repo CloudControllerRepository) GetApp(appGUID string) (app models.Application, apiErr error) { |
| 61 | path := fmt.Sprintf("%s/v2/apps/%s", repo.config.APIEndpoint(), appGUID) |
| 62 | appResources := new(resources.ApplicationResource) |
| 63 | |
| 64 | apiErr = repo.gateway.GetResource(path, appResources) |
| 65 | if apiErr != nil { |
| 66 | return |
| 67 | } |
| 68 | |
| 69 | app = appResources.ToModel() |
| 70 | return |
| 71 | } |
| 72 | |
| 73 | func (repo CloudControllerRepository) Read(name string) (app models.Application, apiErr error) { |
| 74 | return repo.ReadFromSpace(name, repo.config.SpaceFields().GUID) |
nothing calls this directly
no test coverage detected