GetApplicationsBySpace returns all applications in a space.
(spaceGUID string)
| 142 | |
| 143 | // GetApplicationsBySpace returns all applications in a space. |
| 144 | func (actor Actor) GetApplicationsBySpace(spaceGUID string) ([]resources.Application, Warnings, error) { |
| 145 | apps, warnings, err := actor.CloudControllerClient.GetApplications( |
| 146 | ccv3.Query{Key: ccv3.SpaceGUIDFilter, Values: []string{spaceGUID}}, |
| 147 | ) |
| 148 | |
| 149 | if err != nil { |
| 150 | return []resources.Application{}, Warnings(warnings), err |
| 151 | } |
| 152 | |
| 153 | return apps, Warnings(warnings), nil |
| 154 | } |
| 155 | |
| 156 | // CreateApplicationInSpace creates and returns the application with the given |
| 157 | // name in the given space. |
no test coverage detected